{#
    UI Element template
    type: title
    element fields :
        content
#}
<section class="block-section block-title text-{{ element.align|default('default') }}">
    {% if element.title is defined and element.title is not empty %}
        <{{ element.htmlTag|default('h2') }} class="title-wrapper {{ element.class|default('h2') }}">{{ element.title }}</{{ element.htmlTag|default('h2') }}>
    {% endif %}

    {% if element.title is defined and element.subtitle is not empty %}
        <{{ element.subtitleHtmlTag|default('h3') }} class="subtitle-wrapper {{ element.subtitleClass.class|default('h3') }}">{{ element.subtitle }}</{{ element.subtitleHtmlTag|default('h3') }}>
    {% endif %}
</section>
