page.tpl.php

Seven's theme implementation to display a single Drupal page.

The doctype, html, head, and body tags are not in this template. Instead they can be found in the html.tpl.php template normally located in the core/modules/system directory.

See also

template_preprocess()

template_preprocess_page()

template_process()

seven_preprocess_page()

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

File

drupal/core/themes/seven/templates/page.tpl.php
View source
<?php

/**
 * @file
 * Seven's theme implementation to display a single Drupal page.
 *
 * The doctype, html, head, and body tags are not in this template. Instead
 * they can be found in the html.tpl.php template normally located in the
 * core/modules/system directory.
 *
 * @see template_preprocess()
 * @see template_preprocess_page()
 * @see template_process()
 * @see seven_preprocess_page()
 *
 * @ingroup themeable
 */
?>
  <div id="branding" class="clearfix">
    <?php

print $breadcrumb;
?>
    <?php

print render($title_prefix);
?>
    <?php

if ($title) {
  ?>
      <h1 class="page-title"><?php

  print $title;
  ?></h1>
    <?php

}
?>
    <?php

print render($title_suffix);
?>
    <?php

print render($primary_local_tasks);
?>
  </div>

  <div id="page">
    <?php

if ($secondary_local_tasks) {
  ?>
      <div class="tabs-secondary clearfix"><?php

  print render($secondary_local_tasks);
  ?></div>
    <?php

}
?>

    <div id="content" class="clearfix">
      <div class="element-invisible"><a id="main-content"></a></div>
      <?php

if ($messages) {
  ?>
        <div id="console" class="clearfix"><?php

  print $messages;
  ?></div>
      <?php

}
?>
      <?php

if ($page['help']) {
  ?>
        <div id="help">
          <?php

  print render($page['help']);
  ?>
        </div>
      <?php

}
?>
      <?php

if ($action_links) {
  ?><ul class="action-links"><?php

  print render($action_links);
  ?></ul><?php

}
?>
      <?php

print render($page['content']);
?>
    </div>

    <div id="footer">
      <?php

print $feed_icons;
?>
    </div>

  </div>

Related topics