vendor/shopware/platform/src/Storefront/Resources/views/storefront/utilities/offcanvas.html.twig line 1

Open in your IDE?
  1. {% set isAjaxOffcanvas = false %}
  2. {% block utilities_offcanvas_meta %}
  3.     {# only including this for robots to have appropriate meta tags and when offcanvas is loaded via ajax #}
  4.     {% if not app.request.xmlHttpRequest and isAjaxOffcanvas %}
  5.         {% sw_include '@Storefront/storefront/layout/meta.html.twig' %}
  6.     {% endif %}
  7. {% endblock %}
  8. {% block utilities_offcanvas %}
  9.     {% block utilities_offcanvas_close %}
  10.         <button class="btn btn-light btn-block offcanvas-close js-offcanvas-close sticky-top">
  11.             {% block utilities_offcanvas_close_icon %}
  12.                 {% sw_icon 'x' style { 'size': 'sm' } %}
  13.             {% endblock %}
  14.             {% block utilities_offcanvas_close_text %}
  15.                 {{ "general.offcanvasCloseMenu"|trans|sw_sanitize }}
  16.             {% endblock %}
  17.         </button>
  18.     {% endblock %}
  19.     {% block utilities_offcanvas_content_container %}
  20.         <div class="offcanvas-content-container">
  21.             {% block utilities_offcanvas_content %}{% endblock %}
  22.         </div>
  23.     {% endblock %}
  24. {% endblock %}