bootstrap_italia-8.x-0.x-dev/modules/bootstrap_italia_views_carousel/templates/views-bootstrap-italia-views-carousel.html.twig
modules/bootstrap_italia_views_carousel/templates/views-bootstrap-italia-views-carousel.html.twig
{# /** * Default theme implementation for Views to output a splide carousel. * * Available variables: * - options.bi_carousel_settings: View plugin style options: * - carousel_col_type * - slide_spacing * - carousel_image_type * * @see template_preprocess_views_bootstrap_italia_views_carousel() * * @ingroup themeable */ #} {% embed '@bi-bcl/carousel/carousel.html.twig' with { carousel_col_type: options.bi_carousel_settings.carousel_col_type, carousel_image_type: options.bi_carousel_settings.carousel_image_type, slide_lined: options.bi_carousel_settings.slide_spacing == 'slide_lined' ? true, slide_track_padding: options.bi_carousel_settings.slide_spacing == 'slide_track_padding' ? true, carousel_attributes: attributes, } %} {% block carouselSlides %} {% for slide in rows %} {% include '@bi-bcl/carousel/carousel-slide.html.twig' with { content: slide, slide_image_wrapper: options.bi_carousel_settings.carousel_image_type is not empty ? true, slide_classes: _slide_classes, slide_attributes: _slide_attributes } %} {% endfor %} {% endblock %} {% endembed %}