templates/pages/_includes/components/_special_offers.html.twig line 1

Open in your IDE?
  1. {#
  2. Module partagé : liste d'offres spéciales avec popup au survol.
  3. @param offers iterable d'offres (entités Offer ou tableaux)
  4. @param wrapperClass classes additionnelles sur .special_offers-block
  5. @param gridClass classes additionnelles sur .special_offers (ex: special_offers--single-column)
  6. @param title titre optionnel au-dessus de la grille
  7. @param titleIcon nom d'icône Lucide pour le titre
  8. #}
  9. {% if offers is defined and offers is iterable and offers is not empty %}
  10. <div class="special_offers-block{{ wrapperClass is defined and wrapperClass ? ' ' ~ wrapperClass : '' }}">
  11. {% if title is defined and title is not empty %}
  12. <h2 class="text-sm-bd special_offers-block__title">
  13. {% if titleIcon is defined and titleIcon is not empty %}
  14. {{ getLucidIcon(titleIcon) }}
  15. {% endif %}
  16. {{ title }}
  17. </h2>
  18. {% endif %}
  19. <div class="special_offers{{ gridClass is defined and gridClass ? ' ' ~ gridClass : '' }}">
  20. {% for offer in offers %}
  21. {% include 'pages/_includes/partials/_offer_with_popup.html.twig' with { offer: offer } only %}
  22. {% endfor %}
  23. </div>
  24. </div>
  25. {% endif %}