{% sw_extends '@Storefront/storefront/utilities/icon.html.twig' %}
{% block utilities_icon %}
{# ... @zenit - change icons without extending every block #}
{% set icons = [
'heart',
'heart-fill',
'avatar',
'bag',
'help',
'stack',
'search',
'x',
'eye-open',
'envelope'
] %}
{% set themepacks = [
'entypo',
'feather',
'featherold',
'iconly-broken',
'iconly-bulk',
'iconly-light-outline',
'material',
'simple',
'social',
'theme',
'tonicons'
] %}
{% set styles = [ size, color, rotation, flip, class ] %}
{% if pack is not defined and theme_config('zen-icon-set') is not same as ('default') %}
{% if name in icons %}
{% set pack = theme_config('zen-icon-set') %}
{% set namespace = 'zenitPlatformHorizon' %}
{% else %}
{% set pack = 'default' %}
{% endif %}
{% endif %}
{# .. if context is cloud app #}
{% if context.context.extensions['zenitPlatformHorizon'].system is not defined and pack in themepacks %}
{% block zen_utilities_icon_cloud_packs %}
{% sw_include '@zenitPlatformHorizon/storefront/utilities/zen-icons-cloud.html.twig' with {
namespace: namespace,
icons: icons,
styles: styles,
pack: pack
} %}
{% endblock %}
{% else %}
{{ parent() }}
{% endif %}
{% endblock %}