diff --git a/layouts/edge-to-edge/layout--edge-to-edge.html.twig b/layouts/edge-to-edge/layout--edge-to-edge.html.twig index 5d82045..ac94ddb 100644 --- a/layouts/edge-to-edge/layout--edge-to-edge.html.twig +++ b/layouts/edge-to-edge/layout--edge-to-edge.html.twig @@ -1,7 +1,7 @@ {# /** * @file - * Default theme implementation to display a one-column layout. + * Default theme implementation to display an edge-to-edge layout. * * Available variables: * - content: The content for this layout. @@ -15,63 +15,51 @@ {{ attach_library('ucb_bootstrap_layouts/ucb-bootstrap-layouts') }} {% set sectionID = settings.sectionID %} +{% set row_classes = ['row', 'ucb-bootstrap-layout__row', 'ucb-bootstrap-layout__row--one-column', 'g-0'] %} +{% set frameColor = 'content-frame-' ~ settings.content_frame_color %} +{% set frameStyle = settings.content_frame_color == 'none' ? 'content-frame-unstyled' : 'content-frame-styled' %} +{% set frame_classes = ['ucb-content-frame', frameColor, frameStyle] %} +{% set regions = ['first'] %} -{% - set row_classes = [ - 'row', - 'ucb-bootstrap-layout__row', - 'ucb-bootstrap-layout__row--one-column', - 'g-0' - ] -%} + {% if content %} -
-
- -
- {{ content.first }} -
-
-
- +
+
+
+ {% for region in regions %} + {% if content[region] and content[region]|render|striptags('