Download - $conent - a story
Step away from your $content
Drupal 7 themingJared Stoneberg
@rock_soup
Jared Stoneberg
• I am a Drupal themer. (but I wasn’t always)
Jared Stoneberg
• I am a Drupal themer. (but I wasn’t always)
• I own and operate Stoneberg Design and Aioli Web.
Jared Stoneberg
• I am a Drupal themer. (but I wasn’t always)
• I own and operate Stoneberg Design and Aioli Web.
• I am active in the Seattle Drupal User Group and helped with planning for the PNW Drupal Summit.
Drupal Theming History
Drupal Theming History
Drupal Theming History
print_r($node)
Drupal Theming History
Drupal Theming History
Theming Views 1
Drupal Theming History
Drupal Theming History
Drupal Theming History
Well, that is better…
Drupal Theming History
Drupal Theming History
Drupal Theming History
Exclude from display
Drupal Theming History
Drupal 7 Theming
http://drupal.org/node/254940
CSS
• Class Changes– adios clear-block! hello clear-fix ! – New classes to control display• .element-hidden• .element-invisible
– http://bit.ly/hideinvisiblecss
– Classes are now easy on the eyes!• block-user-0 -> block-user-login
CSS
• $classes is an array– You can more easily manipulate the $classes variable
Regions
• Content is a region! • Sidebars have been semantically renamed.
Regions
• Bartik has lots of regions!
Regions
• Bartik has lots of regions!17!
Blocks
• $content now lives in a block
• $footer_message is now a block
• The search box is now a block, only
Template Files
Template Files
• As a front ended tpl’s are my bread and butter
• There are some new tpl files- including html.tpl
Template Files
• As a front ended tpl’s are my bread and butter
• There is a new tpl file – html.tpl
• Template suggestions have changed– Beware the double dash!
jQuery
jQuery UI in core!
Good stuff
render()
render()
helper for render is hide()
hook_page_alter()
Drupal Theming History
Drupal Theming History
Drupal Theming History
Questions?