{% sw_extends '@Storefront/storefront/layout/header/header.html.twig' %}
{% block layout_header_navigation_toggle_tablet_button %}
{% set mobileMenuConfig = {
"showStickySiteHeader" : config('CogiMobileMenu.config.showStickySiteHeader'),
"menuWidthPercent": config('CogiMobileMenu.config.menuWidthPercent')
} %}
<button class="btn nav-main-toggle-btn header-actions-btn"
type="button"
data-offcanvas-menu="true"
data-offcanvas-menu-options='{{ mobileMenuConfig|json_encode }}'
aria-label="{{ "general.menuLink"|trans|striptags }}">
{% block layout_header_navigation_toggle_tablet_button_icon %}
{% sw_icon 'stack' style { 'class': 'open' }%}
{% sw_icon 'x' style { 'class': 'close d-none' } %}
{% endblock %}
</button>
{% endblock %}
{% block layout_header_navigation_toggle_button %}
{% set mobileMenuConfig = {
"showStickySiteHeader" : config('CogiMobileMenu.config.showStickySiteHeader'),
"menuWidthPercent": config('CogiMobileMenu.config.menuWidthPercent')
} %}
<button class="btn nav-main-toggle-btn header-actions-btn"
type="button"
data-offcanvas-menu="true"
data-offcanvas-menu-options='{{ mobileMenuConfig|json_encode }}'
aria-label="{{ "general.menuLink"|trans|striptags }}">
{% block layout_header_navigation_toggle_button_icon %}
{% sw_icon 'stack' style { 'class': 'open' }%}
{% sw_icon 'x' style { 'class': 'close d-none' } %}
{% endblock %}
</button>
{% endblock %}
{% block layout_header_search_toggle %}
{% if config('CogiMobileMenu.config.hideDefaultSearch') %}
<div class="d-none d-sm-block">
{% endif %}
{{ parent() }}
{% if config('CogiMobileMenu.config.hideDefaultSearch') %}
</div>
{% endif %}
{% endblock %}