maintenance-page.tpl.php

  1. 7.x drupal-7.x/modules/system/maintenance-page.tpl.php
  2. 7.x drupal-7.x/themes/seven/maintenance-page.tpl.php
  3. 7.x drupal-7.x/themes/garland/maintenance-page.tpl.php
  4. 7.x drupal-7.x/themes/bartik/templates/maintenance-page.tpl.php
  5. 6.x drupal-6.x/modules/system/maintenance-page.tpl.php
  6. 6.x drupal-6.x/themes/garland/maintenance-page.tpl.php

maintenance-page.tpl.php

Theme implementation to display a single Drupal page while off-line.

All the available variables are mirrored in page.tpl.php. Some may be left blank but they are provided for consistency.

See also

template_preprocess()

template_preprocess_maintenance_page()

4 theme calls to maintenance-page.tpl.php
drupal_site_offline in drupal-6.x/includes/common.inc
Generates a site off-line message.
install_tasks in drupal-6.x/install.php
Tasks performed after the database is initialized.
_batch_progress_page_nojs in drupal-6.x/includes/batch.inc
Batch processing page without JavaScript support.
_db_error_page in drupal-6.x/includes/database.inc
Helper function to show fatal database errors.

File

drupal-6.x/modules/system/maintenance-page.tpl.php
View source
  1. <?php
  2. /**
  3. * @file maintenance-page.tpl.php
  4. *
  5. * Theme implementation to display a single Drupal page while off-line.
  6. *
  7. * All the available variables are mirrored in page.tpl.php. Some may be left
  8. * blank but they are provided for consistency.
  9. *
  10. *
  11. * @see template_preprocess()
  12. * @see template_preprocess_maintenance_page()
  13. */
  14. ?>
  15. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
  16. "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
  17. <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="<?php print $language->language ?>" lang="<?php print $language->language ?>" dir="<?php print $language->dir ?>">
  18. <head>
  19. <?php print $head; ?>
  20. <title><?php print $head_title; ?></title>
  21. <?php print $styles; ?>
  22. <?php print $scripts; ?>
  23. <script type="text/javascript"><?php /* Needed to avoid Flash of Unstyled Content in IE */ ?> </script>
  24. </head>
  25. <body class="<?php print $body_classes; ?>">
  26. <div id="page">
  27. <div id="header">
  28. <div id="logo-title">
  29. <?php if (!empty($logo)): ?>
  30. <a href="<?php print $base_path; ?>" title="<?php print t('Home'); ?>" rel="home" id="logo">
  31. <img src="<?php print $logo; ?>" alt="<?php print t('Home'); ?>" />
  32. </a>
  33. <?php endif; ?>
  34. <div id="name-and-slogan">
  35. <?php if (!empty($site_name)): ?>
  36. <h1 id="site-name">
  37. <a href="<?php print $base_path ?>" title="<?php print t('Home'); ?>" rel="home"><span><?php print $site_name; ?></span></a>
  38. </h1>
  39. <?php endif; ?>
  40. <?php if (!empty($site_slogan)): ?>
  41. <div id="site-slogan"><?php print $site_slogan; ?></div>
  42. <?php endif; ?>
  43. </div> <!-- /name-and-slogan -->
  44. </div> <!-- /logo-title -->
  45. <?php if (!empty($header)): ?>
  46. <div id="header-region">
  47. <?php print $header; ?>
  48. </div>
  49. <?php endif; ?>
  50. </div> <!-- /header -->
  51. <div id="container" class="clear-block">
  52. <?php if (!empty($left)): ?>
  53. <div id="sidebar-left" class="column sidebar">
  54. <?php print $left; ?>
  55. </div> <!-- /sidebar-left -->
  56. <?php endif; ?>
  57. <div id="main" class="column"><div id="main-squeeze">
  58. <div id="content">
  59. <?php if (!empty($title)): ?><h1 class="title" id="page-title"><?php print $title; ?></h1><?php endif; ?>
  60. <?php if (!empty($messages)): print $messages; endif; ?>
  61. <div id="content-content" class="clear-block">
  62. <?php print $content; ?>
  63. </div> <!-- /content-content -->
  64. </div> <!-- /content -->
  65. </div></div> <!-- /main-squeeze /main -->
  66. <?php if (!empty($right)): ?>
  67. <div id="sidebar-right" class="column sidebar">
  68. <?php print $right; ?>
  69. </div> <!-- /sidebar-right -->
  70. <?php endif; ?>
  71. </div> <!-- /container -->
  72. <div id="footer-wrapper">
  73. <div id="footer">
  74. <?php print $footer_message; ?>
  75. <?php if (!empty($footer)): print $footer; endif; ?>
  76. </div> <!-- /footer -->
  77. </div> <!-- /footer-wrapper -->
  78. </div> <!-- /page -->
  79. </body>
  80. </html>