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

Open in your IDE?
  1. {% sw_extends '@Storefront/storefront/utilities/offcanvas.html.twig' %}
  2. {% block utilities_offcanvas_close %}
  3.     <button class="btn btn-block offcanvas-close js-offcanvas-close sticky-top">
  4.         {% block utilities_offcanvas_close_icon %}
  5.             {% sw_icon 'x' style { 'size': 'md' } %}
  6.             {# logo #}
  7.             {% if context.customer and context.customer.groupId == doncarneConfig.beefClubCustomerGroup %}
  8.                 {% if theme_config('sw-logo-mobile-beefclub') %}
  9.                     <img src="{{ theme_config('sw-logo-mobile-beefclub') |sw_encode_url }}"
  10.                         alt="{{ "header.logoLink"|trans|striptags }}"
  11.                         class="img-fluid header-logo-main-img offcanvas-mobile-header-logo"/>
  12.                 {% else %}
  13.                     <img src="{{ theme_config('sw-logo-mobile') |sw_encode_url }}"
  14.                         alt="{{ "header.logoLink"|trans|striptags }}"
  15.                         class="img-fluid header-logo-main-img offcanvas-mobile-header-logo"/>
  16.                 {% endif %}
  17.             {% else %}
  18.                 <img src="{{ theme_config('sw-logo-mobile') |sw_encode_url }}"
  19.                     alt="{{ "header.logoLink"|trans|striptags }}"
  20.                     class="img-fluid header-logo-main-img offcanvas-mobile-header-logo"/>
  21.             {% endif %}
  22.         {% endblock %}
  23.         {% block utilities_offcanvas_close_text %}
  24.         {% endblock %}
  25.     </button>
  26. {% endblock %}