{#
@deprecated tag:v6.5.0 - Announcement:
Bootstrap v5 comes with its own OffCanvas component.
This template will be adjusted to use Bootstraps OffCanvas markup.
@see https://getbootstrap.com/docs/5.1/components/offcanvas
#}
{% set isAjaxOffcanvas = false %}
{% block utilities_offcanvas_meta %}
{# only including this for robots to have appropriate meta tags and when offcanvas is loaded via ajax #}
{% if not app.request.xmlHttpRequest and isAjaxOffcanvas %}
{% sw_include '@Storefront/storefront/layout/meta.html.twig' %}
{% endif %}
{% endblock %}
{% block utilities_offcanvas %}
{% block utilities_offcanvas_close %}
<button class="btn btn-light btn-block offcanvas-close js-offcanvas-close sticky-top">
{% block utilities_offcanvas_close_icon %}
{% sw_icon 'x' style { 'size': 'sm' } %}
{% endblock %}
{% block utilities_offcanvas_close_text %}
{{ "general.offcanvasCloseMenu"|trans|sw_sanitize }}
{% endblock %}
</button>
{% endblock %}
{% block utilities_offcanvas_content_container %}
<div class="offcanvas-content-container">
{% block utilities_offcanvas_content %}{% endblock %}
</div>
{% endblock %}
{% endblock %}