custom/plugins/SMTheme/src/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.     {% set layout2 = layout %}
  5.     {% if layout is empty %}
  6.         {% set layout = 'standard' %}
  7.     {% endif %}
  8.     {% set sizes = {
  9.         'xs': '500px',
  10.         'sm': '315px',
  11.         'md': '390px',
  12.         'lg': '350px',
  13.         'xl': '280px'
  14.     } %}
  15.     {% if layout == 'image' %}
  16.         {% set sizes = {
  17.             'xs': '500px',
  18.             'sm': '500px',
  19.             'md': '390px',
  20.             'lg': '350px',
  21.             'xl': '280px'
  22.         } %}
  23.     {% endif %}
  24.     {% if layout == 'standard' %}
  25.         {% sw_include "@Storefront/storefront/component/product/card/box-standard.html.twig" %}
  26.     {% elseif layout == 'image' %}
  27.         {% sw_include "@Storefront/storefront/component/product/card/box-image.html.twig" %}
  28.     {% elseif layout == 'minimal' %}
  29.         {% sw_include "@Storefront/storefront/component/product/card/box-minimal.html.twig" %}
  30.     {% elseif layout == 'wishlist' %}
  31.         {% sw_include "@Storefront/storefront/component/product/card/box-wishlist.html.twig" %}
  32.     {% else %}
  33.         {% set template = "@Storefront/storefront/component/product/card/box-" ~ layout ~ ".html.twig" %}
  34.         {% sw_include template ignore missing %}
  35.     {% endif %}
  36. {% endblock %}