page.tpl.php

  1. 7.x drupal-7.x/modules/system/page.tpl.php
  2. 7.x drupal-7.x/themes/seven/page.tpl.php
  3. 7.x drupal-7.x/themes/garland/page.tpl.php
  4. 7.x drupal-7.x/themes/bartik/templates/page.tpl.php
  5. 7.x drupal-7.x/modules/block/tests/themes/block_test_theme/page.tpl.php
  6. 6.x drupal-6.x/modules/system/page.tpl.php
  7. 6.x drupal-6.x/themes/bluemarine/page.tpl.php
  8. 6.x drupal-6.x/themes/pushbutton/page.tpl.php
  9. 6.x drupal-6.x/themes/garland/page.tpl.php

Custom theme implementation to display a single Drupal page without sidebars. The sidebars are hidden by regions_hidden for this theme, so the default page.tpl.php will not work without throwing exceptions.

1 theme call to page.tpl.php
system_element_info in drupal-7.x/modules/system/system.module
Implements hook_element_info().

File

drupal-7.x/modules/block/tests/themes/block_test_theme/page.tpl.php
View source
  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 -->