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