{# /** * @file * Default theme implementation for the individual slick item/slide template. * * Available variables: * - attributes: An array of attributes to apply to the element. * - item.slide: A renderable array of the main image/background. * - item.caption: A renderable array containing caption fields if provided: * - title: The individual slide title. * - alt: The core Image field Alt as caption. * - link: The slide links or buttons. * - overlay: The image/audio/video overlay, or a nested slick. * - data: any possible field for more complex data if crazy enough. * - settings: An array containing the given settings. * * @see template_preprocess_slick_slide() */ #} {% set classes = [ 'slick__slide', 'slide', 'slide--' ~ delta, item.slide is empty ? 'slide--text', settings.layout ? 'slide--caption--' ~ settings.layout|clean_class, settings.class ? settings.class ] %} {% set content_classes = [ settings.detroy ? 'slide', not settings.detroy ? 'slide__content' ] %} {% set slide %} {% block slick_slide %} {% if settings.split and not settings.unslick %}
{{ item.slide }}
{% else %} {{ item.slide }} {% endif %} {% endblock %} {% endset %} {% if settings.wrapper %} {% if settings.grid is empty %}{% endif %} {% endif %} {% if item.slide %} {{ slide }} {% endif %} {% if item.caption %} {% block slick_caption %} {% if settings.fullwidth %}
{% endif %}
{% if item.caption.overlay %}
{{ item.caption.overlay }}
{% if settings.data %}
{% endif %} {% endif %} {% if item.caption.title %}

{{ item.caption.title }}

{% endif %} {% if item.caption.alt %}

{{ item.caption.alt }}

{% endif %} {{ item.caption.data }} {% if item.caption.link %} {% endif %} {% if item.caption.overlay and settings.data %}
{% endif %}
{% if settings.fullwidth %}
{% endif %} {% endblock %} {% endif %} {% if settings.wrapper %} {% if settings.grid is empty %}{% endif %} {% endif %}