vendor/shopware/platform/src/Storefront/Resources/views/storefront/component/product/card/box.html.twig line 1

Open in your IDE?
  1. {% block component_product_box_include %}
  2.     {# Includes a custom product-box template defined by the layout variable.
  3.        The standard template is used if no custom layout is set. #}
  4.     {% if layout is empty %}
  5.         {% set layout = 'standard' %}
  6.     {% endif %}
  7.     {% if layout == 'standard' %}
  8.         {% sw_include "@Storefront/storefront/component/product/card/box-standard.html.twig" %}
  9.     {% elseif layout == 'image' %}
  10.         {% sw_include "@Storefront/storefront/component/product/card/box-image.html.twig" %}
  11.     {% elseif layout == 'minimal' %}
  12.         {% sw_include "@Storefront/storefront/component/product/card/box-minimal.html.twig" %}
  13.     {% elseif layout == 'wishlist' %}
  14.         {% sw_include "@Storefront/storefront/component/product/card/box-wishlist.html.twig" %}
  15.     {% else %}
  16.         {% set template = "@Storefront/storefront/component/product/card/box-" ~ layout ~ ".html.twig" %}
  17.         {% sw_include template ignore missing %}
  18.     {% endif %}
  19. {% endblock %}