page.tpl.php 3.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495
  1. <?php
  2. ?><!DOCTYPE html PUBLIC "-//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" xml:lang="<?php print $language->language ?>" lang="<?php print $language->language ?>" dir="<?php print $language->dir ?>">
  5. <head>
  6. <?php print $head ?>
  7. <title><?php print $head_title ?></title>
  8. <?php print $styles ?>
  9. <?php print $scripts ?>
  10. <!--[if lt IE 7]>
  11. <?php print phptemplate_get_ie_styles(); ?>
  12. <![endif]-->
  13. </head>
  14. <body<?php print phptemplate_body_class($left, $right); ?>>
  15. <!-- Layout -->
  16. <div id="header-region" class="clear-block"><?php print $header; ?></div>
  17. <div id="wrapper">
  18. <div id="container" class="clear-block">
  19. <div id="header">
  20. <div id="logo-floater">
  21. <?php
  22. // Prepare header
  23. $site_fields = array();
  24. if ($site_name) {
  25. $site_fields[] = check_plain($site_name);
  26. }
  27. if ($site_slogan) {
  28. $site_fields[] = check_plain($site_slogan);
  29. }
  30. $site_title = implode(' ', $site_fields);
  31. if ($site_fields) {
  32. $site_fields[0] = '<span>'. $site_fields[0] .'</span>';
  33. }
  34. $site_html = implode(' ', $site_fields);
  35. if ($logo || $site_title) {
  36. print '<h1><a href="'. check_url($front_page) .'" title="'. $site_title .'">';
  37. if ($logo) {
  38. print '<img src="'. check_url($logo) .'" alt="'. $site_title .'" id="logo" />';
  39. }
  40. print $site_html .'</a></h1>';
  41. }
  42. ?>
  43. </div>
  44. <?php if (isset($primary_links)) : ?>
  45. <?php print theme('links', $primary_links, array('class' => 'links primary-links')) ?>
  46. <?php endif; ?>
  47. <?php if (isset($secondary_links)) : ?>
  48. <?php print theme('links', $secondary_links, array('class' => 'links secondary-links')) ?>
  49. <?php endif; ?>
  50. </div> <!-- /header -->
  51. <?php if ($left): ?>
  52. <div id="sidebar-left" class="sidebar">
  53. <?php if ($search_box): ?><div class="block block-theme"><?php print $search_box ?></div><?php endif; ?>
  54. <?php print $left ?>
  55. </div>
  56. <?php endif; ?>
  57. <div id="center"><div id="squeeze"><div class="right-corner"><div class="left-corner">
  58. <?php print $breadcrumb; ?>
  59. <?php if ($mission): print '<div id="mission">'. $mission .'</div>'; endif; ?>
  60. <?php if ($contenttop): print '<div id="contenttop">' . $contenttop . '</div>'; endif ?>
  61. <?php if ($tabs): print '<div id="tabs-wrapper" class="clear-block">'; endif; ?>
  62. <?php if ($title): print '<h2'. ($tabs ? ' class="with-tabs"' : '') .'>'. $title .'</h2>'; endif; ?>
  63. <?php if ($tabs): print '<ul class="tabs primary">'. $tabs .'</ul></div>'; endif; ?>
  64. <?php if ($tabs2): print '<ul class="tabs secondary">'. $tabs2 .'</ul>'; endif; ?>
  65. <?php if ($show_messages && $messages): print $messages; endif; ?>
  66. <?php print $help; ?>
  67. <div class="clear-block">
  68. <?php print $content ?>
  69. </div>
  70. <?php print $feed_icons ?>
  71. <div id="footer"><?php print $footer_message . $footer ?></div>
  72. </div></div></div></div> <!-- /.left-corner, /.right-corner, /#squeeze, /#center -->
  73. <?php if ($right): ?>
  74. <div id="sidebar-right" class="sidebar">
  75. <?php if (!$left && $search_box): ?><div class="block block-theme"><?php print $search_box ?></div><?php endif; ?>
  76. <?php print $right ?>
  77. </div>
  78. <?php endif; ?>
  79. </div> <!-- /container -->
  80. </div>
  81. <!-- /layout -->
  82. <?php print $closure ?>
  83. </body>
  84. </html>