--- 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 %}
{{ 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 %}
{{ 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 %}{{ 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 %}
{{ site.data.i18n.common.product-layout[site.lang].special-offers-empty }}
{% endif %} {% endcase %}