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