custom/plugins/WebLabels/src/Resources/views/storefront/element/cms-element-image-gallery.html.twig line 1

Open in your IDE?
  1. {% sw_extends '@Storefront/storefront/element/cms-element-image-gallery.html.twig' %}
  2.                     {% block element_image_gallery_inner_wrapper %}
  3.                       {{ parent() }}
  4.                         <div class="detail_badges product-badges">
  5.                              {% set listPrice = page.product.priceRange or page.product.calculatedPrices.count > 0 ? null : page.product.calculatedPrice.listPrice.percentage > 0 %}
  6.                                 {% if page.product.translated.customFields.custom_same_day_checkbox %}
  7.                                     <div class="badge-same-day">
  8.                                         <span class="badge">{{ "wlcustom.product_box.same_day"|trans }}</span>
  9.                                     </div>
  10.                                 {% endif %}
  11.                                 
  12.                                 {% if page.product.translated.customFields.custom_lokal_lokal_ or  page.product.translated.customFields.custom_lokal_region_ %}
  13.                                         {% if (page.product.translated.customFields.custom_lokal_lokal_ and  page.product.translated.customFields.custom_lokal_region_) or (page.product.translated.customFields.custom_lokal_lokal_ and  page.product.translated.customFields.custom_lokal_region_ == false) %}
  14.                                         <div class="badge-lokal">
  15.                                             <span class="badge">Lokales Produkt</span>
  16.                                         </div>
  17.                                         {% endif %}
  18.                                     {% if (page.product.translated.customFields.custom_lokal_lokal_ == false) and  page.product.translated.customFields.custom_lokal_region_ %}
  19.                                         <div class="badge-lokal">
  20.                                             <span class="badge">Aus der Region</span>
  21.                                         </div>
  22.                                     {% endif %}
  23.                                 {% endif %}
  24.                                     {% if listPrice or page.product.isNew %}
  25.                                         {% if (page.product.isNew and listPrice) or (page.product.isNew and listPrice == false) %}
  26.                                             <div class="badge-success">
  27.                                                 <span class="badge badge-new">{{ "listing.boxLabelNew"|trans|sw_sanitize }}</span>
  28.                                             </div>
  29.                                         {% endif %}
  30.                                         {% if (page.product.isNew == false and listPrice) %}
  31.                                             <div class="badge-danger">
  32.                                                 <span class="badge badge-discount">Sale</span>
  33.                                             </div>
  34.                                         {% endif %}
  35.                                     {% endif %}
  36.                                     
  37.                                 {% if page.product.markAsTopseller %}
  38.                                     <div>
  39.                                         <span class="badge badge-warning badge-topseller">{{ "listing.boxLabelTopseller"|trans|sw_sanitize }}</span>
  40.                                     </div>
  41.                                 {% endif %}
  42.                         </div>
  43.                     {% endblock %}