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

Open in your IDE?
  1. {% sw_extends '@Storefront/storefront/layout/header/account-menu.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 context.customer %}
  13. {#        TODO Not sure why there are two logout buttons in the menu,
  14.                one here and one in page/account/sidebar.html.twig #}
  15. {#        <wyn-button#}
  16. {#          variant="primary"#}
  17. {#          size="small"#}
  18. {#          href="{{ path('frontend.account.logout.page') }}"#}
  19. {#          {% if context.customer.guest %}#}
  20. {#            data-account-guest-abort-button="true"#}
  21. {#          {% endif %}#}
  22. {#          class="account-logout-button"#}
  23. {#        >#}
  24. {#          {% sw_icon 'log-out' style { 'slotAttr': 'icon' } %}#}
  25. {#          {% if context.customer.guest %}#}
  26. {#            {{ "account.guestAbort"|trans|sw_sanitize }}#}
  27. {#          {% else %}#}
  28. {#            {{ "account.logout"|trans|sw_sanitize }}#}
  29. {#          {% endif %}#}
  30. {#        </wyn-button>#}
  31.       {% else %}
  32.         <wyn-button
  33.           variant="primary"
  34.           href="{{ path('frontend.account.login.page') }}"
  35.           title="{{ "account.loginSubmit"|trans|striptags }}"
  36.           class="account-menu-login-button"
  37.         >
  38.           {{ "account.loginSubmit"|trans|sw_sanitize }}
  39.         </wyn-button>
  40.         <wyn-button
  41.           variant="secondary"
  42.           href="{{ path('frontend.account.login.page') }}"
  43.           title="{{ "account.orRegisterLink"|trans|striptags }}"
  44.           class="account-menu-register-button"
  45.         >
  46.           {{ "account.orRegisterLink"|trans|striptags }}
  47.         </wyn-button>
  48.       {% endif %}
  49.     {% endblock %}
  50.     {% block layout_header_actions_account_widget_dropdown_links %}
  51.       <div class="account-menu-links">
  52.         {% sw_include '@Storefront/storefront/page/account/sidebar.html.twig' with {'headerWidget': true} %}
  53.       </div>
  54.     {% endblock %}
  55.   </div>
  56. {% endblock %}