custom/plugins/KayloBasicTheme/src/Resources/views/storefront/layout/header/account-menu.html.twig line 1

Open in your IDE?
  1. {% sw_extends '@Storefront/storefront/utilities/offcanvas.html.twig' %}
  2. {% block utilities_offcanvas_content %}
  3.     <div class="account-menu">
  4.         {% block layout_header_actions_account_widget_dropdown_header %}
  5.             {% if not context.customer.guest %}
  6.                 <div class="dropdown-header account-menu-header">
  7.                     {{ "account.myAccount"|trans|sw_sanitize }}
  8.                 </div>
  9.             {% endif %}
  10.         {% endblock %}
  11.         {% block layout_header_actions_account_widget_dropdown_login %}
  12.             {% if not context.customer %}
  13.                 <div class="account-menu-login">
  14.                     <a href="{{ path('frontend.account.login.page') }}"
  15.                        title="{{ "account.loginSubmit"|trans|striptags }}"
  16.                        class="btn btn-primary account-menu-login-button">
  17.                         {{ "account.loginSubmit"|trans|sw_sanitize }}
  18.                     </a>
  19.                     <div class="account-menu-register">
  20.                         {{ "account.orRegister"|trans|sw_sanitize }} <a href="{{ path('frontend.account.login.page') }}"
  21.                                                             title="{{ "account.orRegisterLink"|trans|striptags }}">{{ "account.orRegisterLink"|trans|striptags }}</a>
  22.                     </div>
  23.                 </div>
  24.             {% endif %}
  25.         {% endblock %}
  26.         {% block layout_header_actions_account_widget_dropdown_links %}
  27.             <div class="account-menu-links">
  28.                 {% sw_include '@Storefront/storefront/page/account/sidebar.html.twig' with {'headerWidget': true} %}
  29.             </div>
  30.         {% endblock %}
  31.     </div>
  32. {% endblock %}