maintenance-page.html.twig
Same filename in this branch
- 11.x core/themes/olivero/templates/maintenance-page.html.twig
- 11.x core/themes/stable9/templates/layout/maintenance-page.html.twig
- 11.x core/themes/claro/templates/maintenance-page.html.twig
- 11.x core/themes/starterkit_theme/templates/layout/maintenance-page.html.twig
- 11.x core/modules/system/templates/maintenance-page.html.twig
Same filename in other branches
- 9 core/profiles/demo_umami/themes/umami/templates/classy/layout/maintenance-page.html.twig
- 9 core/themes/olivero/templates/maintenance-page.html.twig
- 9 core/themes/stable9/templates/layout/maintenance-page.html.twig
- 9 core/themes/seven/templates/maintenance-page.html.twig
- 9 core/themes/claro/templates/maintenance-page.html.twig
- 9 core/themes/bartik/templates/maintenance-page.html.twig
- 9 core/themes/stable/templates/layout/maintenance-page.html.twig
- 9 core/themes/starterkit_theme/templates/layout/maintenance-page.html.twig
- 9 core/themes/classy/templates/layout/maintenance-page.html.twig
- 9 core/modules/system/templates/maintenance-page.html.twig
- 8.9.x core/profiles/demo_umami/themes/umami/templates/classy/layout/maintenance-page.html.twig
- 8.9.x core/themes/seven/templates/maintenance-page.html.twig
- 8.9.x core/themes/claro/templates/maintenance-page.html.twig
- 8.9.x core/themes/bartik/templates/maintenance-page.html.twig
- 8.9.x core/themes/stable/templates/layout/maintenance-page.html.twig
- 8.9.x core/themes/classy/templates/layout/maintenance-page.html.twig
- 8.9.x core/modules/system/templates/maintenance-page.html.twig
- 10 core/profiles/demo_umami/themes/umami/templates/classy/layout/maintenance-page.html.twig
- 10 core/themes/olivero/templates/maintenance-page.html.twig
- 10 core/themes/stable9/templates/layout/maintenance-page.html.twig
- 10 core/themes/claro/templates/maintenance-page.html.twig
- 10 core/themes/starterkit_theme/templates/layout/maintenance-page.html.twig
- 10 core/modules/system/templates/maintenance-page.html.twig
Theme override to display a single Drupal page while offline.
All available variables are mirrored in page.html.twig. Some may be blank but they are provided for consistency.
See also
template_preprocess_maintenance_page()
File
-
core/
profiles/ demo_umami/ themes/ umami/ templates/ classy/ layout/ maintenance-page.html.twig
View source
- {#
- /**
- * @file
- * Theme override to display a single Drupal page while offline.
- *
- * All available variables are mirrored in page.html.twig.
- * Some may be blank but they are provided for consistency.
- *
- * @see template_preprocess_maintenance_page()
- */
- #}
- <div class="layout-container">
-
- <header role="banner">
- {% if logo %}
- <a href="{{ front_page }}" title="{{ 'Home'|t }}" rel="home">
- <img src="{{ logo }}" alt="{{ 'Home'|t }}"/>
- </a>
- {% endif %}
-
- {% if site_name or site_slogan %}
- <div class="name-and-slogan">
- {% if site_name %}
- <h1 class="site-name">
- <a href="{{ front_page }}" title="{{ 'Home'|t }}" rel="home">{{ site_name }}</a>
- </h1>
- {% endif %}
-
- {% if site_slogan %}
- <div class="site-slogan">{{ site_slogan }}</div>
- {% endif %}
- </div>{# /.name-and-slogan #}
- {% endif %}
-
- </header>
-
- <main role="main">
- {% if title %}
- <h1>{{ title }}</h1>
- {% endif %}
-
- {{ page.highlighted }}
-
- {{ page.content }}
- </main>
-
- {% if page.sidebar_first %}
- <aside class="layout-sidebar-first" role="complementary">
- {{ page.sidebar_first }}
- </aside>{# /.layout-sidebar-first #}
- {% endif %}
-
- {% if page.sidebar_second %}
- <aside class="layout-sidebar-second" role="complementary">
- {{ page.sidebar_second }}
- </aside>{# /.layout-sidebar-second #}
- {% endif %}
-
- {% if page.footer %}
- <footer role="contentinfo">
- {{ page.footer }}
- </footer>
- {% endif %}
-
- </div>{# /.layout-container #}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.