maintenance-page.tpl.php

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

Default theme implementation to display a single Drupal page while offline.

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

See also

template_preprocess()

template_preprocess_maintenance_page()

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

Note: this list is generated by looking for the string for this theme hook, so it may include some references that are not actually using this theme hook.

drupal_common_theme in drupal/includes/common.inc
Provides theme registration for themes across .inc files.
drupal_deliver_html_page in drupal/includes/common.inc
Packages and sends the result of a page callback to the browser as HTML.
template_preprocess_maintenance_page in drupal/includes/theme.inc
Process variables for maintenance-page.tpl.php.
theme_install_page in drupal/includes/theme.maintenance.inc
Returns HTML for the installation page.
theme_update_page in drupal/includes/theme.maintenance.inc
Returns HTML for the update page.

... See full list

File

drupal/modules/system/maintenance-page.tpl.php
View source
  1. <?php
  2. /**
  3. * @file
  4. * Default theme implementation to display a single Drupal page while offline.
  5. *
  6. * All the available variables are mirrored in html.tpl.php and page.tpl.php.
  7. * Some may be blank but they are provided for consistency.
  8. *
  9. * @see template_preprocess()
  10. * @see template_preprocess_maintenance_page()
  11. *
  12. * @ingroup themeable
  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. <title><?php print $head_title; ?></title>
  20. <?php print $head; ?>
  21. <?php print $styles; ?>
  22. <?php print $scripts; ?>
  23. </head>
  24. <body class="<?php print $classes; ?>">
  25. <div id="page">
  26. <div id="header">
  27. <div id="logo-title">
  28. <?php if (!empty($logo)): ?>
  29. <a href="<?php print $base_path; ?>" title="<?php print t('Home'); ?>" rel="home" id="logo">
  30. <img src="<?php print $logo; ?>" alt="<?php print t('Home'); ?>" />
  31. </a>
  32. <?php endif; ?>
  33. <div id="name-and-slogan">
  34. <?php if (!empty($site_name)): ?>
  35. <h1 id="site-name">
  36. <a href="<?php print $base_path ?>" title="<?php print t('Home'); ?>" rel="home"><span><?php print $site_name; ?></span></a>
  37. </h1>
  38. <?php endif; ?>
  39. <?php if (!empty($site_slogan)): ?>
  40. <div id="site-slogan"><?php print $site_slogan; ?></div>
  41. <?php endif; ?>
  42. </div> <!-- /name-and-slogan -->
  43. </div> <!-- /logo-title -->
  44. <?php if (!empty($header)): ?>
  45. <div id="header-region">
  46. <?php print $header; ?>
  47. </div>
  48. <?php endif; ?>
  49. </div> <!-- /header -->
  50. <div id="container" class="clearfix">
  51. <?php if (!empty($sidebar_first)): ?>
  52. <div id="sidebar-first" class="column sidebar">
  53. <?php print $sidebar_first; ?>
  54. </div> <!-- /sidebar-first -->
  55. <?php endif; ?>
  56. <div id="main" class="column"><div id="main-squeeze">
  57. <div id="content">
  58. <?php if (!empty($title)): ?><h1 class="title" id="page-title"><?php print $title; ?></h1><?php endif; ?>
  59. <?php if (!empty($messages)): print $messages; endif; ?>
  60. <div id="content-content" class="clearfix">
  61. <?php print $content; ?>
  62. </div> <!-- /content-content -->
  63. </div> <!-- /content -->
  64. </div></div> <!-- /main-squeeze /main -->
  65. <?php if (!empty($sidebar_second)): ?>
  66. <div id="sidebar-second" class="column sidebar">
  67. <?php print $sidebar_second; ?>
  68. </div> <!-- /sidebar-second -->
  69. <?php endif; ?>
  70. </div> <!-- /container -->
  71. <div id="footer-wrapper">
  72. <div id="footer">
  73. <?php if (!empty($footer)): print $footer; endif; ?>
  74. </div> <!-- /footer -->
  75. </div> <!-- /footer-wrapper -->
  76. </div> <!-- /page -->
  77. </body>
  78. </html>

Related topics