• Share
  • Email
  • Embed
  • Like
  • Save
  • Private Content
What's new in D7 Theming?
 

What's new in D7 Theming?

on

  • 1,678 views

Drupalcon San Francisco presentation. Changes in D7 relative to D6.

Drupalcon San Francisco presentation. Changes in D7 relative to D6.

Statistics

Views

Total Views
1,678
Views on SlideShare
1,675
Embed Views
3

Actions

Likes
3
Downloads
41
Comments
0

1 Embed 3

http://www.slideshare.net 3

Accessibility

Categories

Upload Details

Uploaded via as Adobe PDF

Usage Rights

© All Rights Reserved

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Processing…
Post Comment
Edit your comment

    What's new in D7 Theming? What's new in D7 Theming? Presentation Transcript

    • What’s new in Drupal 7 theming?
    • Who is this guy? JohnAlbin Just found out yesterday… me and 19 other people ( Wilkins ) wrote 50% of Drupal 7 Twitter: @johnalbin
    • What’s similar in Drupal 7? • theme functions, templates, preprocess functions are almost unchanged. • Fields in core ~ CCK • Image fields! • Images styles ~ Image cache
    • Drupal 6 Core Themes Themes That Suck Garland
    • Crappy-Themes-Be-Gone™
    • What else? • Appearance page! • Template cleanup • Numerous name changes (like sidebars and menus) • primary/secondary » main/secondary • .clear-block » .clearfix • $left/$right » sidebar_first/sidebar_second
    • What else? • phptemplate_ prefix is GONE! • $classes and $classes_array • theme functions can have preprocess functions • theme funcations now variables. ONE parameter, an array of only have
    • What else? • More regions, less hard-coded page variables • $help • $search_box • $mission • $submitted • $footer_message • Holy crap, content is now a block!
    • What else? • “Template suggestions” are dead. • Long live “theme hook suggestions”! • bartik_links() « overrides all “links” styling • bartik_links__node « just the node ones! • node--article.php « just articles • preprocess functions can add: $variables[‘theme_hook_suggestions][] = ‘node__morten’; $variables[‘theme_hook_suggestion’] = ‘node__johnalbin’;
    • What else? • JQuery UI • html.tpl.php • Granular theming • hook_page_alter()
    • What
did
you
think? Step 1) Locate this session on the DCSF site 
h.p://sf2010.drupal.org/conference/schedule Step 2) Click the “Take Survey” link