maintenance-page.tpl.php

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

Bartik'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()

bartik_process_maintenance_page()

5 theme calls to maintenance-page.tpl.php

File

core/themes/bartik/templates/maintenance-page.tpl.php
View source
  1. <?php
  2. /**
  3. * @file
  4. * Bartik's theme implementation to display a single Drupal page while offline.
  5. *
  6. * All of the available variables are mirrored in page.tpl.php.
  7. *
  8. * @see template_preprocess()
  9. * @see template_preprocess_maintenance_page()
  10. * @see bartik_process_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->langcode; ?>" lang="<?php print $language->langcode; ?>" 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. </head>
  24. <body class="<?php print $classes; ?>" <?php print $attributes;?>>
  25. <div id="skip-link">
  26. <a href="#main-content" class="element-invisible element-focusable"><?php print t('Skip to main content'); ?></a>
  27. </div>
  28. <div id="page-wrapper"><div id="page">
  29. <div id="header"><div class="section clearfix">
  30. <?php if ($site_name || $site_slogan): ?>
  31. <div id="name-and-slogan"<?php if ($hide_site_name && $hide_site_slogan) { print ' class="element-invisible"'; } ?>>
  32. <?php if ($site_name): ?>
  33. <div id="site-name"<?php if ($hide_site_name) { print ' class="element-invisible"'; } ?>>
  34. <strong>
  35. <a href="<?php print $front_page; ?>" title="<?php print t('Home'); ?>" rel="home"><span><?php print $site_name; ?></span></a>
  36. </strong>
  37. </div>
  38. <?php endif; ?>
  39. <?php if ($site_slogan): ?>
  40. <div id="site-slogan"<?php if ($hide_site_slogan) { print ' class="element-invisible"'; } ?>>
  41. <?php print $site_slogan; ?>
  42. </div>
  43. <?php endif; ?>
  44. </div> <!-- /#name-and-slogan -->
  45. <?php endif; ?>
  46. </div></div> <!-- /.section, /#header -->
  47. <div id="main-wrapper"><div id="main" class="clearfix">
  48. <div id="content" class="column"><div class="section">
  49. <a id="main-content"></a>
  50. <?php if ($title): ?><h1 class="title" id="page-title"><?php print $title; ?></h1><?php endif; ?>
  51. <?php print $content; ?>
  52. <?php if ($messages): ?>
  53. <div id="messages"><div class="section clearfix">
  54. <?php print $messages; ?>
  55. </div></div> <!-- /.section, /#messages -->
  56. <?php endif; ?>
  57. </div></div> <!-- /.section, /#content -->
  58. </div></div> <!-- /#main, /#main-wrapper -->
  59. </div></div> <!-- /#page, /#page-wrapper -->
  60. </body>
  61. </html>

Related topics

Login or register to post comments