page.tpl.php 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778
  1. <?php
  2. /**
  3. * @file
  4. * Custom theme implementation to display a single Drupal page without
  5. * sidebars. The sidebars are hidden by regions_hidden for this theme, so
  6. * the default page.tpl.php will not work without throwing exceptions.
  7. */
  8. ?>
  9. <div id="page-wrapper"><div id="page">
  10. <div id="header"><div class="section clearfix">
  11. <?php if ($logo): ?>
  12. <a href="<?php print $front_page; ?>" title="<?php print t('Home'); ?>" rel="home" id="logo">
  13. <img src="<?php print $logo; ?>" alt="<?php print t('Home'); ?>" />
  14. </a>
  15. <?php endif; ?>
  16. <?php if ($site_name || $site_slogan): ?>
  17. <div id="name-and-slogan">
  18. <?php if ($site_name): ?>
  19. <?php if ($title): ?>
  20. <div id="site-name"><strong>
  21. <a href="<?php print $front_page; ?>" title="<?php print t('Home'); ?>" rel="home"><span><?php print $site_name; ?></span></a>
  22. </strong></div>
  23. <?php else: /* Use h1 when the content title is empty */ ?>
  24. <h1 id="site-name">
  25. <a href="<?php print $front_page; ?>" title="<?php print t('Home'); ?>" rel="home"><span><?php print $site_name; ?></span></a>
  26. </h1>
  27. <?php endif; ?>
  28. <?php endif; ?>
  29. <?php if ($site_slogan): ?>
  30. <div id="site-slogan"><?php print $site_slogan; ?></div>
  31. <?php endif; ?>
  32. </div> <!-- /#name-and-slogan -->
  33. <?php endif; ?>
  34. <?php print render($page['header']); ?>
  35. </div></div> <!-- /.section, /#header -->
  36. <?php if ($main_menu || $secondary_menu): ?>
  37. <div id="navigation"><div class="section">
  38. <?php print theme('links__system_main_menu', array('links' => $main_menu, 'attributes' => array('id' => 'main-menu', 'class' => array('links', 'inline', 'clearfix')), 'heading' => t('Main menu'))); ?>
  39. <?php print theme('links__system_secondary_menu', array('links' => $secondary_menu, 'attributes' => array('id' => 'secondary-menu', 'class' => array('links', 'inline', 'clearfix')), 'heading' => t('Secondary menu'))); ?>
  40. </div></div> <!-- /.section, /#navigation -->
  41. <?php endif; ?>
  42. <?php if ($breadcrumb): ?>
  43. <div id="breadcrumb"><?php print $breadcrumb; ?></div>
  44. <?php endif; ?>
  45. <?php print $messages; ?>
  46. <div id="main-wrapper"><div id="main" class="clearfix">
  47. <div id="content" class="column"><div class="section">
  48. <?php if ($page['highlighted']): ?><div id="highlighted"><?php print render($page['highlighted']); ?></div><?php endif; ?>
  49. <a id="main-content"></a>
  50. <?php print render($title_prefix); ?>
  51. <?php if ($title): ?><h1 class="title" id="page-title"><?php print $title; ?></h1><?php endif; ?>
  52. <?php print render($title_suffix); ?>
  53. <?php if ($tabs = render($tabs)): ?><div class="tabs"><?php print $tabs; ?></div><?php endif; ?>
  54. <?php print render($page['help']); ?>
  55. <?php if ($action_links): ?><ul class="action-links"><?php print render($action_links); ?></ul><?php endif; ?>
  56. <?php print render($page['content']); ?>
  57. <?php print $feed_icons; ?>
  58. </div></div> <!-- /.section, /#content -->
  59. </div></div> <!-- /#main, /#main-wrapper -->
  60. <div id="footer"><div class="section">
  61. <?php print render($page['footer']); ?>
  62. </div></div> <!-- /.section, /#footer -->
  63. </div></div> <!-- /#page, /#page-wrapper -->