Issue #2296423 by tim.plunkett, dsnopek, swentel, Manuel Garcia, tedbow, alexpott, xjm, andypost, dawehner, effulgentsia, Berdir, jhedstrom, catch, benjy, jibran, Wim Leers, tstoeckler, larowlan, webchick: Implement layout plugin type in core
2016-12-09 11:55:52 +00:00
|
|
|
{#
|
|
|
|
/**
|
|
|
|
* @file
|
|
|
|
* Template for a generic layout.
|
|
|
|
*/
|
|
|
|
#}
|
2017-05-17 06:20:57 +00:00
|
|
|
{%
|
|
|
|
set classes = [
|
|
|
|
'layout',
|
|
|
|
'layout--' ~ layout.id|clean_class,
|
|
|
|
]
|
|
|
|
%}
|
Issue #2296423 by tim.plunkett, dsnopek, swentel, Manuel Garcia, tedbow, alexpott, xjm, andypost, dawehner, effulgentsia, Berdir, jhedstrom, catch, benjy, jibran, Wim Leers, tstoeckler, larowlan, webchick: Implement layout plugin type in core
2016-12-09 11:55:52 +00:00
|
|
|
{% if content %}
|
2017-05-17 06:20:57 +00:00
|
|
|
<div{{ attributes.addClass(classes) }}>
|
|
|
|
{% for region in layout.getRegionNames %}
|
|
|
|
{% if content[region] %}
|
2017-06-18 09:12:34 +00:00
|
|
|
<div {{ region_attributes[region].addClass('layout__region', 'layout__region--' ~ region|clean_class) }}>
|
2017-05-17 06:20:57 +00:00
|
|
|
{{ content[region] }}
|
|
|
|
</div>
|
|
|
|
{% endif %}
|
|
|
|
{% endfor %}
|
Issue #2296423 by tim.plunkett, dsnopek, swentel, Manuel Garcia, tedbow, alexpott, xjm, andypost, dawehner, effulgentsia, Berdir, jhedstrom, catch, benjy, jibran, Wim Leers, tstoeckler, larowlan, webchick: Implement layout plugin type in core
2016-12-09 11:55:52 +00:00
|
|
|
</div>
|
|
|
|
{% endif %}
|