custom/plugins/TcinnThemeWareLiving/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. {# ThemeWare® HC-Architecture® ready #}
  3. {# ---------------- START: SET TEMPLATE VARS ---------------- #}
  4. {# ThemeWare: Set theme variables #}
  5. {% set twtProductDetailBadges = theme_config('twt-product-detail-badges') %}
  6. {% set twtProductDetailSliderImageSimilarNoteShow = theme_config('twt-product-detail-slider-image-similar-note-show') %}
  7. {# ---------------- END: SET TEMPLATE VARS ---------------- #}
  8. {# ThemeWare: Adjustments on the image gallery #}
  9. {% block element_image_gallery_inner_wrapper %}
  10.     {# ThemeWare: "Produkt-Badges" ergänzen. #}
  11.     {% if isProduct and twtProductDetailBadges != 1 %}
  12.         {% sw_include '@Storefront/storefront/themeware/extensions/twt-product-detail-badges.html.twig' ignore missing with {
  13.             product: page.product,
  14.             type: 'media'
  15.         } %}
  16.     {% endif %}
  17.     {# Default block #}
  18.     {{ parent() }}
  19.     {# ThemeWare: Infotext "Abbildung ähnlich" ergänzen. #}
  20.     {% if isProduct and twtProductDetailSliderImageSimilarNoteShow != 1 %}
  21.         <div class="twt-image-similar-infotext">
  22.             {{ "twt.detail.imageSimilarNote"|trans|sw_sanitize }}
  23.         </div>
  24.     {% endif %}
  25. {% endblock %}
  26. {% block element_image_gallery %}
  27.     {# Default block #}
  28.     {{ parent() }}
  29.     {# ThemeWare: "Vorteile" ergänzen. #}
  30.     {#{% if twtProductDetailBenefitsShow == 2 %}
  31.         {% sw_include '@Storefront/storefront/themeware/product-detail/twt-product-detail-benefits.html.twig' ignore missing with {
  32.             type: 'buy-box',
  33.             position: 'bottom'
  34.         } %}
  35.     {% endif %}#}
  36. {% endblock %}