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
4 theme calls to page.tpl.php
drupal_access_denied in drupal-6.x/includes/common.inc
Generates a 403 error if the request is not allowed.
drupal_not_found in drupal-6.x/includes/common.inc
Generates a 404 error if the request can not be handled.
index.php in drupal-6.x/index.php
The PHP page that serves all page requests on a Drupal installation.
system_batch_page in drupal-6.x/modules/system/system.admin.inc
Default page callback for batches.

File

drupal-6.x/themes/garland/page.tpl.php
View source
  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 ($tabs): print '<div id="tabs-wrapper" class="clear-block">'; endif; ?>
  61. <?php if ($title): print '<h2'. ($tabs ? ' class="with-tabs"' : '') .'>'. $title .'</h2>'; endif; ?>
  62. <?php if ($tabs): print '<ul class="tabs primary">'. $tabs .'</ul></div>'; endif; ?>
  63. <?php if ($tabs2): print '<ul class="tabs secondary">'. $tabs2 .'</ul>'; endif; ?>
  64. <?php if ($show_messages && $messages): print $messages; endif; ?>
  65. <?php print $help; ?>
  66. <div class="clear-block">
  67. <?php print $content ?>
  68. </div>
  69. <?php print $feed_icons ?>
  70. <div id="footer"><?php print $footer_message . $footer ?></div>
  71. </div></div></div></div> <!-- /.left-corner, /.right-corner, /#squeeze, /#center -->
  72. <?php if ($right): ?>
  73. <div id="sidebar-right" class="sidebar">
  74. <?php if (!$left && $search_box): ?><div class="block block-theme"><?php print $search_box ?></div><?php endif; ?>
  75. <?php print $right ?>
  76. </div>
  77. <?php endif; ?>
  78. </div> <!-- /container -->
  79. </div>
  80. <!-- /layout -->
  81. <?php print $closure ?>
  82. </body>
  83. </html>