From 81a19c9f93b1071d5a54d68549c184ff424ad29c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Benjamin=20Melan=C3=A7on?= Date: Sat, 31 Aug 2019 09:14:41 -0400 Subject: [PATCH] Override header tabs region template from Octavia (unchanged in this commit) --- .../layout/region--header-tabs.html.twig | 22 +++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 web/themes/custom/geofresco/src/templates/layout/region--header-tabs.html.twig diff --git a/web/themes/custom/geofresco/src/templates/layout/region--header-tabs.html.twig b/web/themes/custom/geofresco/src/templates/layout/region--header-tabs.html.twig new file mode 100644 index 0000000..a300f9b --- /dev/null +++ b/web/themes/custom/geofresco/src/templates/layout/region--header-tabs.html.twig @@ -0,0 +1,22 @@ +{# Override from Octavia: octavia/src/templates/layout/region--header-tabs.html.twig +/** + * @file + * Theme override to display a region. + * + * Available variables: + * - content: The content for this region, typically blocks. + * - attributes: HTML attributes for the region div. + * - region: The name of the region variable as defined in the theme's + * .info.yml file. + * + * @see template_preprocess_region() + */ +#} +{% if content %} + {% set attributes = attributes.addClass(['section']) %} + +
+ {{ content }} +
+ +{% endif %}