custom/plugins/TcinnThemeWareLiving/src/Resources/views/storefront/themeware/includes/twt-badge-topseller-include.html.twig line 1

Open in your IDE?
  1. {# ThemeWare "Topseller badge" content #}
  2. {# ---------------- START: SET TEMPLATE VARS ---------------- #}
  3. {# ThemeWare: Set theme variables #}
  4. {% set twtProductBadgesTopsellerBadgeColoration = theme_config('twt-product-badges-topseller-badge-coloration') %}
  5. {% set twtProductBadgesTopsellerBadgeIconShow = theme_config('twt-product-badges-topseller-badge-icon-show') %}
  6. {# ---------------- END: SET TEMPLATE VARS ---------------- #}
  7. {# TODO: Blöcke prüfen... #}
  8. {% block twt_product_badges_topseller_badge %}
  9.     {% if product.markAsTopseller %}
  10.         <div>
  11.             <span class="badge badge-warning{% if twtProductBadgesTopsellerBadgeColoration == 3 %}-lighten{% endif %} badge-topseller">
  12.                 {% if twtProductBadgesTopsellerBadgeIconShow == 2 %}
  13.                     {# heart oder star #}
  14.                     {% sw_include '@Storefront/storefront/themeware/twt-icons.html.twig' ignore missing with {
  15.                         icon: "twt.extension.topsellerBadge.icon"|trans
  16.                     } %}
  17.                 {% endif %}
  18.                 {{ "listing.boxLabelTopseller"|trans|sw_sanitize }}
  19.             </span>
  20.         </div>
  21.     {% endif %}
  22. {% endblock %}