1 / 29

Themes

Themes. By Alex Loescher Robert Partch and Robert Pimentel. Overview. What are Themes? Properties of Themes How to use Themes How are Themes stored? Installing new themes. What are Themes?. Themes allow a user to conveniently configure the style and layout of their site.

inge
Download Presentation

Themes

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Themes By Alex Loescher Robert Partch and Robert Pimentel

  2. Overview • What are Themes? • Properties of Themes • How to use Themes • How are Themes stored? • Installing new themes

  3. What are Themes? • Themes allow a user to conveniently configure the style and layout of their site. • A user can pick a theme that best fits the purpose of their web site.

  4. Properties of Themes There are many things that you can do with themes to customize the experience of your own site.

  5. Users and Themes • Each user can actually enable their own theme, allowing each user to see the site differently. • This property is great if users want to customize properties of the site for their own convenience. • This is only possible if an administrator for the site allows this function

  6. Customizing Themes • Each theme has its own configuration for settings. • These settings range from allowing pictures to be shown in comments to disabling the site logo (more on this later).

  7. Sub-Themes • Sub-Themes are themes that are related to parent themes. • Sub-Themes inherit their parents resources making it easier to create new themes. • Sub-Themes can be parents of other sub-themes.

  8. Front-end/Back-end Themes • A front-end theme is displayed when a normal user views the site. • A back-end theme is displayed when the administrator views the site.

  9. Adding a Back-end Theme

  10. Choosing a Theme

  11. Allowing Usersto change Themes

  12. Configuring Themes

  13. Editing Themes • One of the easiest ways to change the layout of your Drupal site, is to edit an already made theme. • To do this, you can configure where different “Blocks” are located. • Each Block is assigned a region – where it is located on the Drupal site. • Each Theme has a different configuration, different Blocks in different regions.

  14. Configuring Blocks Push Button Zen

  15. The Presentation Layer • Here is an example of the different regions that blocks can be placed in. • All of this is defined in the Theme’s .info file.

  16. The .info file • The only thing required for the theme, is a .info file. • If meta data, style sheets, JavaScipts, block regions etc. are all defined in the file.

  17. Other important files • Template file (.tpl.php) – Used for the xHTML markup and PHP variables. They also may output other data types such as xml rss. • Template.php – For all the conditional logic and data processing. Can be used to hold preprocessors for generating variables before they are merged with markup inside .tpl.php files. • Note: None of these files are required for a theme.

  18. How are Themes stored? • Themes have a unique storage compared to other sections in Drupal. • Themes do not contain their own table in the Drupal database. Instead the data is kept in a separate folder.

  19. Database Storage User Table System Table

  20. Installing new Themes • Choose A Theme • You can find Drupal themes on their website. • http://drupal.org/project/Themes • Examples:

  21. The Drupal Repository • The Drupal website had a repository of user submitted themes. • Submitted themes are subject to design specifications, as well as coding conventions.

  22. Download the Theme • Choose the correct file for your version. • Themes for previous versions are not compatible with newer ones.

  23. Installing new Themes • All you have to do, is extract the .gz file into your /drupal-6.17/themes directory. • No need to modify the database, or even the Drupal site. The new themes (once extracted) will appear automatically!

  24. Upload and Extract • Upload the theme file using SSH • /public_html/drupal-6.17/themes • Extracting:

  25. Drupal Themes • Before Install • Administer  Site Building  Themes

  26. Drupal Themes • After Install

  27. Database Table • Before Install • Status shows if theme is enabled • 1 = Enabled 0 = Disabled

  28. Database Table • After Install • New theme installed

  29. Theme Install Recap • Choose A Theme • Drupal, Google • Download Theme • Upload & Extract • publict_html/drupal-6.17/themes • View Themes in Drupal • Administer  Site Building  Themes • Database Table • Find it in the System table in your Database

More Related