custom/plugins/zenitPlatformAtmosSet2/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.     {# ... change simplified namespace #}
  4.     {% if namespace is same as('theme') %}
  5.         {% set namespace = 'zenitPlatformAtmos' %}
  6.     {% endif %}
  7.     {# ... change icons without extending every block #}
  8.     {% set icons = [ 'heart', 'heart-fill', 'avatar', 'bag', 'help', 'stack', 'search', 'x', 'eye', 'icon-herz-grau', 'icon-herz-gold', 'icon-herz-gold-filled' ] %}
  9.     {% set themepacks = [ 'entypo', 'feather', 'featherold', 'material', 'simple', 'social', 'theme', 'tonicons' ] %}
  10.     {% set styles = [ size, color, rotation, flip, class ] %}
  11.     {% set iconsWilly = [ 'icon-herz-grau', 'icon-herz-gold', 'icon-herz-gold-filled' ] %}
  12.     {% if pack == 'willyshop' %}
  13.         {% sw_include '@zenitPlatformAtmosSet2/storefront/utilities/willy-shop-icons.html.twig' with {
  14.                     namespace: 'zenitPlatformAtmosSet2',
  15.                     icons: iconsWilly,
  16.                     styles: styles,
  17.                     pack: pack                    
  18.                 } %}
  19.     {% else %}
  20.         {% if pack is not defined and theme_config('zen-icon-set') is not same as ('default') %}
  21.             {% if name in icons %}
  22.                 {% set pack = theme_config('zen-icon-set') %}
  23.                 {% set namespace = 'zenitPlatformAtmos' %}
  24.             {% else %}
  25.                 {% set pack = 'default' %}
  26.             {% endif %}
  27.         {% endif %}
  28.         {# .. if context is cloud app #}
  29.         {% if context.context.extensions['zenitPlatformAtmos'].system is not defined and pack in themepacks %}
  30.             {% block zen_utilities_icon_cloud_packs %}
  31.                 {% sw_include '@zenitPlatformAtmosSet2/storefront/utilities/zen-icons-cloud.html.twig' with {
  32.                     namespace: namespace,
  33.                     icons: icons,
  34.                     styles: styles,
  35.                     pack: pack
  36.                 } %}
  37.             {% endblock %}
  38.         {% else %}
  39.             {{ parent() }}
  40.         {% endif %}
  41.     {% endif %}
  42. {% endblock %}