custom/plugins/Wingsacademy/src/Resources/views/storefront/utilities/offcanvas.html.twig line 1

Open in your IDE?
  1. {% sw_extends '@Storefront/storefront/utilities/offcanvas.html.twig' %}
  2. {% set isAjaxOffcanvas = false %}
  3. {% block utilities_offcanvas_meta %}
  4.     {# only including this for robots to have appropriate meta tags and when offcanvas is loaded via ajax #}
  5.     {% if not app.request.xmlHttpRequest and isAjaxOffcanvas %}
  6.         {% sw_include '@Storefront/storefront/layout/meta.html.twig' %}
  7.     {% endif %}
  8. {% endblock %}
  9. {% block utilities_offcanvas %}
  10.     {# @deprecated tag:v6.5.0 - Bootstrap v5 adds `.offcanvas-header` wrapper #}
  11.     {% if feature('v6.5.0.0') %}
  12.         {% block utilities_offcanvas_header %}
  13.             <div class="offcanvas-header p-0">
  14.                 {% block utilities_offcanvas_close %}
  15.                     {# @deprecated tag:v6.5.0 - Bootstrap v5 will not require classes `.btn-block .sticky-top`. Only `.offcanvas-body` will be scrollable #}
  16.                     <button class="btn btn-light offcanvas-close js-offcanvas-close{% if not feature('v6.5.0.0') %} btn-block sticky-top{% endif %}">
  17.                         {% block utilities_offcanvas_close_icon %}
  18.                             {% sw_icon 'arrow-medium-left' style {'pack':'solid' } %}
  19.                         {% endblock %}
  20.                         {% block utilities_offcanvas_close_text %}
  21.                             {% if product %}
  22.                                 Zurück zu "{{product.name}}"
  23.                             {% else %}
  24.                                 {{ "general.offcanvasCloseMenu"|trans|sw_sanitize }}
  25.                             {% endif %}
  26.                         {% endblock %}
  27.                     </button>
  28.                 {% endblock %}
  29.             </div>
  30.         {% endblock %}
  31.     {% else %}
  32.         {{ block('utilities_offcanvas_close') }}
  33.     {% endif %}
  34.     {% block utilities_offcanvas_content_container %}
  35.         {# @deprecated tag:v6.5.0 - Bootstrap v5 will use class `.offcanvas-body` to wrap the offcanvas content #}
  36.         <div class="{% if feature('v6.5.0.0') %}offcanvas-body{% else %}offcanvas-content-container{% endif %}">
  37.             {% block utilities_offcanvas_content %}{% endblock %}
  38.         </div>
  39.     {% endblock %}
  40. {% endblock %}