From 3d24449a97d855d0d51f85f2ff5d6182bed5849f Mon Sep 17 00:00:00 2001 From: Alex Pott Date: Fri, 24 May 2013 09:53:16 -0700 Subject: [PATCH] Issue #1938848 by Jaesin, Cottser, jenlampton, hefox, Shawn DeArmond, frob, boze, joelpittet, mrf, dcrocks: seven.theme - Convert PHPTemplate templates to Twig. --- core/themes/seven/seven.theme | 4 +- .../templates/maintenance-page.html.twig | 57 +++++++++++++++++ .../seven/templates/maintenance-page.tpl.php | 62 ------------------- 3 files changed, 59 insertions(+), 64 deletions(-) create mode 100644 core/themes/seven/templates/maintenance-page.html.twig delete mode 100644 core/themes/seven/templates/maintenance-page.tpl.php diff --git a/core/themes/seven/seven.theme b/core/themes/seven/seven.theme index 61212febe21d..0360b6ec5f28 100644 --- a/core/themes/seven/seven.theme +++ b/core/themes/seven/seven.theme @@ -6,12 +6,12 @@ */ /** - * Implements hook_preprocess_HOOK() for maintenance-page.tpl.php. + * Implements hook_preprocess_HOOK() for maintenance-page.html.twig. */ function seven_preprocess_maintenance_page(&$vars) { // While markup for normal pages is split into page.tpl.php and html.tpl.php, // the markup for the maintenance page is all in the single - // maintenance-page.tpl.php template. So, to have what's done in + // maintenance-page.html.twig template. So, to have what's done in // seven_preprocess_html() also happen on the maintenance page, it has to be // called here. seven_preprocess_html($vars); diff --git a/core/themes/seven/templates/maintenance-page.html.twig b/core/themes/seven/templates/maintenance-page.html.twig new file mode 100644 index 000000000000..02af912884d5 --- /dev/null +++ b/core/themes/seven/templates/maintenance-page.html.twig @@ -0,0 +1,57 @@ +{# +/** + * @file + * Seven's theme implementation to display a single Drupal page while offline. + * + * All of the available variables are mirrored in page.html.twig. + * + * @see template_preprocess() + * @see template_preprocess_maintenance_page() + * @see seven_preprocess_maintenance_page() + * + * @ingroup themeable + */ +#} + + + + {{ head_title }} + {{ head }} + {{ styles }} + {{ scripts }} + + + + {{ page_top }} + +
+ {% if title %}

{{ title }}

{% endif %} +
+ +
+ + +
+ {% if messages %} +
{{ messages }}
+ {% endif %} + {% if help %} +
+ {{ help }} +
+ {% endif %} + {{ content }} +
+
+ +
+ {{ page_bottom }} +
+ + + diff --git a/core/themes/seven/templates/maintenance-page.tpl.php b/core/themes/seven/templates/maintenance-page.tpl.php deleted file mode 100644 index fff11d848a50..000000000000 --- a/core/themes/seven/templates/maintenance-page.tpl.php +++ /dev/null @@ -1,62 +0,0 @@ - - - - - <?php print $head_title; ?> - - - - - - - - -
-

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