{% sw_extends '@parent/storefront/element/cms-element-image-gallery.html.twig' %}{% block element_image_gallery_inner %} <div class="row gallery-slider-row{% if imageCount == 1 %} is-single-image{% endif %} js-gallery-zoom-modal-container" {% if zoom %} data-magnifier="true" {% endif %} {% if magnifierOptions|length > 0 %} data-magnifier-options='{{ magnifierOptions|json_encode|raw }}' {% endif %} {% if imageCount > 1 %} data-gallery-slider="true" data-gallery-slider-options='{ "slider": { "navPosition": "bottom", "speed": 500, "gutter": {% if gutter %} {{ gutter }} {% else %} 0 {% endif %}, "controls": {% if navigationArrows %}true{% else %}false{% endif %}, "autoHeight": {% if displayMode == "standard" %}true{% else %}false{% endif %} {% if startIndexThumbnails %} ,"startIndex": {{ startIndexThumbnails }} {% endif %} }, "thumbnailSlider": { {% if galleryPosition == "underneath" %}{# "autoWidth": true,#}{# "controls": false,#} {% endif %} {% if startIndexThumbnails %} "startIndex": {{ startIndexThumbnails }}, {% endif %} "items": 4, "loop" : true, "responsive": { "xs": { "enabled": false, "controls": false }, "sm": { "enabled": false, "controls": false }{% if galleryPosition == "left" %}, "md": { "axis": "vertical" }, "lg": { "axis": "vertical" }, "xl": { "axis": "vertical" }{% else %}, "md": { "axis": "horizontal", "items" : 3 }, "lg": { "axis": "horizontal" }, "xl": { "axis": "horizontal", "items": 4 }{% endif %} } } }' {% endif %}> {% block element_image_gallery_inner_col %} {{ parent() }} {% endblock %} {% block element_image_gallery_inner_thumbnails_col %} {% if imageCount > 1 %} <div class="gallery-slider-thumbnails-col{% if galleryPosition == "left" %} col-0 col-md-auto order-2 order-md-1 is-left{% elseif galleryPosition == "underneath" %} col-12 order-2 is-underneath{% endif %}"> <div class="gallery-slider-thumbnails-container"> {% block element_image_gallery_inner_thumbnails %} <div class="gallery-slider-thumbnails{% if galleryPosition == "underneath" %} is-underneath{% endif %}" data-gallery-slider-thumbnails="true"> {% block element_image_gallery_inner_thumbnails_items %} {% for image in mediaItems %} {% block element_image_gallery_inner_thumbnails_item %} <div class="gallery-slider-thumbnails-item"> {% block element_image_gallery_inner_thumbnails_item_inner %} <div class="gallery-slider-thumbnails-item-inner"> {% set attributes = { 'class': 'gallery-slider-thumbnails-image', 'alt': (image.translated.alt ?: fallbackImageTitle), 'title': (image.translated.title ?: fallbackImageTitle) } %} {% if isProduct %} {% set attributes = attributes|merge({ 'itemprop': 'image' }) %} {% endif %} {% sw_thumbnails 'gallery-slider-thumbnails-image-thumbnails' with { media: image, sizes: { 'default': '200px' } } %} </div> {% endblock %} </div> {% endblock %} {% endfor %} {% endblock %} </div> {% endblock %} {% block element_image_gallery_inner_thumbnails_controls %} {% if galleryPosition == "left" %} <div data-thumbnail-slider-controls="true" class="gallery-slider-thumbnails-controls"> <button class="base-slider-controls-prev gallery-slider-thumbnails-controls-prev"> {% sw_icon 'arrow-head-up' %} </button> <button class="base-slider-controls-next gallery-slider-thumbnails-controls-next"> {% sw_icon 'arrow-head-down' %} </button> </div> {% else %} <div data-thumbnail-slider-controls="true" class="gallery-slider-thumbnails-controls"> <button class="base-slider-controls-prev gallery-slider-thumbnails-controls-prev"> {% sw_icon 'fa-angle-left' style {'pack' : 'light', 'namespace': 'MDR_Theme'} %} </button> <button class="base-slider-controls-next gallery-slider-thumbnails-controls-next"> {% sw_icon 'fa-angle-right' style {'pack' : 'light', 'namespace': 'MDR_Theme'} %} </button> </div> {% endif %} {% endblock %} </div> </div> {% endif %} {% endblock %} {% block element_image_gallery_inner_zoom_modal_wrapper %} {{ parent() }} {% endblock %} </div>{% endblock %}{% block element_image_gallery_inner_control_prev_icon %} {% sw_icon 'fa-angle-left' style {'pack' : 'light', 'namespace': 'MDR_Theme'} %}{% endblock %}{% block element_image_gallery_inner_control_next_icon %} {% sw_icon 'fa-angle-right' style {'pack' : 'light', 'namespace': 'MDR_Theme'} %}{% endblock %}