drupal/core/modules/system/templates/maintenance-page.html.twig

82 lines
1.7 KiB
Twig

{#
/**
* @file
* 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 template_preprocess_maintenance_page()
*
* @ingroup themeable
*/
#}
<!DOCTYPE html>
<html{{ html_attributes }}>
<head>
{{ head }}
<title>{{ head_title }}</title>
{{ styles }}
{{ scripts }}
</head>
<body class="{{ attributes.class }}">
<div class="l-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 %}
{{ messages }}
{{ content }}
</main>
{% if page.sidebar_first %}
<aside class="l-sidebar-first" role="complementary">
{{ page.sidebar_first }}
</aside>{# /.l-sidebar-first #}
{% endif %}
{% if page.sidebar_second %}
<aside class="l-sidebar-second" role="complementary">
{{ page.sidebar_second }}
</aside>{# /.l-sidebar-second #}
{% endif %}
{% if page.footer %}
<footer role="contentinfo">
{{ page.footer }}
</footer>
{% endif %}
</div>{# /.l-container #}
</body>
</html>