templates/front/products.html.twig line 1

Open in your IDE?
  1. {% extends "base.html.twig" %}
  2. {% block body %}
  3.     {% include "front/menuBg.html.twig" with {'menu':getCategoryMenu(categoryActive, subCategoryActive, subSubCategoryActive, subSubSubCategoryActive)} %}
  4.     <div class="container">
  5.         <h1 class="title may-30">
  6.             {{ value ? value.title : "products.h1"|trans|raw }}
  7.         </h1>
  8.         {% if value %}
  9.             {% include "front/catBg.html.twig" with {'bgImg':getCategoryImage(value, false, true, true)|imagine_filter('large'), "icon":getCategoryImage(value, true, true), "title":value.title, "color":getValueColor(value)} %}
  10.         {% endif %}
  11.         <div class="js-prods-list">
  12.             <div class="row">
  13.                 <div class="col-sm-6">
  14.                     {% include "form/productsFilterForm.html.twig" %}
  15.                 </div>
  16.                 <div class="col-sm-6 d-flex justify-content-end">
  17.                     <a class="pay-10 pax-15 jvzifb {{ not listView ? "active" }}"
  18.                        href="{{ path('front_products', {"slug":slug, "subCatSlug":subCatSlug, "subSubCatSlug":subSubCatSlug, "subSubSubCatSlug":subSubSubCatSlug}) }}">
  19.                         <img src="{{ asset('assets/img/procol.svg') }}" alt="DMD Inox"
  20.                              class="w-auto mahep-100"/>
  21.                     </a>
  22.                     <a class="pay-10 pax-15 jvzifb {{ listView ? "active" }}"
  23.                        href="{{ path('front_products', {"slug":slug, "subCatSlug":subCatSlug, "subSubCatSlug":subSubCatSlug, "subSubSubCatSlug":subSubSubCatSlug, "listView":1}) }}">
  24.                         <img src="{{ asset('assets/img/prodlist.svg') }}" alt="DMD Inox"
  25.                              class="w-auto mahep-100"/>
  26.                     </a>
  27.                 </div>
  28.             </div>
  29.             <div class="products row mat-30">
  30.                 {% for key, product in products %}
  31.                     <div class="col-lg-{{ listView ? "12" : "3 col-md-4 col-sm-6" }} mab-50">
  32.                         <div class="mimfqe">
  33.                             {% include (listView ? "front/productDetailList.html.twig" : "front/productDetail.html.twig") with {"intro":product.intro} %}
  34.                         </div>
  35.                     </div>
  36.                 {% endfor %}
  37.             </div>
  38.             {% if products|length == limit %}
  39.                 <div class="text-center mab-30">
  40.                     <button class="btn btn2 loadMoreProducts">
  41.                         <i class="fa fa-refresh mar-5"></i>
  42.                         {{ "products.load_more.btn"|trans|raw }}
  43.                     </button>
  44.                 </div>
  45.             {% endif %}
  46.         </div>
  47.         {% if value.paragraphTitle is defined and value.paragraphTitle %}
  48.             <h2 class="title may-16">{{ value.paragraphTitle }}</h2>
  49.         {% elseif value.title is defined %}
  50.             <h2 class="title may-16">{{ value.title }}</h2>
  51.         {% endif %}
  52.         {% if value.description is defined %}
  53.             <div class="content may-24">
  54.                 {{ value.description|raw }}
  55.             </div>
  56.         {% endif %}
  57.     </div>
  58. {% endblock %}