{#
    UI Element template
    type: image_collection
    element fields :
        images
#}
<section class="block-section block-slider">
    <div class="default-slider">
        {% for image in element.images %}
            <div>
                {% if image.link is not empty %}
                    <a href="{{ image.link }}">
                        <img class="w-100" src="{{ image.image }}" alt="{{ image.alt|default('') }}" title="{{ image.title|default('') }}" />
                    </a>
                {% else %}
                    <img class="w-100" src="{{ image.image }}" alt="{{ image.alt|default('') }}" title="{{ image.title|default('') }}" />
                {% endif %}
            </div>
        {% endfor %}
    </div>
</section>
