maintenance-page.tpl.php

Same filename in this branch
  1. 7.x themes/seven/maintenance-page.tpl.php
  2. 7.x themes/garland/maintenance-page.tpl.php
  3. 7.x modules/system/maintenance-page.tpl.php

Implementation to display a single Drupal page while offline.

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

See also

template_preprocess()

template_preprocess_maintenance_page()

bartik_process_maintenance_page()

5 theme calls to maintenance-page.tpl.php
drupal_deliver_html_page in includes/common.inc
Packages and sends the result of a page callback to the browser as HTML.
theme_install_page in includes/theme.maintenance.inc
Returns HTML for the installation page.
theme_update_page in includes/theme.maintenance.inc
Returns HTML for the update page.
_batch_progress_page in includes/batch.inc
Outputs a batch processing page.
_drupal_log_error in includes/errors.inc
Logs a PHP error or exception and displays an error page in fatal cases.

File

themes/bartik/templates/maintenance-page.tpl.php

View source
<?php


/**
 * @file
 * Implementation to display a single Drupal page while offline.
 *
 * All the available variables are mirrored in page.tpl.php.
 *
 * @see template_preprocess()
 * @see template_preprocess_maintenance_page()
 * @see bartik_process_maintenance_page()
 */
?>
<!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->language;
?>" lang="<?php

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

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

print $head;
?>
  <title><?php

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

print $styles;
?>
  <?php

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

print $classes;
?>" <?php

print $attributes;
?>>

  <div id="skip-link">
    <a href="#main-content" class="element-invisible element-focusable"><?php

print t('Skip to main content');
?></a>
  </div>

  <div id="page-wrapper"><div id="page">

    <div id="header"><div class="section clearfix">
      <?php

if ($site_name || $site_slogan) {
    ?>
        <div id="name-and-slogan"<?php

    if ($hide_site_name && $hide_site_slogan) {
        print ' class="element-invisible"';
    }
    ?>>
          <?php

    if ($site_name) {
        ?>
            <div id="site-name"<?php

        if ($hide_site_name) {
            print ' class="element-invisible"';
        }
        ?>>
              <strong>
                <a href="<?php

        print $front_page;
        ?>" title="<?php

        print t('Home');
        ?>" rel="home"><span><?php

        print $site_name;
        ?></span></a>
              </strong>
            </div>
          <?php

    }
    ?>
          <?php

    if ($site_slogan) {
        ?>
            <div id="site-slogan"<?php

        if ($hide_site_slogan) {
            print ' class="element-invisible"';
        }
        ?>>
              <?php

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

    }
    ?>
        </div> <!-- /#name-and-slogan -->
      <?php

}
?>
    </div></div> <!-- /.section, /#header -->

    <div id="main-wrapper"><div id="main" class="clearfix">
      <div id="content" class="column"><div class="section">
        <a id="main-content"></a>
        <?php

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

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

}
?>
        <?php

print $content;
?>
        <?php

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

    print $messages;
    ?>
          </div></div> <!-- /.section, /#messages -->
        <?php

}
?>
      </div></div> <!-- /.section, /#content -->
    </div></div> <!-- /#main, /#main-wrapper -->

  </div></div> <!-- /#page, /#page-wrapper -->

</body>
</html>

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.