templates/frontend/productListing.html.twig line 1

Open in your IDE?
  1.             <!--Category section filters-->
  2.             <div class="row d-none d-xl-block  d-lg-block d-md-block">
  3.                 <div class="d-none d-xl-block  d-lg-block d-md-block col-xl-2 col-lg-2 col-md-2 col-2"></div>
  4.                 <div class="col-xl-12 col-lg-12 col-md-12 col-sm-12 col-12" id="checked-filters">
  5.                     <!--<div class="category-products-filter-by">filter<button class="category-products-filter-by-btn-close">x</button></div>-->
  6.                      {% if sorting is defined %}
  7.                       {% set sort_popularity_order = "desc" %}
  8.                       {% set sort_date_order = "desc" %}
  9.                       {% set sort_price_order = "desc" %}
  10.                       {% if sorting == "popularity" %}
  11.                         {% if order == "asc" %}
  12.                           {% set sort_popularity_order = "desc" %}
  13.                         {% else %}
  14.                           {% set sort_popularity_order = "asc" %}
  15.                         {% endif %}
  16.                       {% elseif sorting == "date" %}
  17.                         {% if order == "asc" %}
  18.                           {% set sort_date_order = "desc" %}
  19.                         {% else %}
  20.                           {% set sort_date_order = "asc" %}
  21.                         {% endif %}
  22.                       {% elseif sorting == "price" %}
  23.                         {% if order == "asc" %}
  24.                           {% set sort_price_order = "desc" %}
  25.                         {% else %}
  26.                           {% set sort_price_order = "asc" %}
  27.                         {% endif %}
  28.                       {% endif %}
  29.                         {% if app.request.attributes.get('_route') == 'companyStore' %}
  30.                             <a href="{{link}}"  style="{% if sorting == null %}text-decoration: underline !important;{% endif %}">Défaut</a> |
  31.                         {% endif %}
  32.                       <a href="?sorting=popularity&order={{sort_popularity_order}}" style="{% if sorting == "popularity" %}text-decoration: underline !important;{% endif %}">Popularité {% if sort_popularity_order == "asc" %}&#8673;{% else %}&#8675;{% endif %}</a> |
  33.                       <a href="?sorting=price&order={{sort_price_order}}" style="{% if sorting == "price" %}text-decoration: underline !important;{% endif %}">Prix {% if sort_price_order == "asc" %}&#8673;{% else %}&#8675;{% endif %}</a> |
  34.                       <a href="?sorting=date&order={{sort_date_order}}" style="{% if sorting == "date" %}text-decoration: underline !important;{% endif %}">Récent {% if sort_date_order == "asc" %}&#8673;{% else %}&#8675;{% endif %}</a>
  35.                     {% endif %}
  36.                     <div class="category-products-result">
  37.                         RÉSULTATS: {{amountProductsPerCategories}} PRODUITS
  38.                     </div>
  39.                 </div>
  40.             </div>
  41.             <!--Category section filters-->
  42.             <!--Category section products-->
  43.             <div class="row products-wrap">
  44.                 <div class="products-wrap__category d-none d-xl-block  d-lg-block d-md-block col-xl-2 col-lg-2 col-md-2 pull-left">
  45.                     <div class="category-products-filters not-mobile">
  46.                         <ul>
  47.                             <li class="category-product-filter__name" style="font-size: 15px;">
  48.                                <a href="{{link}}" class="filterCompany" value="0">Tout <span class="product-count">{{amountProductsTotal.total}}</span></a>
  49.                             </li>
  50.                             {% for key, category in productCategories %}
  51.                                 <li class="category-product-filter__name" style="font-size: 15px;">
  52.                                     <a href="#" class="filterCompany" value="{{category.id}}">{{category.name}} <span class="product-count">{{category.amount}}</span></a>
  53.                                 </li>
  54.                             {% endfor %}
  55.                         </ul>
  56.                     </div>
  57.                 </div>
  58.                 <div class="products-wrap__products col-xl-10 col-lg-10 col-md-10 col-sm-12 col-12">
  59.                     {{ include ('frontend/productMasonry.html.twig', {'masonryProducts': availableProducts} ) }}
  60.                 </div>
  61.             </div>