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

This is an override of the default maintenance page. Used for Garland and Minnelli, this file should not be moved or modified since the installation and update pages depend on this file.

This mirrors closely page.tpl.php for Garland in order to share the same styles.

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/themes/garland/maintenance-page.tpl.php
View source
  1. <?php
  2. /**
  3. * @file maintenance-page.tpl.php
  4. *
  5. * This is an override of the default maintenance page. Used for Garland and
  6. * Minnelli, this file should not be moved or modified since the installation
  7. * and update pages depend on this file.
  8. *
  9. * This mirrors closely page.tpl.php for Garland in order to share the same
  10. * styles.
  11. */
  12. ?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
  13. "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
  14. <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="<?php print $language->language ?>" lang="<?php print $language->language ?>" dir="<?php print $language->dir ?>">
  15. <head>
  16. <?php print $head ?>
  17. <title><?php print $head_title ?></title>
  18. <?php print $styles ?>
  19. <?php print $scripts ?>
  20. <!--[if lt IE 7]>
  21. <?php print phptemplate_get_ie_styles(); ?>
  22. <![endif]-->
  23. </head>
  24. <body<?php print phptemplate_body_class($left, $right); ?>>
  25. <!-- Layout -->
  26. <div id="header-region" class="clear-block"><?php print $header; ?></div>
  27. <div id="wrapper">
  28. <div id="container" class="clear-block">
  29. <div id="header">
  30. <div id="logo-floater">
  31. <?php
  32. // Prepare header
  33. $site_fields = array();
  34. if ($site_name) {
  35. $site_fields[] = check_plain($site_name);
  36. }
  37. if ($site_slogan) {
  38. $site_fields[] = check_plain($site_slogan);
  39. }
  40. $site_title = implode(' ', $site_fields);
  41. if ($site_fields) {
  42. $site_fields[0] = '<span>'. $site_fields[0] .'</span>';
  43. }
  44. $site_html = implode(' ', $site_fields);
  45. if ($logo || $site_title) {
  46. print '<h1><a href="'. check_url($base_path) .'" title="'. $site_title .'">';
  47. if ($logo) {
  48. print '<img src="'. check_url($logo) .'" alt="'. $site_title .'" id="logo" />';
  49. }
  50. print $site_html .'</a></h1>';
  51. }
  52. ?>
  53. </div>
  54. </div> <!-- /header -->
  55. <?php if ($left): ?>
  56. <div id="sidebar-left" class="sidebar">
  57. <?php if ($search_box): ?><div class="block block-theme"><?php print $search_box ?></div><?php endif; ?>
  58. <?php print $left ?>
  59. </div>
  60. <?php endif; ?>
  61. <div id="center"><div id="squeeze"><div class="right-corner"><div class="left-corner">
  62. <?php if ($title): print '<h2'. ($tabs ? ' class="with-tabs"' : '') .'>'. $title .'</h2>'; endif; ?>
  63. <?php print $help; ?>
  64. <?php print $messages; ?>
  65. <div class="clear-block">
  66. <?php print $content ?>
  67. </div>
  68. <div id="footer"><?php print $footer_message . $footer ?></div>
  69. </div></div></div></div> <!-- /.left-corner, /.right-corner, /#squeeze, /#center -->
  70. <?php if ($right): ?>
  71. <div id="sidebar-right" class="sidebar">
  72. <?php print $right ?>
  73. </div>
  74. <?php endif; ?>
  75. </div> <!-- /container -->
  76. </div>
  77. <!-- /layout -->
  78. </body>
  79. </html>