--- layout: page tabs: [description, downloads, videos, special-offers] special-offers: format: letter orientation: portrait unit: in width: 8 height: 9.1 margin: 0.25 dpi: 300 --- {% assign url-size = page.url | size | minus: 2 %} {% assign i18n-id = page.url | slice: 1,url-size | replace: '/', '-' | remove_first: page.collection | remove_first: '-' %} {% if page.i18n[site.lang].title %} {% assign i18n-title = page.i18n[site.lang].title %} {% else %} {% assign i18n-title = site.data.i18n.catalog[page.collection][site.lang][i18n-id].title %} {% endif %} {% if page.i18n[site.lang].description %} {% assign i18n-description = page.i18n[site.lang].description %} {% else %} {% assign i18n-description = site.data.i18n.catalog[page.collection][site.lang][i18n-id].desc %} {% endif %}
    {% if page.resources.product-images.quantity %} {% assign images-count = page.resources.product-images.quantity %} {% else %} {% assign images-count = 1 %} {% endif %} {% for product-image in (1..images-count) %} {% 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-image-url %} {{ site.amazon-s3 }}/assets/img/catalog/thumbnails/{{ page.collection }}/{{ page-categories }}{% if page.resources.product-images.model %}{{ page.resources.product-images.model | downcase }}{% else %}{{ page.title | downcase }}{% endif %}{{ image-num | append: ".png" }} {% endcapture %}
  • {% if i18n-title %}{{ i18n-title }}{% else %}{{ page.title }}{% endif %}
  • {% endfor %}

{% if i18n-description %}{{ i18n-description }}{% else %}{{ page.description }}{% 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 }}

{% if page.price %}{{ page.price | prepend: '$ ' }}{% endif %}{% assign price-size = page.price | downcase | split: '.' | last | size %}{% if price-size == 1 %}{{ "0" }}{% endif %}{% if page.currency %}{{ page.currency | prepend: ' ' }}{% endif %}
{% for tab in layout.tabs %}
{% case forloop.index %} {% when 1 %}

{% for resource in page.resources.spec-sheets.catalog %} {{ page.title }} {% endfor %}

{{ page.i18n[site.lang].detailed_desc | default: page.detailed_desc }} {{ 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 %}
{% endfor %} {% else %}

{{ 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 %}

{{ page.title }} {{ page.title }}
{% endfor %}

{% endunless %} {% else %}

{{ site.data.i18n.common.product-layout[site.lang].special-offers-empty }}

{% endif %} {% endcase %}
{% endfor %}