Mercurial > hg > isophonics-drupal-site
annotate core/themes/stable/layouts/twocol_section/layout--twocol-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 to display a two-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 }}> |
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 </div> |
Chris@18 | 29 {% endif %} |