templates/default/components/organisms/image-gallery/image-gallery.html.twig line 1

Open in your IDE?
  1. {% if images|default|length > 0 or videos|default|length > 0 or obitvuSku|default %}
  2. <div class="image-gallery {% if lightgallery|default == true %}image-gallery--lightgallery js-lightgallery{% else %}js-image-gallery{% endif %}">
  3. {% if lightgallery|default == true %}
  4. {% block lightgalleryClose %}
  5. {% include 'components/atoms/button/button.html.twig'
  6. with {
  7. 'class': 'button--close image-gallery__close js-lightgallery-close',
  8. 'content': '',
  9. 'type': 'button',
  10. 'attributes': {
  11. 'aria-label': 'close'|trans,
  12. }
  13. } %}
  14. {% endblock %}
  15. {% endif %}
  16. {% if options is defined and options.main is defined %}
  17. <div class="image-gallery__main" tabindex="0" role="group">
  18. {% if options.main.navigation is defined %}
  19. <div class="image-gallery__prev swiper-button-prev {{ options.main.navigation.prevEl }}" tabindex="0" role="button"></div>
  20. {% endif %}
  21. {% include 'components/molecules/image-slider/image-slider.html.twig' with options.main %}
  22. {% if options.main.navigation is defined %}
  23. <div class="image-gallery__next swiper-button-next {{ options.main.navigation.nextEl }}" tabindex="0" role="button"></div>
  24. {% endif %}
  25. </div>
  26. {% endif %}
  27. {% if options is defined and options.thumbnails is defined %}
  28. <div class="image-gallery__thumbnails">
  29. {% if options.thumbnails.navigation is defined %}
  30. <div class="image-gallery__prev {{ options.thumbnails.navigation.prevEl }}"></div>
  31. {% endif %}
  32. {% include 'components/molecules/image-slider/image-slider.html.twig' with options.thumbnails %}
  33. {% if options.thumbnails.navigation is defined %}
  34. <div class="image-gallery__next {{ options.thumbnails.navigation.nextEl }}"></div>
  35. {% endif %}
  36. </div>
  37. {% endif %}
  38. <div class="image-gallery__zoom js-zoom-target"></div>
  39. </div>
  40. {% endif %}