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

Open in your IDE?
  1. {#
  2.     @deprecated tag:v6.5.0 - Announcement:
  3.     Bootstrap v5 comes with its own OffCanvas component.
  4.     This template will be adjusted to use Bootstraps OffCanvas markup.
  5.     @see https://getbootstrap.com/docs/5.1/components/offcanvas
  6. #}
  7. {% set isAjaxOffcanvas = false %}
  8. {% block utilities_offcanvas_meta %}
  9.     {# only including this for robots to have appropriate meta tags and when offcanvas is loaded via ajax #}
  10.     {% if not app.request.xmlHttpRequest and isAjaxOffcanvas %}
  11.         {% sw_include '@Storefront/storefront/layout/meta.html.twig' %}
  12.     {% endif %}
  13. {% endblock %}
  14. {% block utilities_offcanvas %}
  15.     {# @deprecated tag:v6.5.0 - Bootstrap v5 adds `.offcanvas-header` wrapper #}
  16.     {% if feature('v6.5.0.0') %}
  17.         {% block utilities_offcanvas_header %}
  18.             <div class="offcanvas-header p-0">
  19.                 {% block utilities_offcanvas_close %}
  20.                     {# @deprecated tag:v6.5.0 - Bootstrap v5 will not require classes `.btn-block .sticky-top`. Only `.offcanvas-body` will be scrollable #}
  21.                     <button style="background:#27282c !important" class="btn offcanvas-close js-offcanvas-close{% if not feature('v6.5.0.0') %} btn-block sticky-top{% endif %}">
  22.                         {# {% block utilities_offcanvas_close_icon %}
  23.                             {% sw_icon 'x' style { 'size': 'sm' } %}
  24.                            
  25.                         {% endblock %} #}
  26.                         <div style="display: inline-flex;align-items: center; margin: 0 auto;">
  27.                             <div style="border:1px solid white;border-radius:25px; width: 45px;height: 45px;
  28.                             text-align:center; padding-top:2px; margin-right:10px"> 
  29.                             <svg version="1.0" xmlns="http://www.w3.org/2000/svg" width="15pt" height="15pt" viewBox="0 0 59.000000 59.000000" preserveAspectRatio="xMidYMid meet">
  30.                                 <g transform="translate(0.000000,59.000000) scale(0.100000,-0.100000)" fill="white" stroke="none">
  31.                                 <path d="M42 528 c-7 -7 -12 -17 -12 -23 0 -6 36 -46 79 -89 80 -79 103 -89
  32.                                 118 -50 4 11 -18 40 -73 95 -43 43 -83 79 -89 79 -6 0 -16 -5 -23 -12z"></path>
  33.                                 <path d="M252 307 c-127 -129 -232 -241 -232 -249 0 -19 20 -38 40 -38 8 0 62
  34.                                 47 120 105 l105 105 105 -105 c104 -104 124 -117 148 -93 24 24 10 45 -93 148
  35.                                 l-105 105 107 107 c92 92 106 111 97 126 -6 9 -22 18 -35 20 -20 2 -67 -40
  36.                                 -257 -231z"></path>
  37.                                 </g>
  38.                                 </svg>
  39.                             </div><span style="font-size:10px; color:white !important; font-weight:bold;"> SCHLIEBEN</span>
  40.                         </div>
  41.                         {# {% block utilities_offcanvas_close_text %}
  42.                             {{ "general.offcanvasCloseMenu"|trans|sw_sanitize }}
  43.                            
  44.                         {% endblock %} #}
  45.                     </button>
  46.                 {% endblock %}
  47.             </div>
  48.         {% endblock %}
  49.     {% else %}
  50.         {{ block('utilities_offcanvas_close') }}
  51.     {% endif %}
  52.     {% block utilities_offcanvas_content_container %}
  53.         {# @deprecated tag:v6.5.0 - Bootstrap v5 will use class `.offcanvas-body` to wrap the offcanvas content #}
  54.         <div class="offcanvas-container-main" style="margin-left: auto; margin-right: auto; max-width: 1400px !important;">
  55.         <div class="{% if feature('v6.5.0.0') %}offcanvas-body{% else %}offcanvas-content-container{% endif %}">
  56.             {% block utilities_offcanvas_content %}{% endblock %}
  57.         </div>         
  58.         </div>         
  59.     {% endblock %}
  60. {% endblock %}