maintenance-page.html.twig

Seven's theme implementation to display a single Drupal page while offline.

All of the available variables are mirrored in page.html.twig.

See also

template_preprocess()

template_preprocess_maintenance_page()

seven_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/themes/seven/templates/maintenance-page.html.twig
View source
  1. {#
  2. /**
  3. * @file
  4. * Seven's theme implementation to display a single Drupal page while offline.
  5. *
  6. * All of the available variables are mirrored in page.html.twig.
  7. *
  8. * @see template_preprocess()
  9. * @see template_preprocess_maintenance_page()
  10. * @see seven_preprocess_maintenance_page()
  11. *
  12. * @ingroup themeable
  13. */
  14. #}
  15. <!DOCTYPE html>
  16. <html lang="{{ language.langcode }}" dir="{{ language.dir }}">
  17. <head>
  18. <title>{{ head_title }}</title>
  19. {{ head }}
  20. {{ styles }}
  21. {{ scripts }}
  22. </head>
  23. <body{{ attributes }}>
  24. {{ page_top }}
  25. <header id="branding">
  26. {% if title %}<h1 class="page-title">{{ title }}</h1>{% endif %}
  27. </header>
  28. <div id="page">
  29. <div id="sidebar-first" class="sidebar">
  30. {% if logo %}
  31. <img id="logo" src="{{ logo }}" alt="{{ site_name }}" />
  32. {% endif %}
  33. {{ sidebar_first }}
  34. </div>
  35. <main id="content" class="clearfix">
  36. {% if messages %}
  37. <div id="console">{{ messages }}</div>
  38. {% endif %}
  39. {% if help %}
  40. <div id="help">
  41. {{ help }}
  42. </div>
  43. {% endif %}
  44. {{ content }}
  45. </main>
  46. </div>
  47. <footer role="contentinfo">
  48. {{ page_bottom }}
  49. </footer>
  50. </body>
  51. </html>

Related topics