test
parent
db5f7aa8d1
commit
9531b06b7e
|
@ -55,6 +55,7 @@
|
|||
>
|
||||
<noscript>
|
||||
{%- if media.media_type == 'video' or media.media_type == 'external_video' -%}
|
||||
{% comment %}
|
||||
<span class="product__media-icon motion-reduce quick-add-hidden">{% render 'icon-play' %}</span>
|
||||
<div class="product__media media">
|
||||
{{ media.preview_image | image_url: width: 1946 | image_tag:
|
||||
|
@ -66,6 +67,8 @@
|
|||
<a href="{% if media.media_type == 'video' %}{{ media.sources[1].url }}{% else %}{{ media | external_video_url }}{% endif %}" class="product__media-toggle">
|
||||
<span class="visually-hidden">{{ 'products.product.video_exit_message' | t: title: product.title | escape }}</span>
|
||||
</a>
|
||||
{% endcomment %}
|
||||
{% render "shx-video", video_src: media.sources[1].url, thumbnail_src: media.preview_image %}
|
||||
{%- else -%}
|
||||
<div class="product__media media">
|
||||
{{ media.preview_image | image_url: width: 1946 | image_tag:
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
{% assign video_src = video_src | default: 'none' %}
|
||||
{% assign video_src = video_src | default: '' %}
|
||||
{% assign video_src = thumbnail_src | default: '' %}
|
||||
|
||||
{% if video_src != 'none' %}
|
||||
<div class="shx-video">
|
||||
|
|
Loading…
Reference in New Issue