{% sw_extends '@Storefront/storefront/element/cms-element-image-gallery.html.twig' %}
{% block element_image_gallery_inner_thumbnails_item_inner %}
{% if image is defined and image._entityName == 'product_media' %}
<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'
},
loadingStrategy: 'eager'
} %}
</div>
{% else %}
{{ parent() }}
{% endif %}
{% endblock %}
{% block element_image_gallery_inner_zoom_modal_slider_item_image %}
{% sw_thumbnails 'gallery-slider-image-thumbnails' with {
media: image,
attributes: {
'class': 'gallery-slider-image js-image-zoom-element js-load-img',
'alt': (image.translated.alt ?: fallbackImageTitle),
'title': (image.translated.title ?: fallbackImageTitle)
},
load: false,
loadOriginalImage: true,
autoColumnSizes: false,
loadingStrategy: 'eager'
} %}
{% endblock %}
{# Support for the SolidProductVideos Plugin #}
{% block solid_pv_gallery_slider_thumbnail_image %}
{% include '@FuexcImageCDN/storefront/element/solid-product-videos-fix.html.twig' %}
{% block solid_pv_gallery_slider_thumbnail_icon %}
{{ parent() }}
{% endblock %}
{% endblock %}