test
parent
612d074f2d
commit
3242b38e83
|
@ -183,39 +183,6 @@
|
||||||
(min-width: 750px) calc((100vw - 15rem) / 8),
|
(min-width: 750px) calc((100vw - 15rem) / 8),
|
||||||
calc((100vw - 8rem) / 3)
|
calc((100vw - 8rem) / 3)
|
||||||
{%- endcapture -%}
|
{%- endcapture -%}
|
||||||
{%- if featured_media != null -%}
|
|
||||||
{%- liquid
|
|
||||||
capture media_index
|
|
||||||
if featured_media.media_type == 'model'
|
|
||||||
increment model_index
|
|
||||||
elsif featured_media.media_type == 'video' or featured_media.media_type == 'external_video'
|
|
||||||
increment video_index
|
|
||||||
elsif featured_media.media_type == 'image'
|
|
||||||
increment image_index
|
|
||||||
endif
|
|
||||||
endcapture
|
|
||||||
assign media_index = media_index | plus: 1
|
|
||||||
-%}
|
|
||||||
<li
|
|
||||||
id="Slide-Thumbnails-{{ section.id }}-0{{ id_append }}"
|
|
||||||
class="thumbnail-list__item slider__slide{% if section.settings.hide_variants and variant_images contains featured_media.src %} thumbnail-list_item--variant{% endif %}"
|
|
||||||
data-target="{{ section.id }}-{{ featured_media.id }}"
|
|
||||||
data-media-position="{{ media_index }}">
|
|
||||||
{%- capture thumbnail_id -%}
|
|
||||||
Thumbnail-{{ section.id }}-0{{ id_append }}
|
|
||||||
{%- endcapture -%}
|
|
||||||
<button
|
|
||||||
class="thumbnail global-media-settings global-media-settings--no-shadow"
|
|
||||||
aria-label="{%- if featured_media.media_type == 'image' -%}{{ 'products.product.media.load_image' | t: index: media_index }}{%- elsif featured_media.media_type == 'model' -%}{{ 'products.product.media.load_model' | t: index: media_index }}{%- elsif featured_media.media_type == 'video' or featured_media.media_type == 'external_video' -%}{{ 'products.product.media.load_video' | t: index: media_index }}{%- endif -%}"
|
|
||||||
aria-current="true"
|
|
||||||
aria-controls="GalleryViewer-{{ section.id }}{{ id_append }}"
|
|
||||||
aria-describedby="{{ thumbnail_id }}">
|
|
||||||
{{
|
|
||||||
featured_media.preview_image | image_url: width: 416 | image_tag: loading: 'lazy', sizes: sizes, widths: '54, 74, 104, 162, 208, 324, 416', id: thumbnail_id, alt: featured_media.alt | escape
|
|
||||||
}}
|
|
||||||
</button>
|
|
||||||
</li>
|
|
||||||
{%- endif -%}
|
|
||||||
{%- for media in product.media -%}
|
{%- for media in product.media -%}
|
||||||
{%- unless media.id == product.selected_or_first_available_variant.featured_media.id -%}
|
{%- unless media.id == product.selected_or_first_available_variant.featured_media.id -%}
|
||||||
{%- liquid
|
{%- liquid
|
||||||
|
@ -267,6 +234,40 @@
|
||||||
</li>
|
</li>
|
||||||
{%- endunless -%}
|
{%- endunless -%}
|
||||||
{%- endfor -%}
|
{%- endfor -%}
|
||||||
|
|
||||||
|
{%- if featured_media != null -%}
|
||||||
|
{%- liquid
|
||||||
|
capture media_index
|
||||||
|
if featured_media.media_type == 'model'
|
||||||
|
increment model_index
|
||||||
|
elsif featured_media.media_type == 'video' or featured_media.media_type == 'external_video'
|
||||||
|
increment video_index
|
||||||
|
elsif featured_media.media_type == 'image'
|
||||||
|
increment image_index
|
||||||
|
endif
|
||||||
|
endcapture
|
||||||
|
assign media_index = media_index | plus: 1
|
||||||
|
-%}
|
||||||
|
<li
|
||||||
|
id="Slide-Thumbnails-{{ section.id }}-0{{ id_append }}"
|
||||||
|
class="thumbnail-list__item slider__slide{% if section.settings.hide_variants and variant_images contains featured_media.src %} thumbnail-list_item--variant{% endif %}"
|
||||||
|
data-target="{{ section.id }}-{{ featured_media.id }}"
|
||||||
|
data-media-position="{{ media_index }}">
|
||||||
|
{%- capture thumbnail_id -%}
|
||||||
|
Thumbnail-{{ section.id }}-0{{ id_append }}
|
||||||
|
{%- endcapture -%}
|
||||||
|
<button
|
||||||
|
class="thumbnail global-media-settings global-media-settings--no-shadow"
|
||||||
|
aria-label="{%- if featured_media.media_type == 'image' -%}{{ 'products.product.media.load_image' | t: index: media_index }}{%- elsif featured_media.media_type == 'model' -%}{{ 'products.product.media.load_model' | t: index: media_index }}{%- elsif featured_media.media_type == 'video' or featured_media.media_type == 'external_video' -%}{{ 'products.product.media.load_video' | t: index: media_index }}{%- endif -%}"
|
||||||
|
aria-current="true"
|
||||||
|
aria-controls="GalleryViewer-{{ section.id }}{{ id_append }}"
|
||||||
|
aria-describedby="{{ thumbnail_id }}">
|
||||||
|
{{
|
||||||
|
featured_media.preview_image | image_url: width: 416 | image_tag: loading: 'lazy', sizes: sizes, widths: '54, 74, 104, 162, 208, 324, 416', id: thumbnail_id, alt: featured_media.alt | escape
|
||||||
|
}}
|
||||||
|
</button>
|
||||||
|
</li>
|
||||||
|
{%- endif -%}
|
||||||
</ul>
|
</ul>
|
||||||
<button
|
<button
|
||||||
type="button"
|
type="button"
|
||||||
|
|
Loading…
Reference in New Issue