custom/static-plugins/BaumarktTheme/src/Resources/views/storefront/utilities/icon.html.twig line 1

Open in your IDE?
  1. {% sw_extends '@Storefront/storefront/utilities/icon.html.twig' %}
  2. {% block utilities_icon %}
  3.     {% set styles = [ size, color, rotation, flip, class ] %}
  4.     {% if pack is not defined %}
  5.         {% set pack = 'default' %}
  6.     {% endif %}
  7.     {% if namespace is not defined %}
  8.         {% set namespace = 'Storefront' %}
  9.     {% endif %}
  10.     <span class="icon icon-{{ name }}{% for entry in styles %}{% if entry != "" %} icon-{{ entry }}{% endif %}{% endfor %}">
  11. {% if pack == 'globus_icons' %}
  12.     {{ source('@BaumarktTheme/../app/storefront/src/assets/icon/globus_icons/'~ name ~'.svg', ignore_missing = false) }}
  13. {% elseif pack == 'pixup' %}<span
  14.     class="{% if noIcon == null %}icon{% endif%} icon-{{ name }}{% for entry in styles %}{% if entry != "" %} icon-{{ entry }}{% endif %}{% endfor %} {% if class != null %}{{ class }}{% endif %}">
  15.     {{ source('@PixupWishlistSW6/../app/storefront/dist/assets/icon/pixup/'~ name ~'.svg', ignore_missing = false) }}</span>
  16. {% else %}
  17.     {{ source('@' ~ namespace ~ '/../app/storefront/dist/assets/icon/'~ pack ~'/'~ name ~'.svg', ignore_missing = true) }}
  18. {% endif %}
  19.     </span>
  20. {% endblock %}