custom/static-plugins/theme-base/src/Resources/views/storefront/component/product/card/box.html.twig line 1

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