templates/bundles/MLDevCatalogBundle/widgets/catalog/catalog-item.html.twig line 1

Open in your IDE?
  1. {#<div id="catalog-app" data-catalog-init="{{ catalog_init|json_encode }}"></div>#}
  2. <section class="product-list catalog-app">
  3.     <div class="container">
  4.         <div class="product-list__content">
  5.             {% if title %}
  6.                 <div class="product-list__heading section-heading">
  7.                     <div class="container">
  8.                         <h3 class="h4 section-title"> {{ title|default|raw }} </h3>
  9.                     </div>
  10.                 </div>
  11.             {% endif %}
  12.             <div class="product-list__items {{ display_variant is defined and display_variant ? display_variant }}">
  13.                 {% for product in catalog_list %}
  14.                     {% if product %}
  15.                         {{ render_product_card(product, { single_display_variant: display_variant is defined and display_variant == 'product-list__items-1' }) }}
  16.                     {% endif %}
  17.                 {% endfor %}
  18.             </div>
  19.         </div>
  20.     </div>
  21. </section>
  22. <div class="catalog__categories">
  23.     <div class="container">
  24.         <div class="catalog__categories-row">
  25.             {% for child in page.childrens|filter(v => v.isActive) %}
  26.                 {% set is_active =  child.lft <= page.lft and child.rgt >= page.rgt %}
  27.                 <a href="{{ child.uri }}" class="item {{ is_active ? 'active' }}">{{ child.name }}</a>
  28.             {% endfor %}
  29.         </div>
  30.     </div>
  31. </div>
  32. <div itemscope itemtype="https://schema.org/OfferCatalog" style="display: none;">
  33.     <span itemprop="name">{{ page.name }}</span>
  34.     {% if page.description %}
  35.         <span itemprop="description">{{ page.description }}</span>
  36.     {% endif %}
  37.     {% if page.image %}
  38.         <img src="{{ app.request.getSchemeAndHttpHost() }}{{ page.image }}" itemprop="image">
  39.     {% endif %}
  40. </div>
  41. <script>
  42.     r46("track", "category", "{{ page.id }}");
  43. </script>