templates/front/productsList.html.twig line 1

Open in your IDE?
  1. {% for key, product in products %}
  2.     <div class="product  {{ (sliderProduct is defined and sliderProduct) ? 'pax-15' : 'col-md-4 col-sm-6 col-10' }}  text-center mab-40 ">
  3.         <div class="bgc-white pax-20-lg pax-18 pat-20 pab-30 animate-link3" data-link>
  4.             <div class="d-flex he-50 justify-content-center-sm">
  5.                 {% for key, phaseEvolution in getProductPhaseEvolutions(product) %}
  6.                     {% set phaseEvolutionFile = getPhaseEvolutionFile(phaseEvolution, product) %}
  7.                     {% if phaseEvolutionFile %}
  8.                         <div class="mar-3 position-relative">
  9.                             <img src="{{ asset('assets/img/hexagone-big.svg') }}" alt="hexagone"
  10.                                  class="he-50  {{ categoryActive.position == "1" ? "hexagone-green" : (categoryActive.position == "2" ? "hexagone-lightBlue") }}"/>
  11.                             <img src="{{ phaseEvolutionFile }}"
  12.                                  alt="{{ phaseEvolution.title }}"
  13.                                  class="img-white position-absolute mawi-27 t-0 b-0  h-auto l-0 r-0 m-auto img-white"/>
  14.                         </div>
  15.                     {% endif %}
  16.                 {% endfor %}
  17.             </div>
  18.             <div class="mab-40-sm mab-15 he-180 mawi-180 mx-auto div-img pax-0">
  19.                 <img src="{{ asset(vich_uploader_asset(product, 'product1File'))|imagine_filter('medium') }}"
  20.                      alt="{{ product.title }}" class="imgProduct"/>
  21.             </div>
  22.             <h4 class="fs-22 fw-600 c-204A9A aiwsyn">
  23.                 <a href="{{ getProductUrl(product) }}" class="c-204A9A c-204A9A-h">
  24.                     {{ product.title }}
  25.                 </a>
  26.             </h4>
  27.             <div class="pax-10 pay-5 br-8 ls-custom4 text-uppercase mx-auto d-table fs-11 c-white fw-600 may-14 {{ product.isHardware ? "bgc-648EFB" : "bgc-22E0BD" }}">
  28.                 {{ product.isHardware ? "hardware.title"|trans : "software.title"|trans }}
  29.             </div>
  30.             <div class="c-8E9094 lh2-19 fs-14 dpfhdx">
  31.                 {{ product.intro|length > 50 ? product.intro|slice(0, 50) ~ '...' : product.intro }}
  32.             </div>
  33.             {# <div>
  34.                  Voir
  35.              </div> #}
  36.         </div>
  37.     </div>
  38. {% endfor %}