forked from a64f7bb4-7358-4778-9fbe-3b882c34cc1d/v1
38 lines
845 B
Twig
38 lines
845 B
Twig
{{ '{' }}#
|
|
/**
|
|
* @file
|
|
* Default theme implementation to display {{ layout_name|lower }} layout.
|
|
*
|
|
* Available variables:
|
|
* - content: The content for this layout.
|
|
* - attributes: HTML attributes for the layout wrapper.
|
|
*
|
|
* @ingroup themeable
|
|
*/
|
|
#{{ '}' }}
|
|
{{ '{' }}%
|
|
set classes = [
|
|
'layout',
|
|
'layout--{{ layout_machine_name|u2h }}',
|
|
]
|
|
%{{ '}' }}
|
|
{% verbatim %}
|
|
{% if content %}
|
|
<div{{ attributes.addClass(classes) }}>
|
|
|
|
{% if content.main %}
|
|
<div {{ region_attributes.main.addClass('layout__region', 'layout__region--main') }}>
|
|
{{ content.main }}
|
|
</div>
|
|
{% endif %}
|
|
|
|
{% if content.sidebar %}
|
|
<div {{ region_attributes.sidebar.addClass('layout__region', 'layout__region--sidebar') }}>
|
|
{{ content.sidebar }}
|
|
</div>
|
|
{% endif %}
|
|
|
|
</div>
|
|
{% endif %}
|
|
{% endverbatim %}
|