Semantic Theming with Drupal 5

Loading...

Flash Player 9 (or above) is needed to view presentations.
We have detected that you do not have it on your computer. To install it, go here.

0 comments

Post a comment

    Post a comment
    Embed Video
    Edit your comment Cancel

    1 Group

    Semantic Theming with Drupal 5 - Presentation Transcript

    1. Melbourne Mini-Conf Feb 3 Drupal Semantic Theming Simon Hobbs emspace.com.au
    2. Outline
      • Features of semantic design
      • Example design
      • Converting a design to Drupal
    3. Semantic (Meaningful) Design
      • Important content at top
      • Elements are what they mean
        • <b> = bold (visual)
        • <strong> = strongly spoken (meaning)
        • Tables are for data, not for presentation.
      • Areas (eg. <div>) are named according to content (id=”subnavigation”), not presentation (id=”sidebar-left”)
    4.  
    5.  
    6.  
    7.  
    8.  
    9.  
    10.  
    11. Example
      • Design used for Lonely Planet prototype project
      • Design by http://peptolab.com
      • Great semantic design
      • Important to prove that Drupal 5 can incorporate this design.
    12.  
    13. header left content right
      • Content
      • Sidebar
      • Subnavigation
      • Utilities – links
      • Utilities – related
      • Navigation
      • Logo
      • Footer
      • Advertisement-banner
      Header Content Sidebar – left Sidebar – right Footer 7 9 6 8 4 5 2 1 3
    14. Respect the design
      • Keep HTML structure
      • Minimal changes to style sheet
      • Keep meaningful (semantic) naming
    15. Define regions
      • function lp_regions() {
      • return array(
      • 'content' => t('Content - center'),
      • 'subnavigation' => t('Subnavigation - left sidebar'),
      • 'navigation' => t('Navigation - top of page'),
      • 'utilities' => t('Utilities - below navigation'),
      • 'footer' => t('Footer'),
      • 'sidebar' => t('Sidebar - right sidebar'),
      • 'logo_area' => t('Logo - top left'),
      • );
      • }
    16. CSS image preloading Move to phptemplate_variables()
    17. Alternative block classes/ids
      • In order to minimize changes to the CSS, and to having meaningful divs, instead of:
        • id=”block-view-11”
      • We need:
        • id=”widget-related”
    18. Block renaming...
    19. Navigation <ul> as <dl>
      • Re-themed theme_menu_tree() for menu id 2
      • Re-themed theme_definition_list() to show menu item ids
      • Modified style sheet with menu ids
    20. Summary
      • The hard work is in the CSS/HTML
      • Don't modify an existing theme if you've been provided HTML/CSS
      • Keep logic and fudge in template.php
      • Respect the design
      • Thanks!

    + Ryan CrossRyan Cross, 2 years ago

    custom

    541 views, 0 favs, 0 embeds more stats

    More info about this document

    © All Rights Reserved

    Go to text version

    • Total Views 541
      • 541 on SlideShare
      • 0 from embeds
    • Comments 0
    • Favorites 0
    • Downloads 4
    Most viewed embeds

    more

    All embeds

    less

    Flagged as inappropriate Flag as inappropriate
    Flag as inappropriate

    Select your reason for flagging this presentation as inappropriate. If needed, use the feedback form to let us know more details.

    Cancel
    File a copyright complaint
    Having problems? Go to our helpdesk?

    Categories

    Groups / Events