pull/1/head
Jan Umbach 2024-05-29 18:07:53 +02:00
parent f4ee05ee08
commit 325a180061
1 changed files with 2 additions and 2 deletions

View File

@ -72,13 +72,13 @@
{%- for media in product.media -%}
{%- unless media.id == product.selected_or_first_available_variant.featured_media.id -%}
{% assign isCorrectImageWithMatchingAlt = !(product.selected_or_first_available_variant.featured_image.alt ! = media.alt and product.selected_or_first_available_variant.featured_image.alt ! = blank) %}
{% assign isCorrectImageWithMatchingAlt = not (product.selected_or_first_available_variant.featured_image.alt ! = media.alt and product.selected_or_first_available_variant.featured_image.alt ! = blank) %}
<li
id="Slide-{{ section.id }}-{{ media.id }}{{ id_append }}"
class="product__media-item grid__item slider__slide{% if single_media_visible %} product__media-item--single{% endif %}{% if isCorrectImageWithMatchingAlt == true and first_videoShown == false and media.media_type == "video" %} is-active{% endif %}{% if media.media_type != 'image' %} product__media-item--full{% endif %}{% if section.settings.hide_variants and variant_images contains media.src %} product__media-item--variant{% endif %}{% if settings.animations_reveal_on_scroll %} scroll-trigger animate--fade-in{% endif %}"
data-media-id="{{ section.id }}-{{ media.id }}"
{% if !isCorrectImageWithMatchingAlt %}
{% if not isCorrectImageWithMatchingAlt %}
style="display: none;"
{% endif %}
thumbnail-alt-mobile={{ media.alt }}>