custom/plugins/DmfManuTheme/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.     {% if layout == 'standard' %}
  9.         {% sw_include "@Storefront/storefront/component/product/card/box-standard.html.twig" %}
  10.     {% elseif layout == 'image' %}
  11.         {% sw_include "@Storefront/storefront/component/product/card/box-image.html.twig" %}
  12.     {% elseif layout == 'minimal' %}
  13.         {% sw_include "@Storefront/storefront/component/product/card/box-minimal.html.twig" %}
  14.     {% elseif layout == 'wishlist' %}
  15.         {% sw_include "@Storefront/storefront/component/product/card/box-standard.html.twig" %}
  16.     {% else %}
  17.         {% set template = "@Storefront/storefront/component/product/card/box-" ~ layout ~ ".html.twig" %}
  18.         {% sw_include template ignore missing %}
  19.     {% endif %}
  20. {% endblock %}