custom/plugins/LogBchange/src/Resources/views/storefront/component/product/card/log-cube.html.twig line 1

Open in your IDE?
  1. <div class="card  product-box box-{{ layout }}">
  2.     {% block component_product_box_content %}
  3.         <div class="card-body">
  4.             <div class="cube-category">
  5.                 {% if customFields.custom_product_fields_digital == 1 %}
  6.                     Digital Cube
  7.                 {% else %}
  8.                     Product Cube
  9.                 {% endif %}
  10.             </div>
  11.             {# <a href="{{ seoUrl('frontend.detail.page', { 'productId': id }) }}" title="{{ name }}" class="product-link is-{{ displayMode }}"> #}
  12.                 <div class="color-overlay" style="--background: {{ customFields.custom_product_fields_color_overlay }};"></div>
  13.                 {% block component_product_box_badges %}
  14.                 {% sw_include "@Storefront/storefront/component/product/card/badges.html.twig" %}
  15.                 {% endblock %}
  16.                 {% block component_product_box_image %}
  17.                     <div
  18.                         class="product-image-cover">
  19.                         {# fallback if display mode is not set #}
  20.                         {% set displayMode = displayMode ?: 'standard' %}
  21.                         {# set display mode 'cover' for box-image with standard display mode #}
  22.                         {% if layout == 'image' and displayMode == 'standard' %}
  23.                             {% set displayMode = 'cover' %}
  24.                         {% endif %}
  25.                         {% if cover.url %}
  26.                             {% set attributes = {
  27.                                 'alt': (cover.translated.alt ?: name),
  28.                                 'title': (cover.translated.title ?: name)
  29.                             } %}
  30.                             {% if displayMode == 'cover' or displayMode == 'contain' %}
  31.                                 {% set attributes = attributes|merge({ 'data-object-fit': displayMode }) %}
  32.                             {% endif %}
  33.                             {% sw_thumbnails 'product-image-thumbnails' with {
  34.                                                     media: cover,
  35.                                                     sizes: sizes
  36.                                                 } %}
  37.                         {% else %}
  38.                             <div class="product-image-placeholder">
  39.                                 {% sw_icon 'placeholder' style {
  40.                                                         'size': 'fluid'
  41.                                                     } %}
  42.                             </div>
  43.                         {% endif %}
  44.                         {% if config('core.cart.wishlistEnabled') %}
  45.                             {% block component_product_box_wishlist_action %}
  46.                                 {% sw_include '@Storefront/storefront/component/product/card/wishlist.html.twig' with {
  47.                                                     appearance: 'circle',
  48.                                                     productId: id
  49.                                                 } %}
  50.                             {% endblock %}
  51.                         {% endif %}
  52.                     </div>
  53.                 {% endblock %}
  54.                 {% block component_product_box_info %}
  55.                     <div class="product-info">
  56.                         {% block component_product_box_rating %}
  57.                             {# {% if config('core.listing.showReview') %}
  58.                                 <div class="product-rating">
  59.                                     {% if product.ratingAverage %}
  60.                                         {% sw_include '@Storefront/storefront/component/review/rating.html.twig' with {
  61.                                                             points: product.ratingAverage,
  62.                                                             style: 'text-primary'
  63.                                                         } %}
  64.                                     {% endif %}
  65.                                 </div>
  66.                             {% endif %} #}
  67.                         {% endblock %}
  68.                         {% block component_product_box_name %}
  69.                             <div class="cube-teaser" style="color:{{customFields.custom_product_fields_color_overlay}};">
  70.                                 <svg class="svg-circle">
  71.                                     <circle class="circle" cx="38" cy="38" r="32" style="stroke:{{customFields.custom_product_fields_color_overlay}};"/>
  72.                                 </svg>
  73.                                 {{ customFields.custom_product_fields_duration }}<br>
  74.                                 <div>{{ "log-cube.days"|trans|sw_sanitize }}</div>
  75.                             </div>
  76.                             <div class="product-name">
  77.                                 {{ name }}
  78.                             </div>
  79.                         {% endblock %}
  80.                         {% block component_product_box_variant_characteristics %}{% endblock %}
  81.                         {% block component_product_box_description %}{% endblock %}
  82.                         {% block component_product_box_price %}{% endblock %}
  83.                         {% block component_product_box_action %}{% endblock %}
  84.                     </div>
  85.                 {% endblock %}
  86.             {# </a> #}
  87.         </div>
  88.     {% endblock %}
  89. </div>