Posted By

panatlantica on 05/23/08


Tagged

textmate template drupal pagetplphp


Versions (?)

Who likes this?

2 people have marked this snippet as a favorite

basicmagic
juanchifc


Drupal 5.x page.tpl.php template


 / Published in: PHP
 

This is a stipped-down version of the original page.tpl.php from Drupal 5.x's Bluemarine theme. Just add your own DIVs.

  1. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
  2. <html xmlns="http://www.w3.org/1999/xhtml" lang="<?php print $language ?>" xml:lang="<?php print $language ?>">
  3.  
  4. <head>
  5. <title><?php print $head_title ?></title>
  6. <?php print $head ?>
  7. <?php print $styles ?>
  8. <?php print $scripts ?>
  9. <script type="text/javascript"><?php /* Needed to avoid Flash of Unstyle Content in IE */ ?> </script>
  10. </head>
  11.  
  12. <body>
  13.  
  14. <!-- logo -->
  15. <?php if ($logo) { ?><a href="<?php print $base_path ?>" title="<?php print t('Home') ?>"><img src="<?php print $logo ?>" alt="<?php print t('Home') ?>" /></a><?php } ?>
  16. <!-- site name -->
  17. <?php if ($site_name) { ?><h1 class='site-name'><a href="<?php print $base_path ?>" title="<?php print t('Home') ?>"><?php print $site_name ?></a></h1><?php } ?>
  18. <!-- sloagan -->
  19. <?php if ($site_slogan) { ?><?php print $site_slogan ?><?php } ?>
  20.  
  21. <!-- primary links -->
  22. <?php if (isset($primary_links)) { ?><?php print theme('links', $primary_links, array('class' =>'links', 'id' => 'navlist')) ?><?php } ?>
  23. <!-- secondary links -->
  24. <?php if (isset($secondary_links)) { ?><?php print theme('links', $secondary_links, array('class' =>'links', 'id' => 'subnavlist')) ?><?php } ?>
  25.  
  26. <!-- search -->
  27. <?php print $search_box ?>
  28.  
  29. <!-- header -->
  30. <?php print $header ?>
  31.  
  32. <!-- mission -->
  33. <?php if ($mission) { ?><?php print $mission ?><?php } ?>
  34.  
  35. <!-- breadcrumb -->
  36. <?php print $breadcrumb ?>
  37.  
  38. <!-- content with headline and tabs -->
  39. <h1 class="title"><?php print $title ?></h1>
  40. <div class="tabs"><?php print $tabs ?></div>
  41. <?php print $help ?>
  42. <?php print $messages ?>
  43. <?php print $content; ?>
  44.  
  45. <!-- sidebars -->
  46. <?php if ($sidebar_left) { ?>
  47. <?php print $sidebar_left ?>
  48. <?php } ?>
  49.  
  50. <?php if ($sidebar_right) { ?>
  51. <?php print $sidebar_right ?>
  52. <?php } ?>
  53.  
  54. <!-- feed icon -->
  55. <?php print $feed_icons; ?>
  56.  
  57. <!-- footer -->
  58. <?php print $footer_message ?>
  59.  
  60.  
  61. <!-- and finally close the document like this: -->
  62.  
  63. <?php print $closure ?>
  64. </body>
  65. </html>

Report this snippet  

You need to login to post a comment.