vendor/shopware/storefront/Resources/views/storefront/layout/header/account-menu.html.twig line 1

  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.                     {% block layout_header_actions_account_widget_dropdown_login_login %}
  15.                         <a href="{{ path('frontend.account.login.page') }}"
  16.                            title="{{ "account.loginSubmit"|trans|striptags }}"
  17.                            class="btn btn-primary account-menu-login-button">
  18.                             {{ "account.loginSubmit"|trans|sw_sanitize }}
  19.                         </a>
  20.                     {% endblock %}
  21.                     {% block layout_header_actions_account_widget_dropdown_login_register %}
  22.                         <div class="account-menu-register">
  23.                             {{ "account.orRegister"|trans|sw_sanitize }} <a href="{{ path('frontend.account.login.page') }}"
  24.                                                                             title="{{ "account.orRegisterLink"|trans|striptags }}">{{ "account.orRegisterLink"|trans|striptags|lower }}</a>
  25.                         </div>
  26.                     {% endblock %}
  27.                 </div>
  28.             {% endif %}
  29.         {% endblock %}
  30.         {% block layout_header_actions_account_widget_dropdown_links %}
  31.             <div class="account-menu-links">
  32.                 {% sw_include '@Storefront/storefront/page/account/sidebar.html.twig' with {'headerWidget': true} %}
  33.             </div>
  34.         {% endblock %}
  35.     </div>
  36. {% endblock %}