maintenance-page.html.twig

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

bartik_process_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/bartik/templates/maintenance-page.html.twig
View source
  1. {#
  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.html.twig.
  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>
  16. <html lang="{{ language.langcode }}" dir="{{ language.dir }}">
  17. <head>
  18. {{ head }}
  19. <title>{{ head_title }}</title>
  20. {{ styles }}
  21. {{ scripts }}
  22. </head>
  23. <body class="{{ attributes.class }}"{{ attributes }}>
  24. <div id="skip-link">
  25. <a href="#main-content" class="element-invisible element-focusable">{{ 'Skip to main content'|t }}</a>
  26. </div>
  27. <div id="page-wrapper"><div id="page">
  28. <header id="header" role="banner"><div class="section clearfix">
  29. {% if site_name or site_slogan %}
  30. <div id="name-and-slogan"{{ hide_site_name and hide_site_slogan ? ' class="element-invisible"' }}>
  31. {% if site_name %}
  32. <div id="site-name"{{ hide_site_name ? ' class="element-invisible"' }}>
  33. <strong>
  34. <a href="{{ front_page }}" title="{{ 'Home'|t }}" rel="home"><span>{{ site_name }}</span></a>
  35. </strong>
  36. </div>
  37. {% endif %}
  38. {% if site_slogan %}
  39. <div id="site-slogan"{{ hide_site_slogan ? ' class="element-invisible"' }}>
  40. {{ site_slogan }}
  41. </div>
  42. {% endif %}
  43. </div> <!-- /#name-and-slogan -->
  44. {% endif %}
  45. </div></header> <!-- /.section, /#header -->
  46. <div id="main-wrapper"><div id="main" class="clearfix">
  47. <main id="content" class="column" role="main"><section class="section">
  48. <a id="main-content"></a>
  49. {% if title %}<h1 class="title" id="page-title">{{ title }}</h1>{% endif %}
  50. {{ content }}
  51. {% if messages %}
  52. <div id="messages"><div class="section clearfix">
  53. {{ messages }}
  54. </div></div> <!-- /.section, /#messages -->
  55. {% endif %}
  56. </section></main> <!-- /.section, /#content -->
  57. </div></div> <!-- /#main, /#main-wrapper -->
  58. </div></div> <!-- /#page, /#page-wrapper -->
  59. </body>
  60. </html>

Related topics