160 likes | 346 Views
Drupal Themes. An introduction. Theming for Drupal is hard!. .psd to .html Understand how Drupal works Regions. Contributed Themes. On Drupal.org Upload Location. PHPTemplate. Other template engines available Smarty Haml XTemplate. Inheritance. Inherits: CSS Javascript
E N D
Drupal Themes • An introduction
Theming for Drupal is hard! • .psd to .html • Understand how Drupal works • Regions
Contributed Themes • On Drupal.org • Upload Location
PHPTemplate • Other template engines available • Smarty • Haml • XTemplate
Inheritance • Inherits: • CSS • Javascript • Template files • What you need: • [subthemename].info files • [subthemename].css
6 vs 7 • File Structure • Region PHP • Drupal 6 • <?php print $content; ?> • Drupal 7 • <?php print render($page['content']); ?>
.info file • Regions • Features • Includes
php.tpl Files • Structure • Regions
Common CSS Problems • IE 7 and below • 37 Stylesheet limit • Compression • Location
CSS Problems Continued • Multiple Class Selectors • Naming conflicts • views, blocks, modules • Best Practices • themename-classname
The #1 way to solve a Drupal Problem • Clear the cache. admin/settings/performance
node.tpl Files • publications example
Too much logic! • Put it in a module? • template.php
Accessibility and W3C Compliance • Alt tags • Semantic HTML • Validation • HTML 5 & CSS 3
Devel Module • Theme Development • Advanced