templates/produit/produitunique.html.twig line 1
{% set certifications = '' %}{% set certificationsId = '' %}{% set img2 = '' %}{% set attr_prec = '' %}{% set attr_cap = '' %}{% set lang = app.request.attributes.get('_locale') %}{% for supplier in product.suppliers|split(',') %}{% set certificationsId = product.id_suppliers|split(",")[loop.index0] %}{% set certifications = certifications ~ '<img class="mx-1" width="20px" height="20px" src="../../../ps/img/su/' ~ certificationsId ~ ((certificationsId == '4') ? '.png' : '.jpg') ~ '" alt="' ~ supplier ~ '" title="' ~ supplier ~ '">' %}{% endfor %}{% if product.id_image2 %}{% set img2 = '<span class="hover-image"><a class="img-back product_img_link" href="/'~ lang ~'/'~ product.prelink ~'/'~ product.link_rewrite ~'" title="'~ product.name ~'" title="'~ product.name ~'"><img class="replace-2x img-responsive pts-image" src="https://www.sensy.com/'~ product.id_image2 ~'-home_default/'~ product.link_rewrite ~'.jpg" alt="'~ product.legend2 ~'" title="'~ product.legend2 ~'" width="370" height="340"></a></span>'%}{% endif %}{% if product.attr_prec %}{% set attr_prec = "<tr><td>"~ 'precision'|trans({}, 'configurateur')|raw ~"</td><td>"~ product.attr_prec|replace({',': ', '})|truncate(25) ~"</td></tr>"%}{% endif %}{% if product.attr_cap %}{% set attr_cap = "<tr><td>"~ 'capacite'|trans({}, 'configurateur')|raw ~"</td><td>"~ product.attr_cap|replace({',': ', '})|truncate(25) ~"</td></tr>"%}{% endif %}<div class="owl-wrapper col-xs-cus-12 col-xs-4 col-sm-3 col-md-3 col-lg-3 p-0" data-col-lg="3" data-col-md="3" data-col-sm="3" data-col-xs="4" style="border-top: 1px solid #e9e9e9;"><div class="item clearfix"><div class="ajax_block_product"><div class="product-block position-relative" itemscope="" itemtype="https://schema.org/Product" style="position: static; margin-right: 0px; margin-left: 0px;"><div class="product-container"><div class="Certifications">{{ certifications|raw }}</div><div class="left-block"><div class="product-image-container image"><a class="img product_img_link" href="/{{ lang }}/{{ product.prelink }}/{{ product.link_rewrite }}" title="{{ product.name }}" itemprop="url"><img class="replace-2x img-responsive pts-image" src="https://www.sensy.com/{{ product.id_image1 }}-home_default/{{ product.link_rewrite }}.jpg" alt="{{ product.reference }} - {{ product.name }}" title="{{ product.reference }} - {{ product.name }}" itemprop="image"></a></div><div class="product-label-wrap"></div><div class="color-list-container product-colors"></div></div><div class="right-block"><div class="product-meta"><h4 class="name" itemprop="sku"><a class="product-name" href="/{{ lang }}/{{ product.prelink }}/{{ product.link_rewrite }}" title="{{ product.name }}" itemprop="url">{{ product.reference }}</a></h4><div class="product-desc description" itemprop="name">{{ product.name }}</div><div class="clearfix product-box"></div></div><div class="button-container actionblog" style="padding-left: 20%;"><div><div class="pts-atchover"><a class="btn" href="/{{ lang }}/{{ product.prelink }}/{{ product.link_rewrite }}" data-id-product="{{ product.id_product }}" title="{{ 'details'|trans({}, 'configurateur')|raw }}"><i class="fas fa-search"></i></a></div><div class="pts-atchover"><a class="btn" href="//files.sensy.com/datasheets/{{ product.file_name }}" target="_blank" title="{{ 'datasheet'|trans({}, 'configurateur')|raw }}"><i class="fas fa-download"></i></a></div><div class="pts-atchover"><a class="btn add_to_compare" href="/{{ lang }}/{{ product.prelink }}/{{ product.link_rewrite }}" data-id-product="{{ product.id_product }}" title="{{ 'add.compare'|trans({}, 'configurateur')|raw }}"><i class="fas fa-sync-alt"></i></a></div></div></div></div></div><div class="SousProduit ShadowBox" style="display: none;"><table class="mx-1"><tbody>{{ attr_prec ~ attr_cap }}<tr><td colspan="2" class="TableDescription" itemprop="description">{{ product.description }}</td></tr></tbody></table></div><div itemprop="brand" itemscope="" itemtype="https://schema.org/Brand"><meta itemprop="name" content="SENSY"></div><div itemprop="offers" itemscope="" itemtype="https://schema.org/Offer"><meta itemprop="price" content=""><meta itemprop="priceCurrency" content="EUR"><link itemprop="availability" href="https://schema.org/InStock"><meta itemprop="url" content="/{{ lang }}/{{ product.prelink }}/{{ product.link_rewrite }}" title="{{ product.name }}"></div></div></div></div></div>