{% extends "@Contao/content_element/_base.html.twig" %} {% block wrapper %} {% set classes = ['feature-section--' ~ (variant|default('v1'))] %} {% set attributes = attrs(attributes|default).addClass(classes) %} {{ parent() }} {% endblock %} {%- block inner %}
{% if bgLeft is defined and bgLeft %}
{{ contao_figure(bgLeft, bgLeftSize) }}
{% endif %}
{% if logo is defined and logo and variant not in ['v1', 'v2'] %}
{{ contao_figure(logo, logoSize) }}
{% endif %} {% if headline.text and variant !== 'v1' %}
{{ block('headline_component') }}
{% endif %}
{{ text|raw }}
{% if variant not in ['v1', 'v2'] %}
{% if gallery is defined and gallery is not empty %} {% for uuid in gallery %} {{ contao_figure(uuid, gallerySize) }} {% endfor %} {% endif %}
{% endif %} {% if variant in ['v1', 'v2'] %} {% endif %}
{% endif %} {% endblock -%}