{% block wexo_widget %}
{% if module != null and module != "text" %}
<div class="d-flex align-items-center p-2 wexo-widget">
{% if module is same as ("currency") %}
{% block wexo_widget_currency %}
{% embed '@Storefront/storefront/layout/header/actions/currency-widget.html.twig' with{position: "wexo-widget"} %}
{% block layout_header_actions_currency_widget_form %}
{% if icon %}
<img src="{{ icon|sw_sanitize }}" alt="icon for currency" width="16px" height="16px">
{% endif %}
{{ parent() }}
{% endblock %}
{% endembed %}
{% endblock %}
{% elseif module is same as ("account") %}
{% block wexo_widget_account %}
{% sw_include '@Storefront/storefront/layout/header/actions/account-widget.html.twig' %}
{% endblock %}
{% elseif module is same as ("language") %}
{% block wexo_widget_language %}
{% sw_include '@Storefront/storefront/layout/header/actions/language-widget.html.twig' %}
{% endblock %}
{% elseif module is same as ("cart") %}
{% block wexo_widget_cart %}
<div class="header-cart"
data-offcanvas-cart="true">
<a class="btn header-cart-btn header-actions-btn"
href="{{ path('frontend.checkout.cart.page') }}"
data-cart-widget="true"
title="{{ 'checkout.cartTitle'|trans|striptags }}"
aria-label="{{ 'checkout.cartTitle'|trans|striptags }}">
{% sw_include '@Wtheme/storefront/layout/header/actions/cart-widget.html.twig' %}
</a>
</div>
{% endblock %}
{% elseif module is same as ("service") %}
{% block wexo_widget_service %}
{% sw_include '@Storefront/storefront/layout/header/actions/service-menu-widget.html.twig' %}
{% endblock %}
{% elseif module is same as ("custom") %}
{% sw_include '@Wtheme/storefront/component/widgets/custom.html.twig' with {i:i, icon:icon, text:text} %}
{% elseif module is same as ("customWidget") %}
{% sw_include '@Wtheme/storefront/component/widgets/custom-widget.html.twig' with {i:i, icon:icon, text:text} %}
{% endif %}
</div>
{% else %}
{% if icon or content %}
{% block wexo_widget_text %}
<div class="d-flex align-items-center p-2 wexo-widget">
{% if icon %}
<img src="{{ icon|sw_sanitize }}" alt="Image visually summarizing text on the right" width="16px" height="16px">
{% endif %}
{% if content %}
<p class="mb-0 ml-1">
{% include '@Wtheme/storefront/reader/snippet.html.twig' with {read: content, hyperlink:true} %}
</p>
{% endif %}
</div>
{% endblock %}
{% endif %}
{% endif %}
{% endblock %}