vendor/shopware/storefront/Resources/views/storefront/element/cms-element-image-gallery.html.twig line 1

Open in your IDE?
  1. {% block element_image_gallery %}
  2.     {# cms element data and configs #}
  3.     {% if element.fieldConfig is defined and element.data is defined %}
  4.         {% set sliderConfig = element.fieldConfig.elements %}
  5.         {% set mediaItems = [] %}
  6.         {% for item in element.data.sliderItems %}
  7.             {% set mediaItems = mediaItems|merge([item.media]) %}
  8.         {% endfor %}
  9.         {% set zoom = sliderConfig.zoom.value %}
  10.         {% set gutter = sliderConfig.gutter.value %}
  11.         {% set keepAspectRatioOnZoom = sliderConfig.keepAspectRatioOnZoom.value %}
  12.         {% set magnifierOverGallery = sliderConfig.magnifierOverGallery.value %}
  13.         {% set zoomModal = sliderConfig.fullScreen.value %}
  14.         {% set minHeight = sliderConfig.minHeight.value %}
  15.         {% set displayMode = sliderConfig.displayMode.value %}
  16.         {% set navigationArrows = sliderConfig.navigationArrows.value %}
  17.         {% set navigationDots = sliderConfig.navigationDots.value %}
  18.         {% set galleryPosition = sliderConfig.galleryPosition.value %}
  19.         {% set verticalAlign = sliderConfig.verticalAlign.value %}
  20.         {% set zoomImageContainerSelector = sliderConfig.zoomImageContainerSelector.value %}
  21.     {% endif %}
  22.     {% if fallbackImageTitle is not defined %}
  23.         {% set fallbackImageTitle = '' %}
  24.     {% endif %}
  25.     {# @var mediaItems \Shopware\Core\Content\Media\MediaCollection #}
  26.     {% set imageCount = mediaItems|length %}
  27.     {# too many underneath thumbs or slider dots make them hard to see #}
  28.     {% set maxItemsToShowMobileNav = 5 %}
  29.     {% set maxItemsToShowNav = 8 %}
  30.     {% set magnifierOptions = [] %}
  31.     {% if magnifierOverGallery %}
  32.         {% set magnifierOptions = magnifierOptions|merge({
  33.             'magnifierOverGallery': true,
  34.             'cursorType': 'crosshair'
  35.         }) %}
  36.     {% endif %}
  37.     {% if keepAspectRatioOnZoom is defined and keepAspectRatioOnZoom is not null %}
  38.         {% set magnifierOptions = magnifierOptions|merge({
  39.             'keepAspectRatioOnZoom': keepAspectRatioOnZoom
  40.         }) %}
  41.     {% endif %}
  42.     {% if zoomImageContainerSelector %}
  43.         {% set magnifierOptions = magnifierOptions|merge({
  44.             'zoomImageContainerSelector': zoomImageContainerSelector
  45.         }) %}
  46.     {% endif %}
  47.     <div class="cms-element-{{ element.type }}{% if displayMode == "standard" and verticalAlign %} has-vertical-alignment{% endif %}">
  48.         {% block element_image_gallery_alignment %}
  49.             {% if config.verticalAlign.value %}
  50.                 <div class="cms-element-alignment{% if verticalAlign == "center" %} align-self-center{% elseif verticalAlign == "flex-end" %} align-self-end{% else %} align-self-start{% endif %}">
  51.             {% endif %}
  52.                 {% set gallerySliderOptions = {
  53.                     slider: {
  54.                         navPosition: 'bottom',
  55.                         speed: 500,
  56.                         gutter: gutter ? gutter : 0,
  57.                         controls: navigationArrows ? true : false,
  58.                         autoHeight: false,
  59.                         startIndex: startIndexThumbnails ? startIndexThumbnails : null
  60.                     },
  61.                     thumbnailSlider: {
  62.                         items: (galleryPosition == "underneath") ? 6 : 5,
  63.                         slideBy: (galleryPosition == "underneath") ? 5 : 4,
  64.                         controls: true,
  65.                         startIndex: startIndexThumbnails ? startIndexThumbnails : null,
  66.                         responsive: {
  67.                             xs: {
  68.                                 enabled: false,
  69.                                 controls: false
  70.                             },
  71.                             sm: {
  72.                                 enabled: false,
  73.                                 controls: false
  74.                             }
  75.                         }
  76.                     }
  77.                 } %}
  78.                 {% if galleryPosition == "left" %}
  79.                     {% set gallerySliderOptions = gallerySliderOptions|replace_recursive({
  80.                         thumbnailSlider: {
  81.                             responsive: {
  82.                                 md: {
  83.                                     axis: 'vertical'
  84.                                 },
  85.                                 lg: {
  86.                                     axis: 'vertical'
  87.                                 },
  88.                                 xl: {
  89.                                     axis: 'vertical'
  90.                                 }
  91.                             }
  92.                         }
  93.                     }) %}
  94.                     {# @deprecated tag:v6.5.0 - Bootstrap v5 adds xxl breakpoint #}
  95.                     {% if feature('v6.5.0.0') %}
  96.                         {% set gallerySliderOptions = gallerySliderOptions|replace_recursive({
  97.                             thumbnailSlider: {
  98.                                 responsive: {
  99.                                     xxl: {
  100.                                         axis: 'vertical'
  101.                                     }
  102.                                 }
  103.                             }
  104.                         }) %}
  105.                     {% endif %}
  106.                 {% endif %}
  107.                 {% block element_image_gallery_inner %}
  108.                     <div class="row gallery-slider-row{% if imageCount == 1 %} is-single-image{% else %} is-loading{% endif %} js-gallery-zoom-modal-container"
  109.                             {% if zoom %}
  110.                                 data-magnifier="true"
  111.                             {% endif %}
  112.                             {% if magnifierOptions|length > 0 %}
  113.                                 data-magnifier-options='{{ magnifierOptions|json_encode|raw }}'
  114.                             {% endif %}
  115.                             {% if imageCount > 1 %}
  116.                                 data-gallery-slider="true"
  117.                                 data-gallery-slider-options='{{ gallerySliderOptions|json_encode }}'
  118.                             {% endif %}>
  119.                         {% block element_image_gallery_inner_col %}
  120.                             <div class="gallery-slider-col{% if galleryPosition == "left" %} col order-1 order-md-2{% elseif galleryPosition == "underneath" %} col-12 order-1{% endif %}"
  121.                                  {% if zoomModal %}data-zoom-modal="true"{% endif %}>
  122.                                 {# option "magnifierOverGallery" shows zoom container over gallery #}
  123.                                 <div class="base-slider gallery-slider{% if navigationArrows == "outside" %} has-nav-outside{% endif %}{% if navigationDots == "outside" %} has-dots-outside{% endif %}{% if magnifierOverGallery %} js-magnifier-zoom-image-container{% endif %}">
  124.                                     {% block element_image_gallery_inner_wrapper %}
  125.                                         {% if imageCount > 1 %}
  126.                                             {% block element_image_gallery_inner_multiple_slides %}
  127.                                                 {% block element_image_gallery_inner_container %}
  128.                                                     <div class="gallery-slider-container"
  129.                                                          data-gallery-slider-container="true">
  130.                                                         {% block element_image_gallery_inner_items %}
  131.                                                             {% for image in mediaItems %}
  132.                                                                 {% block element_image_gallery_inner_item %}
  133.                                                                     <div class="gallery-slider-item-container">
  134.                                                                         <div class="gallery-slider-item is-{{ displayMode }} js-magnifier-container"{% if minHeight and  (displayMode == "cover" or displayMode == "contain" ) %} style="min-height: {{ minHeight }}"{% endif %}>
  135.                                                                             {% set attributes = {
  136.                                                                                 'class': 'img-fluid gallery-slider-image magnifier-image js-magnifier-image',
  137.                                                                                 'alt': (image.translated.alt ?: fallbackImageTitle),
  138.                                                                                 'title': (image.translated.title ?: fallbackImageTitle),
  139.                                                                                 'data-full-image': image.url
  140.                                                                             } %}
  141.                                                                             {% if displayMode == 'cover' or displayMode == 'contain' %}
  142.                                                                                 {% set attributes = attributes|merge({ 'data-object-fit': displayMode }) %}
  143.                                                                             {% endif %}
  144.                                                                             {% if isProduct %}
  145.                                                                                 {% set attributes = attributes|merge({ 'itemprop': 'image' }) %}
  146.                                                                             {% endif %}
  147.                                                                             {% sw_thumbnails 'gallery-slider-image-thumbnails' with {
  148.                                                                                 media: image
  149.                                                                             } %}
  150.                                                                         </div>
  151.                                                                     </div>
  152.                                                                 {% endblock %}
  153.                                                             {% endfor %}
  154.                                                         {% endblock %}
  155.                                                     </div>
  156.                                                 {% endblock %}
  157.                                                 {% block element_image_gallery_inner_controls %}
  158.                                                     {% if navigationArrows %}
  159.                                                         <div class="gallery-slider-controls"
  160.                                                              data-gallery-slider-controls="{% if navigationArrows %}true{% else %}false{% endif %}">
  161.                                                             {% block element_image_gallery_inner_control_items %}
  162.                                                                 {% block element_image_gallery_inner_control_prev %}
  163.                                                                     <button class="base-slider-controls-prev gallery-slider-controls-prev{% if navigationArrows == "outside" %} is-nav-prev-outside{% elseif navigationArrows == "inside" %} is-nav-prev-inside{% endif %}"
  164.                                                                             aria-label="{{ 'general.previous'|trans|striptags }}">
  165.                                                                         {% block element_image_gallery_inner_control_prev_icon %}
  166.                                                                             {% sw_icon 'arrow-head-left' %}
  167.                                                                         {% endblock %}
  168.                                                                     </button>
  169.                                                                 {% endblock %}
  170.                                                                 {% block element_image_gallery_inner_control_next %}
  171.                                                                     <button class="base-slider-controls-next gallery-slider-controls-next{% if navigationArrows == "outside" %} is-nav-next-outside{% elseif navigationArrows == "inside" %} is-nav-next-inside{% endif %}"
  172.                                                                             aria-label="{{ 'general.next'|trans|striptags }}">
  173.                                                                         {% block element_image_gallery_inner_control_next_icon %}
  174.                                                                             {% sw_icon 'arrow-head-right' %}
  175.                                                                         {% endblock %}
  176.                                                                     </button>
  177.                                                                 {% endblock %}
  178.                                                             {% endblock %}
  179.                                                         </div>
  180.                                                     {% endif %}
  181.                                                 {% endblock %}
  182.                                             {% endblock %}
  183.                                         {% else %}
  184.                                             {% block element_image_gallery_inner_single %}
  185.                                                 <div class="gallery-slider-single-image is-{{ displayMode }} js-magnifier-container"{% if minHeight %} style="min-height: {{ minHeight }}"{% endif %}>
  186.                                                     {% if imageCount > 0 %}
  187.                                                         {% set attributes = {
  188.                                                             'class': 'img-fluid gallery-slider-image magnifier-image js-magnifier-image',
  189.                                                             'alt': (mediaItems|first.translated.alt ?: fallbackImageTitle),
  190.                                                             'title': (mediaItems|first.translated.title ?: fallbackImageTitle),
  191.                                                             'data-full-image': mediaItems|first.url
  192.                                                         } %}
  193.                                                         {% if displayMode == 'cover' or displayMode == 'contain' %}
  194.                                                             {% set attributes = attributes|merge({ 'data-object-fit': displayMode }) %}
  195.                                                         {% endif %}
  196.                                                         {% if isProduct %}
  197.                                                             {% set attributes = attributes|merge({ 'itemprop': 'image' }) %}
  198.                                                         {% endif %}
  199.                                                         {% sw_thumbnails 'gallery-slider-image-thumbnails' with {
  200.                                                             media: mediaItems|first,
  201.                                                         } %}
  202.                                                     {% else %}
  203.                                                         {% sw_icon 'placeholder' style {
  204.                                                             'size': 'fluid'
  205.                                                         } %}
  206.                                                     {% endif %}
  207.                                                 </div>
  208.                                             {% endblock %}
  209.                                         {% endif %}
  210.                                     {% endblock %}
  211.                                     {% block element_image_gallery_slider_dots %}
  212.                                         {% if imageCount > 1 and navigationDots %}
  213.                                             <div class="base-slider-dots {% if imageCount > maxItemsToShowNav %} hide-dots{% elseif imageCount > maxItemsToShowMobileNav %} hide-dots-mobile{% endif %}">
  214.                                                 {% block element_image_gallery_slider_dots_buttons %}
  215.                                                     {% for image in mediaItems %}
  216.                                                         {% block element_image_gallery_slider_dots_button %}
  217.                                                             <button class="base-slider-dot"
  218.                                                                     data-nav-dot="{{ loop.index }}"
  219.                                                                     tabindex="-1"></button>
  220.                                                         {% endblock %}
  221.                                                     {% endfor %}
  222.                                                 {% endblock %}
  223.                                             </div>
  224.                                         {% endif %}
  225.                                     {% endblock %}
  226.                                 </div>
  227.                             </div>
  228.                         {% endblock %}
  229.                         {% block element_image_gallery_inner_thumbnails_col %}
  230.                             {% if imageCount > 1 %}
  231.                                 <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 %}">
  232.                                     <div class="gallery-slider-thumbnails-container{% if galleryPosition == "underneath" %} is-underneath{% endif %}">
  233.                                         {% block element_image_gallery_inner_thumbnails %}
  234.                                             <div class="gallery-slider-thumbnails{% if galleryPosition == "underneath" %} is-underneath{% endif %}"
  235.                                                  data-gallery-slider-thumbnails="true">
  236.                                                 {% block element_image_gallery_inner_thumbnails_items %}
  237.                                                     {% for image in mediaItems %}
  238.                                                         {% block element_image_gallery_inner_thumbnails_item %}
  239.                                                             <div class="gallery-slider-thumbnails-item">
  240.                                                                 {% block element_image_gallery_inner_thumbnails_item_inner %}
  241.                                                                     <div class="gallery-slider-thumbnails-item-inner">
  242.                                                                         {% set attributes = {
  243.                                                                             'class': 'gallery-slider-thumbnails-image',
  244.                                                                             'alt': (image.translated.alt ?: fallbackImageTitle),
  245.                                                                             'title': (image.translated.title ?: fallbackImageTitle)
  246.                                                                         } %}
  247.                                                                         {% if isProduct %}
  248.                                                                             {% set attributes = attributes|merge({ 'itemprop': 'image' }) %}
  249.                                                                         {% endif %}
  250.                                                                         {% sw_thumbnails 'gallery-slider-thumbnails-image-thumbnails' with {
  251.                                                                             media: image,
  252.                                                                             sizes: {
  253.                                                                                 'default': '200px'
  254.                                                                             }
  255.                                                                         } %}
  256.                                                                     </div>
  257.                                                                 {% endblock %}
  258.                                                             </div>
  259.                                                         {% endblock %}
  260.                                                     {% endfor %}
  261.                                                 {% endblock %}
  262.                                             </div>
  263.                                         {% endblock %}
  264.                                         {% block element_image_gallery_inner_thumbnails_controls %}
  265.                                             <div data-thumbnail-slider-controls="true" class="gallery-slider-thumbnails-controls">
  266.                                                 {% block element_image_gallery_inner_thumbnails_controls_prev %}
  267.                                                     <button class="base-slider-controls-prev gallery-slider-thumbnails-controls-prev">
  268.                                                         {% if galleryPosition == "left" %}
  269.                                                             {% sw_icon 'arrow-head-up' %}
  270.                                                         {% elseif galleryPosition == "underneath" %}
  271.                                                             {% sw_icon 'arrow-head-left' %}
  272.                                                         {% endif %}
  273.                                                     </button>
  274.                                                 {% endblock %}
  275.                                                 {% block element_image_gallery_inner_thumbnails_controls_next %}
  276.                                                     <button class="base-slider-controls-next gallery-slider-thumbnails-controls-next">
  277.                                                         {% if galleryPosition == "left" %}
  278.                                                             {% sw_icon 'arrow-head-down' %}
  279.                                                         {% elseif galleryPosition == "underneath" %}
  280.                                                             {% sw_icon 'arrow-head-right' %}
  281.                                                         {% endif %}
  282.                                                     </button>
  283.                                                 {% endblock %}
  284.                                             </div>
  285.                                         {% endblock %}
  286.                                     </div>
  287.                                 </div>
  288.                             {% endif %}
  289.                         {% endblock %}
  290.                         {% block element_image_gallery_inner_zoom_modal_wrapper %}
  291.                             {% if zoomModal %}
  292.                                 <div class="zoom-modal-wrapper">
  293.                                     {% block element_image_gallery_inner_zoom_modal %}
  294.                                         <div class="modal is-fullscreen zoom-modal js-zoom-modal{% if imageCount is same as(1) %} no-thumbnails{% endif %}"
  295.                                              data-image-zoom-modal="true"
  296.                                              tabindex="-1"
  297.                                              role="dialog">
  298.                                             {% block element_image_gallery_inner_zoom_modal_dialog %}
  299.                                                 <div class="modal-dialog"
  300.                                                      role="document">
  301.                                                     {% block element_image_gallery_inner_zoom_modal_content %}
  302.                                                         <div class="modal-content"{% if imageCount > 1 %} data-modal-gallery-slider="true"{% endif %}>
  303.                                                             {% block element_image_gallery_inner_zoom_modal_close_button %}
  304.                                                                 <button type="button"
  305.                                                                         class="{{ modalCloseBtnClass }} close"
  306.                                                                         {{ dataBsDismissAttr }}="modal"
  307.                                                                         aria-label="Close">
  308.                                                                     {% block element_image_gallery_inner_zoom_modal_close_icon %}
  309.                                                                         {# @deprecated tag:v6.5.0 - Bootstrap v5 creates "x" symbol automatically via SVG background #}
  310.                                                                         {% if not feature('v6.5.0.0') %}
  311.                                                                             <span aria-hidden="true">
  312.                                                                                 {% sw_icon 'x' style { 'size': 'sm' } %}
  313.                                                                             </span>
  314.                                                                         {% endif %}
  315.                                                                     {% endblock %}
  316.                                                                 </button>
  317.                                                             {% endblock %}
  318.                                                             {% block element_image_gallery_inner_zoom_modal_body %}
  319.                                                                 <div class="modal-body">
  320.                                                                     {% block element_image_gallery_inner_zoom_modal_action_buttons %}
  321.                                                                         <div class="zoom-modal-actions btn-group"
  322.                                                                              role="group"
  323.                                                                              aria-label="zoom actions">
  324.                                                                             {% block element_image_gallery_inner_zoom_modal_action_zoom_out %}
  325.                                                                                 <button class="btn btn-light image-zoom-btn js-image-zoom-out">
  326.                                                                                     {% block element_image_gallery_inner_zoom_modal_action_zoom_out_icon %}
  327.                                                                                         {% sw_icon 'minus-circle' %}
  328.                                                                                     {% endblock %}
  329.                                                                                 </button>
  330.                                                                             {% endblock %}
  331.                                                                             {% block element_image_gallery_inner_zoom_modal_action_zoom_reset %}
  332.                                                                                 <button class="btn btn-light image-zoom-btn js-image-zoom-reset">
  333.                                                                                     {% block element_image_gallery_inner_zoom_modal_action_zoom_reset_icon %}
  334.                                                                                         {% sw_icon 'screen-minimize' %}
  335.                                                                                     {% endblock %}
  336.                                                                                 </button>
  337.                                                                             {% endblock %}
  338.                                                                             {% block element_image_gallery_inner_zoom_modal_action_zoom_in %}
  339.                                                                                 <button class="btn btn-light image-zoom-btn js-image-zoom-in">
  340.                                                                                     {% block element_image_gallery_inner_zoom_modal_action_zoom_in_icon %}
  341.                                                                                         {% sw_icon 'plus-circle' %}
  342.                                                                                     {% endblock %}
  343.                                                                                 </button>
  344.                                                                             {% endblock %}
  345.                                                                         </div>
  346.                                                                     {% endblock %}
  347.                                                                     {% block element_image_gallery_inner_zoom_modal_slider %}
  348.                                                                         <div class="gallery-slider"
  349.                                                                              data-gallery-slider-container=true>
  350.                                                                             {% block element_image_gallery_inner_zoom_modal_slider_items %}
  351.                                                                                 {% for image in mediaItems %}
  352.                                                                                     {% block element_image_gallery_inner_zoom_modal_slider_item %}
  353.                                                                                         <div class="gallery-slider-item">
  354.                                                                                             {% block element_image_gallery_inner_zoom_modal_slider_item_zoom_container %}
  355.                                                                                                 <div class="image-zoom-container"
  356.                                                                                                      data-image-zoom="true">
  357.                                                                                                     {% block element_image_gallery_inner_zoom_modal_slider_item_image %}
  358.                                                                                                         {% sw_thumbnails 'gallery-slider-image-thumbnails' with {
  359.                                                                                                             media: image,
  360.                                                                                                             attributes: {
  361.                                                                                                                 'class': 'gallery-slider-image js-image-zoom-element js-load-img',
  362.                                                                                                                 'alt': (image.translated.alt ?: fallbackImageTitle),
  363.                                                                                                                 'title': (image.translated.title ?: fallbackImageTitle)
  364.                                                                                                             },
  365.                                                                                                             load: false,
  366.                                                                                                             loadOriginalImage: true,
  367.                                                                                                             autoColumnSizes: false
  368.                                                                                                         } %}
  369.                                                                                                     {% endblock %}
  370.                                                                                                 </div>
  371.                                                                                             {% endblock %}
  372.                                                                                         </div>
  373.                                                                                     {% endblock %}
  374.                                                                                 {% endfor %}
  375.                                                                             {% endblock %}
  376.                                                                         </div>
  377.                                                                     {% endblock %}
  378.                                                                     {% block element_image_gallery_inner_zoom_modal_slider_controls %}
  379.                                                                         {% if imageCount > 1 %}
  380.                                                                             <div class="gallery-slider-controls"
  381.                                                                                  data-gallery-slider-controls="true">
  382.                                                                                 {% block element_image_gallery_inner_zoom_modal_slider_control_prev %}
  383.                                                                                     <button class="base-slider-controls-prev gallery-slider-controls-prev"
  384.                                                                                             aria-label="{{ 'general.previous'|trans|striptags }}">
  385.                                                                                         {% block element_image_gallery_inner_zoom_modal_slider_control_prev_icon %}
  386.                                                                                             {% sw_icon 'arrow-head-left' %}
  387.                                                                                         {% endblock %}
  388.                                                                                     </button>
  389.                                                                                 {% endblock %}
  390.                                                                                 {% block element_image_gallery_inner_zoom_modal_slider_control_next %}
  391.                                                                                     <button class="base-slider-controls-next gallery-slider-controls-next"
  392.                                                                                             aria-label="{{ 'general.next'|trans|striptags }}">
  393.                                                                                         {% block element_image_gallery_inner_zoom_modal_slider_control_next_icon %}
  394.                                                                                             {% sw_icon 'arrow-head-right' %}
  395.                                                                                         {% endblock %}
  396.                                                                                     </button>
  397.                                                                                 {% endblock %}
  398.                                                                             </div>
  399.                                                                         {% endif %}
  400.                                                                     {% endblock %}
  401.                                                                 </div>
  402.                                                             {% endblock %}
  403.                                                             {% if imageCount > 1 %}
  404.                                                                 {% block element_image_gallery_inner_zoom_modal_footer %}
  405.                                                                     <div class="modal-footer">
  406.                                                                         {% block element_image_gallery_inner_zoom_modal_thumbnails_controls %}
  407.                                                                             <div class="gallery-slider-modal-controls">
  408.                                                                                 <div data-thumbnail-slider-controls="true" class="gallery-slider-modal-thumbnails">
  409.                                                                                     <button class="base-slider-controls-prev gallery-slider-thumbnails-controls-prev"
  410.                                                                                             aria-label="{{ 'general.previous'|trans|striptags }}">
  411.                                                                                         {% sw_icon 'arrow-head-left' %}
  412.                                                                                     </button>
  413.                                                                                     <button class="base-slider-controls-next gallery-slider-thumbnails-controls-next"
  414.                                                                                             aria-label="{{ 'general.next'|trans|striptags }}">
  415.                                                                                         {% sw_icon 'arrow-head-right' %}
  416.                                                                                     </button>
  417.                                                                                 </div>
  418.                                                                             </div>
  419.                                                                         {% endblock %}
  420.                                                                         {% block element_image_gallery_inner_zoom_modal_thumbnails %}
  421.                                                                             <div class="gallery-slider-thumbnails"
  422.                                                                                  data-gallery-slider-thumbnails=true>
  423.                                                                                 {% block element_image_gallery_inner_zoom_modal_thumbnails_items %}
  424.                                                                                     {% for image in mediaItems %}
  425.                                                                                         {% block element_image_gallery_inner_zoom_modal_thumbnails_item %}
  426.                                                                                             <div class="gallery-slider-thumbnails-item">
  427.                                                                                                 {% block element_image_gallery_inner_zoom_modal_thumbnails_item_inner %}
  428.                                                                                                     <div class="gallery-slider-thumbnails-item-inner">
  429.                                                                                                         {% sw_thumbnails 'gallery-slider-thumbnails-image-thumbnails' with {
  430.                                                                                                             media: image,
  431.                                                                                                             sizes: {
  432.                                                                                                                 'default': '200px'
  433.                                                                                                             },
  434.                                                                                                             attributes: {
  435.                                                                                                                 'class': 'gallery-slider-thumbnails-image js-load-img',
  436.                                                                                                                 'alt': (image.translated.alt ?: fallbackImageTitle),
  437.                                                                                                                 'title': (image.translated.title ?: fallbackImageTitle)
  438.                                                                                                             },
  439.                                                                                                             load: false
  440.                                                                                                         } %}
  441.                                                                                                     </div>
  442.                                                                                                 {% endblock %}
  443.                                                                                             </div>
  444.                                                                                         {% endblock %}
  445.                                                                                     {% endfor %}
  446.                                                                                 {% endblock %}
  447.                                                                             </div>
  448.                                                                         {% endblock %}
  449.                                                                     </div>
  450.                                                                 {% endblock %}
  451.                                                             {% endif %}
  452.                                                         </div>
  453.                                                     {% endblock %}
  454.                                                 </div>
  455.                                             {% endblock %}
  456.                                         </div>
  457.                                     {% endblock %}
  458.                                 </div>
  459.                             {% endif %}
  460.                         {% endblock %}
  461.                     </div>
  462.                 {% endblock %}
  463.             {% if config.verticalAlign.value %}
  464.                 </div>
  465.             {% endif %}
  466.         {% endblock %}
  467.     </div>
  468. {% endblock %}