39 lines
1.1 KiB
Twig
39 lines
1.1 KiB
Twig
{#
|
|
/**
|
|
* @file
|
|
* Theme override to display a block.
|
|
*/
|
|
#}
|
|
|
|
{%
|
|
set classes = [
|
|
'block',
|
|
'promotion-block',
|
|
'block-' ~ configuration.provider|clean_class,
|
|
'block-' ~ plugin_id|clean_class,
|
|
]
|
|
%}
|
|
<div{{ attributes.addClass(classes) }} {% if block_style %}style="{{ block_style }}"{% endif %}>
|
|
<div class="container-wrap">
|
|
{{ title_prefix }}
|
|
{% if label %}
|
|
<div class="block-title-wrap">
|
|
<div class="block-title-content">
|
|
{% if block_title_style == 'block-title-2' %}
|
|
{% if block_subtitle %}<h5 class="block-subtitle">{{ block_subtitle }}</h5>{% endif %}
|
|
<h2{{ title_attributes.addClass('block-title') }}>{{ label }}</h2>
|
|
{% else %}
|
|
<h2{{ title_attributes.addClass('block-title') }}>{{ label }}</h2>
|
|
{% if block_subtitle %}<h5 class="block-subtitle">{{ block_subtitle }}</h5>{% endif %}
|
|
{% endif %}
|
|
</div>
|
|
</div>
|
|
{% endif %}
|
|
{{ title_suffix }}
|
|
{% block content %}
|
|
<div class="block-content promotion-layout promotion-{{ content.field_promotion_layout['#items'].value }}">
|
|
{{ content.field_block }}
|
|
</div>
|
|
{% endblock %}
|
|
</div>
|
|
</div> |