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

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