custom/plugins/ProcWegmannTheme/src/Resources/views/storefront/element/cms-element-image-gallery.html.twig line 1

Open in your IDE?
  1. {% sw_extends '@Storefront/storefront/element/cms-element-image-gallery.html.twig' %}
  2. {% block element_image_gallery_inner_single %}
  3.     <div class="gallery-slider-single-image is-{{ displayMode }} js-magnifier-container"{% if minHeight %} style="min-height: {{ minHeight }}"{% endif %}>
  4.         {% if imageCount > 0 %}
  5.             {% set attributes = {
  6.                 'class': 'img-fluid gallery-slider-image magnifier-image js-magnifier-image',
  7.                 'alt': (mediaItems|first.translated.alt ?: fallbackImageTitle),
  8.                 'title': (mediaItems|first.translated.title ?: fallbackImageTitle),
  9.                 'data-full-image': mediaItems|first.url
  10.             } %}
  11.             {% if displayMode == 'cover' or displayMode == 'contain' %}
  12.                 {% set attributes = attributes|merge({ 'data-object-fit': displayMode }) %}
  13.             {% endif %}
  14.             {% if isProduct %}
  15.                 {% set attributes = attributes|merge({ 'itemprop': 'image' }) %}
  16.             {% endif %}
  17.             {% sw_thumbnails 'gallery-slider-image-thumbnails' with {
  18.                 media: mediaItems|first,
  19.             } %}
  20.         {% else %}
  21.             {% set name = 'wa-placeholder-white_' ~ app.request.locale %}
  22.             {% sw_include "@Storefront/storefront/utilities/icon.html.twig" with {
  23.                 'name': name,
  24.                 'size': 'fluid',
  25.                 'pack': 'custom-icons',
  26.                 'color': 'inherit'
  27.             } %}
  28.         {% endif %}
  29.     </div>
  30. {% endblock %}