{%- if product.metafields.meta.video contains 'youtube' or product.metafields.meta.video contains 'vimeo' -%}
{{ 'products.product.video' | t }}
{%- endif -%} {%- assign images_alt = product.images | map: 'alt' -%} {%- if images_alt contains 'nt_360' -%}
{{ 'products.product.view_360'| t }}
    0%
    {%- assign check_360 = false -%} {%- capture _array_view_360 -%} {%- for image in product.images -%} {%- if check_360 -%} {{image.src | img_url: "master" }}{%- if forloop.last == false -%},{%- endif -%} {%- elsif image.alt contains 'nt_360' -%} {%- assign image_first = image -%} {{image.src | img_url: "master" }} {%- assign check_360 = true -%} {%- endif -%} {%- endfor -%} {%- endcapture -%} {%- assign array_view_360 = _array_view_360 | replace: ' ,', ',' | replace: ', ', ',' | split: ',' -%} {%- assign image_first_width = image_first.width -%}
    {%- endif -%}