annotate core/themes/stable/layouts/threecol_section/layout--threecol-section.html.twig @ 19:fa3358dc1485 tip

Add ndrum files
author Chris Cannam
date Wed, 28 Aug 2019 13:14:47 +0100
parents af1871eacc83
children
rev   line source
Chris@18 1 {#
Chris@18 2 /**
Chris@18 3 * @file
Chris@18 4 * Default theme implementation for a three-column layout.
Chris@18 5 *
Chris@18 6 * Available variables:
Chris@18 7 * - content: The content for this layout.
Chris@18 8 * - attributes: HTML attributes for the layout <div>.
Chris@18 9 *
Chris@18 10 * @ingroup themeable
Chris@18 11 */
Chris@18 12 #}
Chris@18 13 {% if content %}
Chris@18 14 <div{{ attributes.addClass(classes) }}>
Chris@18 15
Chris@18 16 {% if content.first %}
Chris@18 17 <div {{ region_attributes.first.addClass('layout__region', 'layout__region--first') }}>
Chris@18 18 {{ content.first }}
Chris@18 19 </div>
Chris@18 20 {% endif %}
Chris@18 21
Chris@18 22 {% if content.second %}
Chris@18 23 <div {{ region_attributes.second.addClass('layout__region', 'layout__region--second') }}>
Chris@18 24 {{ content.second }}
Chris@18 25 </div>
Chris@18 26 {% endif %}
Chris@18 27
Chris@18 28 {% if content.third %}
Chris@18 29 <div {{ region_attributes.third.addClass('layout__region', 'layout__region--third') }}>
Chris@18 30 {{ content.third }}
Chris@18 31 </div>
Chris@18 32 {% endif %}
Chris@18 33
Chris@18 34 </div>
Chris@18 35 {% endif %}