vendor/gourmops/theme/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.     {% set sizes = {
  4.         'xs': '545px',
  5.         'sm': '355px',
  6.         'md': '435px',
  7.         'lg': '395px',
  8.         'xl': '325px'
  9.     } %}
  10.     {% block component_product_box_image_name %}
  11.         <a href="{{ seoUrl('frontend.detail.page', {'productId': id}) }}"
  12.            class="product-name"
  13.            title="{{ name }}">
  14.             {% set labels = name|split('-') %}
  15.             {% for label in labels %}
  16.                 {% if loop.first %}
  17.                     {% set labelItems = label|trim|split(' ') %}
  18.                     <span class="product-card-product-line">
  19.                         {% for labelItem in labelItems %}
  20.                             {% if loop.first %}
  21.                                 <span>{{ labelItem }}</span>
  22.                             {% else %}
  23.                                 {{ labelItem }}
  24.                             {% endif %}
  25.                         {% endfor %}
  26.                     </span>
  27.                 {% else %}
  28.                     <br/>
  29.                     // {{ label|trim }}
  30.                 {% endif %}
  31.             {% endfor %}
  32.         </a>
  33.     {% endblock %}
  34.     {{ parent() }}
  35. {% endblock %}
  36. {% block component_product_box_name %}{% endblock %}
  37. {% block component_product_box_price %}
  38.     {% block component_product_box_detail %}
  39.         <div class="product-detail-link">
  40.             <p>
  41.                 <a href="{{ seoUrl('frontend.detail.page', {'productId': id}) }}"
  42.                    class="btn product-detail"
  43.                    title="{{ 'gourmops.theme.component.product.card.boxStandard.detail.text'|trans|striptags }}">
  44.                     {{ 'gourmops.theme.component.product.card.boxStandard.detail.text'|trans|sw_sanitize }}
  45.                 </a>
  46.             </p>
  47.         </div>
  48.     {% endblock %}
  49.     {{ parent() }}
  50. {% endblock %}