templates/product/public/_list.html.twig line 1

Open in your IDE?
  1. <section class="{{ productConfig.listClass }}" data-desktop="{{ productConfig.listClass }}" data-mobil="{{ productConfig.listClassMobile }}" data-tablet="{{ productConfig.listClassTablet }}">
  2.   {% if productConfig.template == 'Classic' %}
  3.     {% set imageWidth = productConfig.design.classic_image_width|replace({ 'w-': '' }) %}
  4.     {% set columnWidth = 100 - imageWidth %}
  5.     {% set columnWidthClass = 'w-' ~ columnWidth %}
  6.     {% for product in products %}
  7.       {% include 'product/templates/_classic.html.twig' %}
  8.     {% endfor %}
  9.   {% endif %}
  10.   {% if productConfig.template == 'Card' %}
  11.     {% for product in products %}
  12.       {% include 'product/templates/_card.html.twig' %}
  13.     {% endfor %}
  14.   {% endif %}
  15.   {% if productConfig.template == 'Banner' %}
  16.     {% for product in products %}
  17.       {% include 'product/templates/_banner.html.twig' %}
  18.     {% endfor %}
  19.   {% endif %}
  20. </section>