e5441d8b6be991c7e65700e2870aeaf2ef7ccb4d
[yaffs-website] / web / core / themes / stable / templates / layout / layout--threecol-25-50-25.html.twig
1 {#
2 /**
3  * @file
4  * Default theme implementation for a three column layout.
5  *
6  * This template provides a three column 25%-50%-25% display layout, with
7  * additional areas for the top and the bottom.
8  *
9  * Available variables:
10  * - content: The content for this layout.
11  * - attributes: HTML attributes for the layout <div>.
12  *
13  * @ingroup themeable
14  */
15 #}
16 {%
17   set classes = [
18     'layout',
19     'layout--threecol-25-50-25',
20   ]
21 %}
22 {% if content %}
23   <div{{ attributes.addClass(classes) }}>
24     {% if content.top %}
25       <div {{ region_attributes.top.addClass('layout__region', 'layout__region--top') }}>
26         {{ content.top }}
27       </div>
28     {% endif %}
29
30     {% if content.first %}
31       <div {{ region_attributes.first.addClass('layout__region', 'layout__region--first') }}>
32         {{ content.first }}
33       </div>
34     {% endif %}
35
36     {% if content.second %}
37       <div {{ region_attributes.second.addClass('layout__region', 'layout__region--second') }}>
38         {{ content.second }}
39       </div>
40     {% endif %}
41
42     {% if content.third %}
43       <div {{ region_attributes.third.addClass('layout__region', 'layout__region--third') }}>
44         {{ content.third }}
45       </div>
46     {% endif %}
47
48     {% if content.bottom %}
49       <div {{ region_attributes.bottom.addClass('layout__region', 'layout__region--bottom') }}>
50         {{ content.bottom }}
51       </div>
52     {% endif %}
53   </div>
54 {% endif %}