--- layout: page tabs: [description, downloads, videos, special-offers] --- {% assign url-size = page.url | size | minus: 2 %} {% assign i18n-id = page.url | slice: 1,url-size | replace: '/', '-' | remove_first: collection.label | remove_first: '-' %} {% assign i18n-title = site.data.i18n.catalog[collection.label][site.lang][i18n-id].title %} {% if page.i18n[site.lang].description %} {% assign i18n-description = page.i18n[site.lang].description %} {% else %} {% assign i18n-description = site.data.i18n.catalog[collection.label][site.lang][i18n-id].desc %} {% endif %}
{{ site.data.i18n.common.product-layout[site.lang].model }}: {% if i18n-title %}{{ i18n-title }}{% else %}{{ page.title }}{% endif %}
{{ site.data.i18n.common.product-layout[site.lang].brand }}: {{ page.brand }}
{{ site.data.i18n.common.product-layout[site.lang].commercial }}: {{ page.commercial }}
{% for resource in page.resources.spec-sheets.catalog %} {% endfor %}
{{ content }} {% when 2 %} {% if page.resources.downloads %} {% for resource in page.resources.downloads %} {% assign i18n-resource-text = page.i18n[site.lang].resources.downloads[forloop.index0].text %}{{ site.data.i18n.common.product-layout[site.lang].download }} {% if i18n-resource-text %}{{ i18n-resource-text }}{% else %}{{ resource.text }}{% endif %}
{% endfor %} {% else %}{{ site.data.i18n.common.product-layout[site.lang].downloads-empty }}
{% endif %} {% when 3 %} {% if page.resources.videos %} {% assign ids = page.resources.videos | split: ", " %} {% for id in ids %}{{ site.data.i18n.common.product-layout[site.lang].videos-empty }}
{% endif %} {% else %} {% if page.resources.special-offers.quantity > 0 %} {% unless site.original %}{% for resource in (1..page.resources.special-offers.quantity) %} {% assign page-categories-size = page.categories | size %} {% if page-categories-size >= 1 %} {% assign page-categories = page.categories | join: "/" | append: "/" %} {% endif %} {% if forloop.index == 1 %} {% assign image-num = '' %} {% elsif forloop.index < 10 %} {% assign image-num = forloop.index | prepend: "_0" %} {% else %} {% assign image-num = forloop.index | prepend: "_" %} {% endif %} {% capture product-special-offer-url %} {{ site.amazon-s3 }}/assets/img/catalog/special-offers/{{ page.collection }}/{{ page-categories }}{{ site.domain | replace:'.',' ' | truncatewords: 1,"" }}/{% if page.resources.special-offers.model %}{{ page.resources.special-offers.model | downcase }}{% else %}{{ page.title | downcase }}{% endif %}{{ image-num | append: ".png" }} {% endcapture %} {% endfor %}
{% endunless %} {% else %}{{ site.data.i18n.common.product-layout[site.lang].special-offers-empty }}
{% endif %} {% endcase %}