templates/front/productDetailList.html.twig line 1

Open in your IDE?
  1. {% set subtitle = subtitle|default %}
  2. {% set subtitleVal = subtitleVal|default %}
  3. <div class="product position-relative pa-25 text-center pointer" data-link>
  4.     {% set iconBgc = product.category ? product.category.color : null %}
  5.     {% set iconBgc = iconBgc|default("#3992B0") %}
  6.     {% set productValue = getProductValue(product) %}
  7.     <div class="row align-items-center">
  8.         <div class="col-sm-4">
  9.             {% if productValue %}
  10.                 <div class="position-absolute t-0 l-0 wi-65 he-65 pa-10 d-flex align-items-center justify-content-center"
  11.                      style="background-color: {{ iconBgc }};">
  12.                     <img src="{{ getCategoryImage(productValue, true, true) }}" alt="{{ productValue.title }}"
  13.                          class="w-auto mahep-100 "/>
  14.                 </div>
  15.             {% endif %}
  16.             <div class="d-flex align-items-center">
  17.                 <img src="{{ asset(product.productFileName ? vich_uploader_asset(product, 'productFile') : 'assets/img/sans-img-1-dmd-inox.jpg') | imagine_filter('medium') }}"
  18.                      alt="{{ product.title }}"
  19.                      class="w-100 {{ product.productSchemaFileName ? "jflxwm" }}"/>
  20.                 {% if product.productSchemaFileName %}
  21.                     <img src="{{ asset(vich_uploader_asset(product, 'productSchemaFile')) | imagine_filter('medium') }}"
  22.                          alt="{{ product.title }}" class="w-100 vremmq"/>
  23.                 {% endif %}
  24.             </div>
  25.         </div>
  26.         <div class="col-sm-8">
  27.             <h3 class="title1 mab-20">
  28.                 <a href="{{ getProductUrl(product) }}">
  29.                     {{ product.title }}
  30.                 </a>
  31.             </h3>
  32.             {% if subtitle %}
  33.                 <div class="subtitle1">
  34.                     {{ subtitleVal ? subtitleVal : (productValue ? productValue.title : null) }}
  35.                 </div>
  36.             {% endif %}
  37.             {% if intro is defined %}
  38.                 <div class="content">
  39.                     {{ intro }}
  40.                 </div>
  41.             {% endif %}
  42.         </div>
  43.     </div>
  44. </div>