templates/front/prodSlick.html.twig line 1

Open in your IDE?
  1. {% set related = related|default %}
  2. {% set application = application|default %}
  3. {% set productsBtn = productsBtn|default %}
  4. <div class="position-relative">
  5.     {% set hideProdNavs = (products|length <= 4) %}
  6.     {% include "front/slid-nav.html.twig" with {"hide":hideProdNavs} %}
  7.     <div class="kvvbun max--5">
  8.         {% for key, product in products %}
  9.             {% if related %}
  10.                 {% set product = product.targetProduct %}
  11.                 {% set productSubCategory = getSubCategory(product) %}
  12.                 {% include "front/productDetail.html.twig" with {'subtitle':true, "subtitleVal":(productSubCategory ? productSubCategory.title : null), "intro":product.intro} %}
  13.             {% elseif application %}
  14.                 {% if product.product %}
  15.                     {% set product = product.product %}
  16.                     {% set productSubCategory = getSubCategory(product) %}
  17.                     {% include "front/productDetail.html.twig" with {'subtitle':true, "subtitleVal":(productSubCategory ? productSubCategory.title : null), "intro":product.intro} %}
  18.                 {% else %}
  19.                     {% set category = product.category ?? product.subCategory ?? product.subSubCategory %}
  20.                     {% include "front/categoryDetail.html.twig" with {'subtitle':true, "subtitleVal":(category ? category.title : null), "intro":(product.description ?? null)} %}
  21.                 {% endif %}
  22.             {% else %}
  23.                 {% set productSubCategory = getSubCategory(product) %}
  24.                 {% include "front/productDetail.html.twig" with {'subtitle':true, "subtitleVal":(productSubCategory ? productSubCategory.title : null), "intro":product.intro} %}
  25.             {% endif %}
  26.         {% endfor %}
  27.     </div>
  28.     {% include "front/slid-nav.html.twig" with {'isRight':1, "hide":hideProdNavs} %}
  29. </div>
  30. {% if productsBtn %}
  31.     <div class="mat-30">
  32.         <a href="{{ path('front_products') }}" class="btn btn2">
  33.             <i class="fa fa-arrow-right mar-5"></i>
  34.             {{ "prod_slick.btn"|trans|raw }}
  35.         </a>
  36.     </div>
  37. {% endif %}