Mercurial > hg > isophonics-drupal-site
view core/modules/layout_discovery/templates/layout.html.twig @ 5:c69a71b4f40f
Add slideshow module
author | Chris Cannam |
---|---|
date | Thu, 07 Dec 2017 14:46:23 +0000 |
parents | 4c8ae668cc8c |
children |
line wrap: on
line source
{# /** * @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 %}