templates/front/product.html.twig line 1

Open in your IDE?
  1. {% extends "base.html.twig" %}
  2. {% set subCategory = product.subCategory %}
  3. {% set category = subCategory.category %}
  4. {% set productImg = (product.productFileName ? asset(vich_uploader_asset(product, 'productFile')) : asset('assets/img/defprod.png')) %}
  5. {% block metaTags %}
  6.     <meta name="description" content="{{ product.metaDescription ? product.metaDescription : product.description|raw }}">
  7.     <title>{{ product.metaTitle ? product.metaTitle : product.title }}</title>
  8.     <meta property="og:title" content="{{ product.metaTitle ? product.metaTitle : product.title }}">
  9.     <meta property="og:description" content="{{ product.metaDescription ? product.metaDescription : product.description|raw }}">
  10.     <meta property="og:image"
  11.           content="{{ absolute_url(productImg|imagine_filter('medium')) }}">
  12.     <meta property="og:url" content="{{ app.request.uri }}">
  13. {% endblock %}
  14. {% block body %}
  15.     <section class="container pab-80 position-relative zi-9">
  16.         <div class="may-50">
  17.             {% include "front/menu.html.twig" with {'menu':{
  18.                 (category.title):(category.isChaine ? "#" : path("front_products", {'catSlug':category.slug})),
  19.                 (subCategory.title):path("front_products", {'catSlug':category.slug, "subCatSlug":subCategory.slug}),
  20.                 (product.title):"#",
  21.             }} %}
  22.         </div>
  23.         <div class="row flex-row-reverse">
  24.             <div class="col-md-6 mab-0-md mab-10 pal-70-lg text-center text-sm-left">
  25.                 {% if subCategory.subCategoryFileName %}
  26.                     <div data-aos="fade-left"   data-aos-duration="800" class="d-flex justify-content-center-sm cg-15 mab-30">
  27.                         <div class="bgc-15683A pa-10">
  28.                             <img src="{{ asset(vich_uploader_asset(subCategory, 'subCategoryFile')) }}"
  29.                                  alt="{{ subCategory.title }}" class="he-25 white-filter"/>
  30.                         </div>
  31.                         <div class="d-flex ">
  32.                             <img src="{{ asset('assets/img/lafafrflag.svg') }}" alt="Facomia" class="he-45"/>
  33.                             <div class="pal-10 bgc-F7F6F2 he-45 wi-100 d-flex align-items-center skew position-relative">
  34.                                 <div class="bgc-F7F6F2 h-100 wi-10 position-absolute l-0 t-0 skew-text"></div>
  35.                                 <div class="skew-text okdavn">
  36.                                     {{ "landing.about.fabfr"|trans|raw }}
  37.                                 </div>
  38.                             </div>
  39.                         </div>
  40.                     </div>
  41.                 {% endif %}
  42.                 <h1 class="sjrklb mab-25" data-aos="fade-left"   data-aos-duration="800">{{ product.title }}</h1>
  43.                 <div data-aos="fade-left"   data-aos-duration="800" data-aos-delay="200" class="content pmb0 mab-30">
  44.                     {{ product.description|raw }}
  45.                 </div>
  46.                 <div data-aos="fade-up"   data-aos-duration="800" data-aos-delay="400" class="mab-30">
  47.                     <a href="{{ path('front_contact', {'slug':product.slug}) }}" class="btn btn1">
  48.                         <div class="btn-text">
  49.                             <i class="fa fa-envelope mar-5"></i>
  50.                             {{ "product.interest_btn"|trans }}
  51.                         </div>
  52.                     </a>
  53.                 </div>
  54.                 <div class="d-flex justify-content-center-sm cg-15 align-items-center">
  55.                     <div data-aos="fade-right"   data-aos-duration="800" data-aos-delay="600" class="dgdxuy">
  56.                         {{ "product.share"|trans }}
  57.                     </div>
  58.                     <div data-aos="fade-left"   data-aos-duration="800" data-aos-delay="600" id="share"
  59.                          data-facebook="{{ asset('assets/img/fb.svg') }}"
  60.                          data-linkedin="{{ asset('assets/img/link.svg') }}"
  61.                          data-twitter="{{ asset('assets/img/twit.svg') }}"
  62.                          ></div>
  63.                 </div>
  64.             </div>
  65.             <div class="col-md-6" data-aos="fade-right"   data-aos-duration="800">
  66.                 {% include "front/productMediaBig.html.twig" with {'img':productImg|imagine_filter('large'), "title":product.title, "id":"rlgdwh"} %}
  67.                 {% for key, productMedia in productMedias %}
  68.                     {% include "front/productMediaBig.html.twig" with {'img':asset(vich_uploader_asset(productMedia, 'productMediaFile'))|imagine_filter('large'), "title":productMedia.title, "id":productMedia.id} %}
  69.                 {% endfor %}
  70.                 <div class="d-flex cg-20 rg-20">
  71.                     {% include "front/productMediaSmall.html.twig" with {'img':productImg|imagine_filter('small'), "title":product.title, "id":"rlgdwh"} %}
  72.                     {% for key, productMedia in productMedias %}
  73.                         {% include "front/productMediaSmall.html.twig" with {'img':asset(vich_uploader_asset(productMedia, 'productMediaFile'))|imagine_filter('small'), "title":productMedia.title, "id":productMedia.id} %}
  74.                     {% endfor %}
  75.                 </div>
  76.                 {% if product.info %}
  77.                     <div class="may-30 bgc-F7F6F2 pay-15 pax-25 d-flex align-items-center cg-25">
  78.                         <i class="fa fa-info-circle c-15683A"></i>
  79.                         <div class="content pmb0">
  80.                             {{ product.info|raw }}
  81.                         </div>
  82.                     </div>
  83.                 {% endif %}
  84.             </div>
  85.         </div>
  86.     </section>
  87.     {% if relatedProducts %}
  88.         <section class="bgc-F7F6F2 pat-80 pab-50 position-relative">
  89.             <img src="{{ asset('assets/img/visudots.png')|imagine_filter('medium') }}" alt="Facomia"
  90.                  class="wi-170 position-absolute r-0 t-0 hbhcpk "/>
  91.             <img src="{{ asset('assets/img/bgrelpro.png')|imagine_filter('large') }}" alt="Facomia"
  92.                  class="w-100 b-0 position-absolute"/>
  93.             <div class="container container-product position-relative">
  94.                 <h2 class="mab-15 text-center eyidgv" data-aos="fade-up"   data-aos-duration="800" >
  95.                     {{ "product.related.title"|trans }}
  96.                 </h2>
  97.                 <div class="text-center mab-50"  data-aos="fade-up"   data-aos-duration="800">
  98.                     <img src="{{ asset('assets/img/line.png')|imagine_filter('small') }}" alt="Facomia" class="wi-150"/>
  99.                 </div>
  100.                 <div class="row">
  101.                     <div class="col-sm-1  align-items-center d-none d-sm-flex justify-content-center">
  102.                         <i class="fs-40 fal fa-arrow-circle-left c-15683A prev-hgsopl pointer"></i>
  103.                     </div>
  104.                     <div class="col-sm-10">
  105.                         <div class="hgsopl pab-15">
  106.                             {% for key, relatedProduct in relatedProducts %}
  107.                                 {% set targetProduct = relatedProduct.targetProduct %}
  108.                                 {% include "front/productListDetail.html.twig" with {'product':targetProduct, "categoryActive":category, "isSlider":1} %}
  109.                             {% endfor %}
  110.                         </div>
  111.                     </div>
  112.                     <div class="col-sm-1 align-items-center d-none d-sm-flex  justify-content-center">
  113.                         <i class="fs-40 fal fa-arrow-circle-right c-15683A next-hgsopl pointer"></i>
  114.                     </div>
  115.                 </div>
  116.             </div>
  117.         </section>
  118.     {% endif %}
  119. {% endblock %}