From 652e97e0516230da86600f661d6679845583264a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jo=C3=ABl=20Pittet?= Date: Tue, 29 Aug 2023 07:38:34 -0700 Subject: [PATCH] Add header and footer regions from default drupal core --- galactus.info.yml | 2 ++ templates/layout/page.html.twig | 14 +++++++++++++- 2 files changed, 15 insertions(+), 1 deletion(-) diff --git a/galactus.info.yml b/galactus.info.yml index 460762d..f0bd022 100644 --- a/galactus.info.yml +++ b/galactus.info.yml @@ -43,7 +43,9 @@ regions: breadcrumb: 'Breadcrumb' help: 'Help' highlighted: 'Highlighted' + header: 'Header' content: 'Content' + footer: 'Footer' sidebar_first: 'Sidebar first' sidebar_second: 'Sidebar second' secondary_content: 'Secondary Content' diff --git a/templates/layout/page.html.twig b/templates/layout/page.html.twig index 330cb10..df0b6f8 100755 --- a/templates/layout/page.html.twig +++ b/templates/layout/page.html.twig @@ -201,6 +201,13 @@ {% endif %} {% endif %} + + {% if page.header %} +
+ {{ page.header }} +
+ {% endif %} + {% if layout_option == 'full' or 'fluid' %}
@@ -238,13 +245,18 @@ {% if layout_option == 'full' or 'fluid' %}
{% endif %} + {% if page.footer %} +
+ {{ page.footer }} +
+ {% endif %} {% if page.prefooter %} - {% endif %} + {% endif %} {% if mobilenav_option == '' %}