templates/front/catalog/product/carousel.html.twig line 1

Open in your IDE?
  1. {% if withWrapper is not defined %}
  2. {% set withWrapper = false %}
  3. {% endif %}
  4. {% if titleTag is not defined %}
  5. {% set titleTag = 'div' %}
  6. {% endif %}
  7. {% if withWrapper %}
  8. <div class="product-carousel-ctn">
  9. <div class="ctn">
  10. {% endif %}
  11. <div class="product-list-ctn">
  12. {% if title is defined and title %}
  13. <div class="title-ctn">
  14. <{{ titleTag }} class="title">{{ title }}</{{ titleTag }}>
  15. <hr>
  16. </div>
  17. {% endif %}
  18. <ul class="product-list product-carousel">
  19. {% for p in products %}
  20. {% if p.productModel %}
  21. {% include 'front/catalog/model/view/list-item.html.twig' with {model:p.topProductModel, product:p} %}
  22. {% else %}
  23. {% include 'front/catalog/product/view/list-item.html.twig' with {product:p} %}
  24. {% endif %}
  25. {% endfor %}
  26. </ul>
  27. </div>
  28. {% if withWrapper %}
  29. </div>
  30. </div>
  31. {% endif %}