maintenance-page.html.twig

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

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

See also

template_preprocess()

template_preprocess_maintenance_page()

7 theme calls to maintenance-page.html.twig
authorize.php in drupal/core/authorize.php
Administrative script for running authorized file operations.
ExceptionController::on500Html in drupal/core/lib/Drupal/Core/Controller/ExceptionController.php
Processes a generic exception into an HTTP 500 response.
MaintenanceModeSubscriber::onKernelRequestMaintenance in drupal/core/lib/Drupal/Core/EventSubscriber/MaintenanceModeSubscriber.php
Returns the site maintenance page if the site is offline.
theme_install_page in drupal/core/includes/theme.maintenance.inc
Returns HTML for the installation page.
update_check_requirements in drupal/core/update.php
Checks update requirements and reports errors and (optionally) warnings.

... See full list

File

drupal/core/modules/system/templates/maintenance-page.html.twig
View source
  1. {#
  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.html.twig and
  7. * page.html.twig.
  8. * Some may be blank but they are provided for consistency.
  9. *
  10. * @see template_preprocess()
  11. * @see template_preprocess_maintenance_page()
  12. *
  13. * @ingroup themeable
  14. */
  15. #}
  16. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
  17. "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
  18. <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="{{ language.langcode }}" lang="{{ language.langcode }}" dir="{{ language.dir }}">
  19. <head>
  20. <title>{{ head_title }}</title>
  21. {{ head }}
  22. {{ styles }}
  23. {{ scripts }}
  24. </head>
  25. <body class="{{ attributes.class }}">
  26. <div id="page">
  27. <div id="header">
  28. <div id="logo-title">
  29. {% if logo %}
  30. <a href="{{ base_path }}" title="{{ 'Home'|t }}" rel="home" id="logo">
  31. <img src="{{ logo }}" alt="{{ 'Home'|t }}" />
  32. </a>
  33. {% endif %}
  34. <div id="name-and-slogan">
  35. {% if site_name %}
  36. <h1 id="site-name">
  37. <a href="{{ base_path }}" title="{{ 'Home'|t }}" rel="home"><span>{{ site_name }}</span></a>
  38. </h1>
  39. {% endif %}
  40. {% if site_slogan %}
  41. <div id="site-slogan">{{ site_slogan }}</div>
  42. {% endif %}
  43. </div> <!-- /name-and-slogan -->
  44. </div> <!-- /logo-title -->
  45. {% if header %}
  46. <div id="header-region">
  47. {{ header }}
  48. </div>
  49. {% endif %}
  50. </div> <!-- /header -->
  51. <div id="container" class="clearfix">
  52. {% if sidebar_first %}
  53. <div id="sidebar-first" class="column sidebar">
  54. {{ sidebar_first }}
  55. </div> <!-- /sidebar-first -->
  56. {% endif %}
  57. <div id="main" class="column"><div id="main-squeeze">
  58. <div id="content">
  59. {% if title %}<h1 class="title" id="page-title">{{ title }}</h1>{% endif %}
  60. {% if messages %}{{ messages }}{% endif %}
  61. <div id="content-content" class="clearfix">
  62. {{ content }}
  63. </div> <!-- /content-content -->
  64. </div> <!-- /content -->
  65. </div></div> <!-- /main-squeeze /main -->
  66. {% if sidebar_second %}
  67. <div id="sidebar-second" class="column sidebar">
  68. {{ sidebar_second }}
  69. </div> <!-- /sidebar-second -->
  70. {% endif %}
  71. </div> <!-- /container -->
  72. <div id="footer-wrapper">
  73. <div id="footer">
  74. {% if footer %}{{ footer }}{% endif %}
  75. </div> <!-- /footer -->
  76. </div> <!-- /footer-wrapper -->
  77. </div> <!-- /page -->
  78. </body>
  79. </html>

Related topics