templates/partials/_featured_section.html.twig line 1

Open in your IDE?
  1. {% set featured_classes = featured_classes ?? 'featured spad' %}
  2. {% set price_prefix = price_prefix ?? 'FCFA' %}
  3. {% set price_separator = price_separator is defined ? price_separator : ' ' %}
  4. {% set price_format = price_format ?? false %}
  5. {% set label_raw = label_raw ?? false %}
  6. {% set show_description = show_description ?? false %}
  7. <section class="{{ featured_classes }}" {% if featured_id is defined %}id="{{ featured_id }}"{% endif %}>
  8.     <div class="container">
  9.         {% if section_title is defined or section_subtitle is defined %}
  10.             <div class="row">
  11.                 <div class="col-lg-12">
  12.                     <div class="section-title">
  13.                         {% if section_title is defined %}<h2>{{ section_title }}</h2>{% endif %}
  14.                         {% if section_subtitle is defined %}<p>{{ section_subtitle }}</p>{% endif %}
  15.                     </div>
  16.                 </div>
  17.             </div>
  18.         {% endif %}
  19.         {% if show_filters %}
  20.             <div class="row">
  21.                 <div class="col-lg-12">
  22.                     <div class="featured__controls">
  23.                         <ul>
  24.                             <li class="active" data-filter="*">Tous</li>
  25.                             {% for ListeCategorie in ListeCategories %}
  26.                                 <li data-filter=".{{ ListeCategorie.CATEGORIES }}">
  27.                                     <span class="featured__filter-label">
  28.                                         {{ labels[ListeCategorie.CATEGORIES] ?? ListeCategorie.CATEGORIES }}
  29.                                     </span>
  30.                                 </li>
  31.                             {% endfor %}
  32.                         </ul>
  33.                     </div>
  34.                 </div>
  35.             </div>
  36.         {% endif %}
  37.         <div class="row featured__filter product-grid">
  38.             {% for Produit in Produits %}
  39.                 <div class="col-lg-3 col-md-4 col-sm-6 mix {{ Produit.getCATEGORIES() }} fresh-meat">
  40.                     {% include 'partials/_product_card.html.twig' with {
  41.                         Produit: Produit,
  42.                         label_raw: label_raw,
  43.                         show_description: show_description,
  44.                         price_prefix: price_prefix,
  45.                         price_separator: price_separator,
  46.                         price_format: price_format
  47.                     } %}
  48.                 </div>
  49.             {% endfor %}
  50.         </div>
  51.     </div>
  52. </section>