maintenance-page.tpl.php

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

All of the available variables are mirrored in page.tpl.php.

See also

template_preprocess()

template_preprocess_maintenance_page()

seven_preprocess_maintenance_page()

6 theme calls to maintenance-page.tpl.php
ExceptionController::on500Html in drupal/core/lib/Drupal/Core/ExceptionController.php
Processes a generic exception into an HTTP 500 response.
MaintenanceModeSubscriber::onKernelRequestMaintenanceModeCheck in drupal/core/lib/Drupal/Core/EventSubscriber/MaintenanceModeSubscriber.php
Response with the maintenance page when the site is offline.
theme_install_page in drupal/core/includes/theme.maintenance.inc
Returns HTML for the installation page.
theme_update_page in drupal/core/includes/theme.maintenance.inc
Returns HTML for the update page.
_batch_progress_page in drupal/core/includes/batch.inc
Outputs a batch processing page.

... See full list

File

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

/**
 * @file
 * Seven's theme implementation to display a single Drupal page while offline.
 *
 * All of the available variables are mirrored in page.tpl.php.
 *
 * @see template_preprocess()
 * @see template_preprocess_maintenance_page()
 * @see seven_preprocess_maintenance_page()
 *
 * @ingroup themeable
 */
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
  "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="<?php

print $language->langcode;
?>" lang="<?php

print $language->langcode;
?>" dir="<?php

print $language->dir;
?>">
  <head>
    <title><?php

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

print $head;
?>
    <?php

print $styles;
?>
    <?php

print $scripts;
?>
  </head>
  <body class="<?php

print $attributes['class'];
?>">

  <?php

print $page_top;
?>

  <div id="branding">
    <?php

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

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

}
?>
  </div>

  <div id="page">

    <div id="sidebar-first" class="sidebar">
      <?php

if ($logo) {
  ?>
        <img id="logo" src="<?php

  print $logo;
  ?>" alt="<?php

  print $site_name;
  ?>" />
      <?php

}
?>
      <?php

if ($sidebar_first) {
  ?>
        <?php

  print $sidebar_first;
  ?>
      <?php

}
?>
    </div>

    <div id="content" class="clearfix">
      <?php

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

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

}
?>
      <?php

if ($help) {
  ?>
        <div id="help">
          <?php

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

}
?>
      <?php

print $content;
?>
    </div>

  </div>

  <?php

print $page_bottom;
?>

  </body>
</html>

Related topics