Contenu connexe
Similaire à Drupal Themes (20)
Drupal Themes
- 2. # database # passing html formatted content # preprocesses # basic layout and style # high level formatting # browser - rendering Drupal core Raw data PHPTemplate Engine Theme Files
- 16. a online Theme list Install Configure Custom Configure Global User options
- 21. page.tpl.php <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="<?php print $language->language ?>" dir="<?php print $language->dir ?>"> <head> <title><?php print $head_title ?></title> <?php print $head ?> <?php print $styles ?> <?php print $scripts ?> </head> <body> . . . <div id="head" class="clearfloat"> <?php if ($banner) : ?> <div id="banner-region"> <?php print $banner; ?> </div> <?php endif; ?> </div> <div id="navbar" class="clearfloat"> <?php if (isset($primary_links)) { print arthemia_primary($primary_links); } ?> <?php if ($search_box): ?> <div id="searchform"><?php print $search_box; ?></div> <?php endif; ?> </div> . . . </body> </html>
- 22. myownsubtheme.info name = myownsubtheme description = longer description of your subtheme core = 6.x base theme = foldername (of original theme) stylesheets[all][] = myownsubtheme.css Copy regions: regions[left] = Left sidebar regions[right] = Right sidebar regions[content] = Content regions[header] = Header regions[nav] = Navigation regions[footer] = Footer
- 25. page.tpl.php: <?php if ($is_front): ?> <div id="mission"> <?php print $mission; ?> </div> <?php endif; ?> Dynamic theming
- 26. page.tpl.php: <body class="<?php print $body_classes; ?>"> Dynamic theming Condition Class front page .front logged in .logged-in no sidebars .no-sidebar ... Browser: <body class="front logged-in one-sidebar sidebar-left">
- 27. Theme Registry 1. Administer -> Site configuration -> Performance 2. Clear cached data Theme Cache 1. Administer -> Site configuration -> Performance 2. " Clear" button