page.tpl.php 2.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394
  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. <link rel="stylesheet" type="text/css" href="/themes/nested/nested.css" />
  17. </head>
  18. <body>
  19. <div id="bodyguard">
  20. <div id="header">
  21. <div id="logo"><?php
  22. if ($logo)
  23. {
  24. echo '<a href="' . $base_path . '" title="' . t('Home') . '">'
  25. . '<img src="' . $logo . '" alt="' . t('Home') . "\" /></a>\n";
  26. }
  27. ?>
  28. </div>
  29. <div id="slogname"><?php
  30. if ($site_name) { echo '<h1 class="site-name">' . l($site_name, $base_url) . "</h1>\n"; }
  31. if ($site_slogan) { echo "<div class=\"site-slogan\">$site_slogan</div>\n"; }
  32. ?>
  33. </div>
  34. <div id="menu"><?php
  35. if (isset($primary_links))
  36. {
  37. echo '<div id="primary">'
  38. . theme('links', $primary_links)
  39. . "</div>\n" ;
  40. }
  41. if (isset($secondary_links))
  42. {
  43. echo '<div id="secondary">'
  44. . theme('links', $secondary_links)
  45. . "</div>\n" ;
  46. }
  47. echo $search_box;
  48. ?>
  49. </div>
  50. <?php
  51. if ($header)
  52. {
  53. echo '<div id="header-content">' . $header . '</div>';
  54. }
  55. ?>
  56. </div><!--/header-->
  57. <div id="content">
  58. <div id="main">
  59. <?php
  60. if ($sidebar_left)
  61. {
  62. echo "<div id=\"sidebar-left\">$sidebar_left</div>\n";
  63. }
  64. if ($sidebar_right)
  65. {
  66. echo "<div id=\"sidebar-right\">$sidebar_right</div>\n";
  67. }
  68. if ($mission)
  69. {
  70. echo "<div id=\"mission\">$mission</div>\n" ;
  71. }
  72. echo $breadcrumb;
  73. if ($title)
  74. {
  75. echo "<h1 class=\"title\">$title</h1>\n";
  76. }
  77. if ($tabs)
  78. {
  79. echo "<div class=\"tabs\">$tabs</div>\n";
  80. }
  81. echo "$help\n";
  82. echo "$messages\n";
  83. echo "$content\n";
  84. ?>
  85. </div>
  86. </div>
  87. </div><!-- main div-->
  88. <div id="footer">
  89. <?php echo $footer_message ?>
  90. </div>
  91. <?php print $closure ?>
  92. </body>
  93. </html>