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

Open in your IDE?
  1. {% sw_extends '@Storefront/storefront/component/product/card/box-standard.html.twig' %}
  2. {% block component_product_box_image %}
  3.     <div class="product-image-wrapper">
  4.         {% if config('core.cart.wishlistEnabled') %}
  5.             {% block component_product_box_wishlist_action %}
  6.                 {% sw_include '@Storefront/storefront/component/product/card/wishlist.html.twig' with {
  7.                                         appearance: 'circle',
  8.                                         productId: id
  9.                                     } %}
  10.             {% endblock %}
  11.         {% endif %}
  12.         {# fallback if display mode is not set #}
  13.         {% set displayMode = displayMode ?: 'standard' %}
  14.         {# set display mode 'cover' for box-image with standard display mode #}
  15.         {% if layout == 'image' and displayMode == 'standard' %}
  16.             {% set displayMode = 'cover' %}
  17.         {% endif %}
  18.         {% block component_product_box_image_link %}
  19.             <a href="{{ seoUrl('frontend.detail.page', { 'productId': id }) }}" title="{{ name }}" class="product-image-link is-{{ displayMode }}">
  20.                 {% block component_product_box_image_link_inner %}
  21.                     {% if cover.url %}
  22.                         {% set attributes = {
  23.                                                 'class': 'product-image is-'~displayMode,
  24.                                                 'alt': (cover.translated.alt ?: name),
  25.                                                 'title': (cover.translated.title ?: name)
  26.                                             } %}
  27.                         {% if displayMode == 'cover' or displayMode == 'contain' %}
  28.                             {% set attributes = attributes|merge({ 'data-object-fit': displayMode }) %}
  29.                         {% endif %}
  30.                         {% block component_product_box_image_thumbnail %}
  31.                             {% sw_thumbnails 'product-image-thumbnails' with {
  32.                                                     media: cover,
  33.                                                     sizes: sizes
  34.                                                 } %}
  35.                         {% endblock %}
  36.                     {% else %}
  37.                         {% block component_product_box_image_placeholder %}
  38.                             <div class="product-image-placeholder">
  39.                                 {% sw_icon 'placeholder' style {
  40.                                                         'size': 'fluid'
  41.                                                     } %}
  42.                             </div>
  43.                         {% endblock %}
  44.                     {% endif %}
  45.                 {% endblock %}
  46.             </a>
  47.         {% endblock %}
  48.     </div>
  49. {% endblock %}
  50. {% block component_product_box_variant_characteristics %}{% endblock %}
  51. {% block component_product_box_description %}{% endblock %}