custom/plugins/AcrisProductVideoCS/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_alignment %}
  3.     {% if page.product.media %}
  4.         {% set mediaItems = [] %}
  5.         {% for image in page.product.media %}
  6.             {% set mediaItems = mediaItems|merge([image.media]) %}
  7.         {% endfor %}
  8.     {% endif %}
  9.     {{ parent() }}
  10. {% endblock %}
  11. {% block element_image_gallery_inner_thumbnails_item_inner %}
  12.     {% if image.translated.link and (image.type == 'youtube' or image.type == 'vimeo') %}
  13.         {% if image.metaData %}
  14.             {% set metaUrlData = image.metaData %}
  15.         {% endif %}
  16.         {% set previewImageLoading = config('AcrisProductVideoCS.config').previewImageLoading %}
  17.         {% set previewImageUrl = null %}
  18.         {% if image.extensions.acrisProductVideoPreviewImage and image.extensions.acrisProductVideoPreviewImage.media %}
  19.             {% set previewImageUrl = image.extensions.acrisProductVideoPreviewImage.media.url %}
  20.         {% endif %}
  21.         {% set customImg = false %}
  22.         {% if previewImageLoading == 'cookie' %}
  23.             {% set customImg = true %}
  24.         {% endif %}
  25.         {% if image.type == 'youtube' %}
  26.             {% set productVideoImg = 'https://i.ytimg.com/vi/' ~ image.translated.link|split('/')|last|split('?')|first|trim ~ '/hqdefault.jpg' %}
  27.         {% else %}
  28.             {% if metaUrlData.vimeoImageUrl %}
  29.                 {% set productVideoImg = metaUrlData.vimeoImageUrl %}
  30.             {% else %}
  31.                 {% set productVideoImg = 'https://vumbnail.com/' ~''~ image.translated.link|split('/')|last|split('?')|first|trim ~''~ '.jpg' %}
  32.             {% endif %}
  33.         {% endif %}
  34.         <div class="gallery-slider-thumbnails-item-inner">
  35.             <img class="gallery-slider-thumbnails-image element-product-video-image-id-{{ image.id }}" {% if customImg != true %}src="{{ productVideoImg }}"{% endif %} title="{{ metaUrlData['title'] }}" alt="{{ metaUrlData['description'] }}">
  36.         </div>
  37.     {% elseif image.translated.embedCode and image.type == 'embed' %}
  38.         {% if image.metaData %}
  39.             {% set metaUrlData = image.metaData %}
  40.         {% endif %}
  41.         {% set productVideoImg = 'data:image/jpeg;base64,/9j/4AAQSkZJRgABAQAAAQABAAD/2wEEEAALAAsACwALAAwACwANAA4ADgANABIAEwARABMAEgAaABgAFgAWABgAGgAnABwAHgAcAB4AHAAnADwAJQArACUAJQArACUAPAA1AEAANAAwADQAQAA1AF8ASgBCAEIASgBfAG0AXABXAFwAbQCEAHYAdgCEAKcAngCnANoA2gElEQALAAsACwALAAwACwANAA4ADgANABIAEwARABMAEgAaABgAFgAWABgAGgAnABwAHgAcAB4AHAAnADwAJQArACUAJQArACUAPAA1AEAANAAwADQAQAA1AF8ASgBCAEIASgBfAG0AXABXAFwAbQCEAHYAdgCEAKcAngCnANoA2gEl/8IAEQgDiwRuAwEiAAIRAQMRAf/EABwAAQABBQEBAAAAAAAAAAAAAAAFAgMEBgcIAf/aAAgBAQAAAACMAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA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WgULTKesSdZ8z9T/bkGcbIszznaLVSARIbpEgsgPJ6H+LH9fPWfMvQL846Hg9BF8i6z1wBpX91vPocAAAAWA1nlUvG6jjZSOhqVS9REB1gfDTrTUR7lNInMDo7j0Ll0e2lZ+qP9OtOYwFlEqjSug93QgBJAAuTilh3GFV5zpPfrVV0bREtGCU8uggCSABcnFFSFLSyaG5h7NbJ6COS7JwG9nNh6KpS/A2wHOuGR0NmUqfeLctWKRxdUZh7hfCZfUMeFZR7zfEFJFBpAu3WOuDQxMbtGpPtIGGpKZ7XiX6aPLH6Gl7P/Tg5dASTdxje2DrP4jDZbFbguwP0ON7Pjfjjez43443s+N+ON7Pjfjg5bNc2dMb2z9ZPE43tn6yeJxvbP1k8Tje2frJ4nG9s/WTxON7Z+snicLlkl+E6ge7Tjez43443s+N+ON7Pjfjjez43443tg6z+IxvbB1n8Rhcvp1Nztm7zj9DS9n/AKcLTU6iwiT6i+FjRL7VFW/sFv8AoFP/xAAUEQEAAAAAAAAAAAAAAAAAAACw/9oACAECAQE/AHz/AP/EABQRAQAAAAAAAAAAAAAAAAAAALD/2gAIAQMBAT8AfP8A/9k=' %}
  42.         <div class="gallery-slider-thumbnails-item-inner">
  43.             <img class="gallery-slider-thumbnails-image" src="{{ productVideoImg }}" title="{{ metaUrlData['title'] }}" alt="{{ metaUrlData['description'] }}">
  44.         </div>
  45.     {% elseif image.type == 'media' %}
  46.         {% if image.metaData %}
  47.             {% set metaUrlData = image.metaData %}
  48.         {% endif %}
  49.         {% set productVideoImg = 'data:image/jpeg;base64,/9j/4AAQSkZJRgABAQAAAQABAAD/2wEEEAALAAsACwALAAwACwANAA4ADgANABIAEwARABMAEgAaABgAFgAWABgAGgAnABwAHgAcAB4AHAAnADwAJQArACUAJQArACUAPAA1AEAANAAwADQAQAA1AF8ASgBCAEIASgBfAG0AXABXAFwAbQCEAHYAdgCEAKcAngCnANoA2gElEQALAAsACwALAAwACwANAA4ADgANABIAEwARABMAEgAaABgAFgAWABgAGgAnAB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ON7Pjfjjez43443s+N+ON7Pjfjg5bNc2dMb2z9ZPE43tn6yeJxvbP1k8Tje2frJ4nG9s/WTxON7Z+snicLlkl+E6ge7Tjez43443s+N+ON7Pjfjjez43443tg6z+IxvbB1n8Rhcvp1Nztm7zj9DS9n/AKcLTU6iwiT6i+FjRL7VFW/sFv8AoFP/xAAUEQEAAAAAAAAAAAAAAAAAAACw/9oACAECAQE/AHz/AP/EABQRAQAAAAAAAAAAAAAAAAAAALD/2gAIAQMBAT8AfP8A/9k=' %}
  50.         <div class="gallery-slider-thumbnails-item-inner">
  51.             <video class="acris-product-video-iframe">
  52.                 <source src="{{ image.media.url }}" type="video/mp4">
  53.             </video>
  54.         </div>
  55.     {% else %}
  56.         {{ parent() }}
  57.     {% endif %}
  58. {% endblock %}
  59. {% block element_image_gallery_inner_zoom_modal_thumbnails_item %}
  60.     {% if image.translated.link and image.type %}
  61.         {#{% set productVideoImg = 'https://img.youtube.com/vi/' ~ image.link|split('/')|last|split('?')|first|trim ~ '/2.jpg' %}
  62.         <div class="gallery-slider-thumbnails-item-inner">
  63.             <img class="gallery-slider-thumbnails-image" src="{{ productVideoImg }}">
  64.         </div>#}
  65.     {% elseif image.type == 'media' %}
  66.     {% else %}
  67.         {{ parent() }}
  68.     {% endif %}
  69. {% endblock %}
  70. {% block element_image_gallery_inner_item %}
  71.     {% if image.translated.link and (image.type == 'youtube' or image.type == 'vimeo') %}
  72.         {% set noCookie = image.translated.link|split('youtube-nocookie.com') %}
  73.         {% if image.metaData %}
  74.             {% set metaUrlData = image.metaData %}
  75.         {% endif %}
  76.         {% set loadVideoAfterClick = 'loadNow' %}
  77.         {% if config('AcrisProductVideoCS.config').loadVideosAfterClick == true %}
  78.             {% set loadVideoAfterClick = 'loadAfter' %}
  79.             {% sw_include '@AcrisProductVideoCS/storefront/component/custom/element/iframe-youtube-load-after.html.twig' with {
  80.                 isImageGallery: true
  81.             }
  82.             %}
  83.         {% else %}
  84.             <div class="gallery-slider-item-container">
  85.                 {% sw_include '@AcrisProductVideoCS/storefront/component/custom/element/iframe-youtube.html.twig' with {
  86.                     isImageGallery: true
  87.                 } %}
  88.             </div>
  89.         {% endif %}
  90.     {% elseif image.translated.embedCode and image.type == 'embed' %}
  91.         {% if image.metaData %}
  92.             {% set metaUrlData = image.metaData %}
  93.         {% endif %}
  94.         <div class="gallery-slider-item-container">
  95.             {% sw_include '@AcrisProductVideoCS/storefront/component/custom/element/iframe-embed.html.twig' with {
  96.                 isImageGallery: true
  97.             } %}
  98.         </div>
  99.     {% elseif image.type == 'media' %}
  100.         {% if image.metaData %}
  101.             {% set metaUrlData = image.metaData %}
  102.         {% endif %}
  103.         <div class="gallery-slider-item-container">
  104.             {% sw_include '@AcrisProductVideoCS/storefront/component/custom/element/video-media.html.twig' with {
  105.                 isImageGallery: true
  106.             } %}
  107.         </div>
  108.     {% else %}
  109.         {{ parent() }}
  110.     {% endif %}
  111. {% endblock %}
  112. {% block element_image_gallery_inner_single %}
  113.     {% set image = mediaItems|first %}
  114.     {% if image.translated.link and (image.type == 'youtube' or image.type == 'vimeo') %}
  115.         {% set noCookie = image.translated.link|split('youtube-nocookie.com') %}
  116.         {% if image.metaData %}
  117.             {% set metaUrlData = image.metaData %}
  118.         {% endif %}
  119.         {% set loadVideoAfterClick = 'loadNow' %}
  120.         {% if config('AcrisProductVideoCS.config').loadVideosAfterClick == true %}
  121.             {% set loadVideoAfterClick = 'loadAfter' %}
  122.             {% sw_include '@AcrisProductVideoCS/storefront/component/custom/element/iframe-youtube-load-after.html.twig' %}
  123.         {% else %}
  124.             {% sw_include '@AcrisProductVideoCS/storefront/component/custom/element/iframe-youtube.html.twig' %}
  125.         {% endif %}
  126.     {% elseif image.translated.embedCode and image.type == 'embed' %}
  127.         {% if image.metaData %}
  128.             {% set metaUrlData = image.metaData %}
  129.         {% endif %}
  130.         {% sw_include '@AcrisProductVideoCS/storefront/component/custom/element/iframe-embed.html.twig' %}
  131.     {% elseif image.type == 'media' %}
  132.         {% if image.metaData %}
  133.             {% set metaUrlData = image.metaData %}
  134.         {% endif %}
  135.         {% sw_include '@AcrisProductVideoCS/storefront/component/custom/element/video-media.html.twig' %}
  136.     {% else %}
  137.         {{ parent() }}
  138.     {% endif %}
  139. {% endblock %}
  140. {% block element_image_gallery_inner_zoom_modal_slider_item %}
  141.     {% if (image.translated.link and image.type) or (image.type and image.type == 'media') %}
  142.     {% else %}
  143.         {{ parent() }}
  144.     {% endif %}
  145. {% endblock %}