{#
    UI Element template
    type: image
    element fields :
        image
        alt
        title
        link
#}
{% if element.image is defined %}
    <section class="block-section block-img">
        {% if element.link is not empty %}
            <a class="img-wrapper" href="{{ element.link }}">
                <img class="img-fluid" src="{{ element.image }}" alt="{{ element.alt|default('') }}" title="{{ element.title|default('') }}" />
            </a>
        {% else %}
            <div class="img-wrapper">
                <img class="img-fluid" src="{{ element.image }}" alt="{{ element.alt|default('') }}" title="{{ element.title|default('') }}" />
            </div>
        {% endif %}
    </section>
{% endif %}
