{% sw_extends '@Storefront/storefront/utilities/icon.html.twig' %}
{% block utilities_icon %}
{# ... change simplified namespace #}
{% if namespace is same as('theme') %}
{% set namespace = 'zenitPlatformSphere' %}
{% endif %}
{# ... change icons without extending every block #}
{% set icons = [ 'heart', 'heart-fill', 'avatar', 'bag', 'help', 'stack', 'search', 'x' ] %}
{% set themepacks = [ 'entypo', 'feather', 'featherold', '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 = 'zenitPlatformSphere' %}
{% else %}
{% set pack = 'default' %}
{% endif %}
{% endif %}
{# .. if context is cloud app #}
{% if context.context.extensions['zenitPlatformSphere'].system is not defined and pack in themepacks %}
{% block zen_utilities_icon_cloud_packs %}
{% sw_include '@Storefront/storefront/utilities/zen-icons-cloud.html.twig' with {
namespace: namespace,
icons: icons,
styles: styles,
pack: pack
} %}
{% endblock %}
{% else %}
{{ parent() }}
{% endif %}
{% endblock %}