templates/front/productDetail.html.twig line 1

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