page.tpl.php 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293
  1. <!DOCTYPE html PUBLIC
  2. "-//W3C//DTD XHTML 1.0 Strict//EN"
  3. "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
  4. <html xmlns="http://www.w3.org/1999/xhtml"
  5. lang="<?php print $language ?>"
  6. xml:lang="<?php print $language ?>">
  7. <!--
  8. | Copyright 2006 Frederic G. MARAND
  9. | Licensed under the GPL version 2.0
  10. -->
  11. <head>
  12. <title><?php print $head_title ?></title>
  13. <?php print $head ?>
  14. <?php print $styles ?>
  15. <script type="text/javascript"><?php /* avoid Flash of Unstyle Content in IE */ ?></script>
  16. </head>
  17. <body>
  18. <div id="bodyguard">
  19. <div id="header">
  20. <div id="logo"><?php
  21. if ($logo)
  22. {
  23. echo '<a href="' . $base_path . '" title="' . t('Home') . '">'
  24. . '<img src="' . $logo . '" alt="' . t('Home') . "\" /></a>\n";
  25. }
  26. ?>
  27. </div>
  28. <div id="slogname"><?php
  29. if ($site_name) { echo '<h1 class="site-name">' . l($site_name, $base_url) . "</h1>\n"; }
  30. if ($site_slogan) { echo "<div class=\"site-slogan\">$site_slogan</div>\n"; }
  31. ?>
  32. </div>
  33. <div id="menu"><?php
  34. if (isset($primary_links))
  35. {
  36. echo '<div id="primary">'
  37. . theme('links', $primary_links)
  38. . "</div>\n" ;
  39. }
  40. if (isset($secondary_links))
  41. {
  42. echo '<div id="secondary">'
  43. . theme('links', $secondary_links)
  44. . "</div>\n" ;
  45. }
  46. echo $search_box;
  47. ?>
  48. </div>
  49. <?php
  50. if ($header)
  51. {
  52. echo '<div id="header-content">' . $header . '</div>';
  53. }
  54. ?>
  55. </div><!--/header-->
  56. <div id="content">
  57. <div id="main">
  58. <?php
  59. if ($sidebar_left)
  60. {
  61. echo "<div id=\"sidebar-left\">$sidebar_left</div>\n";
  62. }
  63. if ($sidebar_right)
  64. {
  65. echo "<div id=\"sidebar-right\">$sidebar_right</div>\n";
  66. }
  67. if ($mission)
  68. {
  69. echo "<div id=\"mission\">$mission</div>\n" ;
  70. }
  71. echo $breadcrumb;
  72. if ($title)
  73. {
  74. echo "<h1 class=\"title\">$title</h1>\n";
  75. }
  76. if ($tabs)
  77. {
  78. echo "<div class=\"tabs\">$tabs</div>\n";
  79. }
  80. echo "$help\n";
  81. echo "$messages\n";
  82. echo "$content\n";
  83. ?>
  84. </div>
  85. </div>
  86. </div><!-- main div-->
  87. <div id="footer">
  88. <?php echo $footer_message ?>
  89. </div>
  90. <?php print $closure ?>
  91. </body>
  92. </html>