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

  1. {#
  2.     This template uses Bootstraps OffCanvas markup.
  3.     @see https://getbootstrap.com/docs/5.2/components/offcanvas
  4. #}
  5. {% set isAjaxOffcanvas = false %}
  6. {% block utilities_offcanvas_meta %}
  7.     {# only including this for robots to have appropriate meta tags and when offcanvas is loaded via ajax #}
  8.     {% if not app.request.xmlHttpRequest and isAjaxOffcanvas %}
  9.         {% sw_include '@Storefront/storefront/layout/meta.html.twig' %}
  10.     {% endif %}
  11. {% endblock %}
  12. {% block utilities_offcanvas %}
  13.     {% block utilities_offcanvas_header %}
  14.         <div class="offcanvas-header p-0">
  15.             {% block utilities_offcanvas_close %}
  16.                 <button class="btn btn-light offcanvas-close js-offcanvas-close">
  17.                     {% block utilities_offcanvas_close_icon %}
  18.                         {% sw_icon 'x' style { 'size': 'sm' } %}
  19.                     {% endblock %}
  20.                     {% block utilities_offcanvas_close_text %}
  21.                         {{ "general.offcanvasCloseMenu"|trans|sw_sanitize }}
  22.                     {% endblock %}
  23.                 </button>
  24.             {% endblock %}
  25.         </div>
  26.     {% endblock %}
  27.     {% block utilities_offcanvas_content_container %}
  28.         <div class="offcanvas-body">
  29.             {% block utilities_offcanvas_content %}{% endblock %}
  30.         </div>
  31.     {% endblock %}
  32. {% endblock %}