Security update for Core, with self-updated composer
[yaffs-website] / web / core / themes / stable / templates / layout / layout.html.twig
diff --git a/web/core/themes/stable/templates/layout/layout.html.twig b/web/core/themes/stable/templates/layout/layout.html.twig
new file mode 100644 (file)
index 0000000..59df5c6
--- /dev/null
@@ -0,0 +1,23 @@
+{#
+/**
+ * @file
+ * Template for a generic layout.
+ */
+#}
+{%
+  set classes = [
+    'layout',
+    'layout--' ~ layout.id|clean_class,
+  ]
+%}
+{% if content %}
+  <div{{ attributes.addClass(classes) }}>
+    {% for region in layout.getRegionNames %}
+      {% if content[region] %}
+        <div {{ region_attributes[region].addClass('layout__region', 'layout__region--' ~ region|clean_class) }}>
+          {{ content[region] }}
+        </div>
+      {% endif %}
+    {% endfor %}
+  </div>
+{% endif %}