diff --git a/core/includes/theme.inc b/core/includes/theme.inc index d34764fb12c94e6042fe863d7147a4128cdc31e1..782b5620170d816bad4e8b0acf53299b22722ae8 100644 --- a/core/includes/theme.inc +++ b/core/includes/theme.inc @@ -3069,18 +3069,19 @@ function theme_get_suggestions($args, $base, $delimiter = '__') { } /** - * Process variables for maintenance-page.tpl.php. + * Prepare variables for maintenance page templates. + * + * Default template: maintenance-page.html.twig. * * The variables array generated here is a mirror of * template_preprocess_page(). This preprocessor will run its course when * theme_maintenance_page() is invoked. An alternate template file of - * maintenance-page--offline.tpl.php can be used when the database is offline to - * hide errors and completely replace the content. - * - * The $variables array contains the following arguments: - * - $content + * maintenance-page--offline.html.twig can be used when the database is offline + * to hide errors and completely replace the content. * - * @see maintenance-page.tpl.php + * @param array $variables + * An associative array containing: + * - content - An array of page content. */ function template_preprocess_maintenance_page(&$variables) { global $theme; @@ -3178,7 +3179,7 @@ function template_preprocess_maintenance_page(&$variables) { * The variables array generated here is a mirror of template_process_html(). * This processor will run its course when theme_maintenance_page() is invoked. * - * @see maintenance-page.tpl.php + * @see maintenance-page.html.twig * @see template_process_html() */ function template_process_maintenance_page(&$variables) { diff --git a/core/modules/overlay/overlay.module b/core/modules/overlay/overlay.module index 1566740a06e307c7d653775c89aa2f8568b50a71..2c77efa933b2f79b37d164c54676b9992d8b59bd 100644 --- a/core/modules/overlay/overlay.module +++ b/core/modules/overlay/overlay.module @@ -497,7 +497,7 @@ function overlay_preprocess_html(&$variables) { } /** - * Implements hook_preprocess_HOOK() for maintenance-page.tpl.php. + * Implements hook_preprocess_HOOK() for maintenance-page.html.twig. * * If the current page request is inside the overlay, add appropriate classes * to the element, and simplify the page title. diff --git a/core/modules/system/templates/maintenance-page.html.twig b/core/modules/system/templates/maintenance-page.html.twig new file mode 100644 index 0000000000000000000000000000000000000000..a57b54699ad891d3180089e6d985c05e9b46b253 --- /dev/null +++ b/core/modules/system/templates/maintenance-page.html.twig @@ -0,0 +1,92 @@ +{# +/** + * @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() + * @see template_preprocess_maintenance_page() + * + * @ingroup themeable + */ +#} + + + + {{ head_title }} + {{ head }} + {{ styles }} + {{ scripts }} + + +
+ + +
+ + {% if sidebar_first %} + + {% endif %} + +
+ +
+ {% if title %}

{{ title }}

{% endif %} + {% if messages %}{{ messages }}{% endif %} +
+ {{ content }} +
+
+ +
+ + {% if sidebar_second %} + + {% endif %} + +
+ + + +
+ + + diff --git a/core/modules/system/templates/maintenance-page.tpl.php b/core/modules/system/templates/maintenance-page.tpl.php deleted file mode 100644 index 5da7a1a4420ca7dd937ccf08d3516515fe73b13c..0000000000000000000000000000000000000000 --- a/core/modules/system/templates/maintenance-page.tpl.php +++ /dev/null @@ -1,95 +0,0 @@ - - - - - - <?php print $head_title; ?> - - - - - -
- - -
- - - - - -
- -
-

- -
- -
-
- -
- - - - - -
- - - -
- - -