maintenance-page.html.twig

Same filename in this branch
  1. 9 core/profiles/demo_umami/themes/umami/templates/classy/layout/maintenance-page.html.twig
  2. 9 core/themes/olivero/templates/maintenance-page.html.twig
  3. 9 core/themes/stable9/templates/layout/maintenance-page.html.twig
  4. 9 core/themes/seven/templates/maintenance-page.html.twig
  5. 9 core/themes/claro/templates/maintenance-page.html.twig
  6. 9 core/themes/stable/templates/layout/maintenance-page.html.twig
  7. 9 core/themes/starterkit_theme/templates/layout/maintenance-page.html.twig
  8. 9 core/themes/classy/templates/layout/maintenance-page.html.twig
  9. 9 core/modules/system/templates/maintenance-page.html.twig
Same filename in other branches
  1. 8.9.x core/profiles/demo_umami/themes/umami/templates/classy/layout/maintenance-page.html.twig
  2. 8.9.x core/themes/seven/templates/maintenance-page.html.twig
  3. 8.9.x core/themes/claro/templates/maintenance-page.html.twig
  4. 8.9.x core/themes/bartik/templates/maintenance-page.html.twig
  5. 8.9.x core/themes/stable/templates/layout/maintenance-page.html.twig
  6. 8.9.x core/themes/classy/templates/layout/maintenance-page.html.twig
  7. 8.9.x core/modules/system/templates/maintenance-page.html.twig
  8. 10 core/profiles/demo_umami/themes/umami/templates/classy/layout/maintenance-page.html.twig
  9. 10 core/themes/olivero/templates/maintenance-page.html.twig
  10. 10 core/themes/stable9/templates/layout/maintenance-page.html.twig
  11. 10 core/themes/claro/templates/maintenance-page.html.twig
  12. 10 core/themes/starterkit_theme/templates/layout/maintenance-page.html.twig
  13. 10 core/modules/system/templates/maintenance-page.html.twig
  14. 11.x core/profiles/demo_umami/themes/umami/templates/classy/layout/maintenance-page.html.twig
  15. 11.x core/themes/olivero/templates/maintenance-page.html.twig
  16. 11.x core/themes/stable9/templates/layout/maintenance-page.html.twig
  17. 11.x core/themes/claro/templates/maintenance-page.html.twig
  18. 11.x core/themes/starterkit_theme/templates/layout/maintenance-page.html.twig
  19. 11.x core/modules/system/templates/maintenance-page.html.twig

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

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

See also

template_preprocess_maintenance_page()

File

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 available variables are mirrored in page.html.twig.
  7. *
  8. * @see template_preprocess_maintenance_page()
  9. */
  10. #}
  11. <div id="page-wrapper">
  12. <div id="page">
  13. <header id="header" role="banner">
  14. <div class="section clearfix">
  15. {% if site_name or site_slogan %}
  16. <div id="name-and-slogan"{{ hide_site_name and hide_site_slogan ? ' class="visually-hidden"' }}>
  17. {% if site_name %}
  18. <div id="site-name"{{ hide_site_name ? ' class="visually-hidden"' }}>
  19. <strong>
  20. <a href="{{ front_page }}" title="{{ 'Home'|t }}" rel="home"><span>{{ site_name }}</span></a>
  21. </strong>
  22. </div>
  23. {% endif %}
  24. {% if site_slogan %}
  25. <div id="site-slogan"{{ hide_site_slogan ? ' class="visually-hidden"' }}>
  26. {{ site_slogan }}
  27. </div>
  28. {% endif %}
  29. </div>
  30. {% endif %}
  31. </div>
  32. </header>
  33. <div id="main-wrapper">
  34. <div id="main" class="clearfix">
  35. <main id="content" class="column" role="main">
  36. <section class="section">
  37. <a id="main-content"></a>
  38. {% if title %}
  39. <h1 class="title" id="page-title">{{ title }}</h1>
  40. {% endif %}
  41. {{ page.content }}
  42. {{ page.highlighted }}
  43. </section>
  44. </main>
  45. </div>
  46. </div>
  47. </div>
  48. </div>

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.