custom/plugins/theme/src/Resources/views/storefront/page/account/sidebar.html.twig line 1

Open in your IDE?
  1. {% sw_extends '@Storefront/storefront/page/account/sidebar.html.twig' %}
  2. {% block page_account_sidebar_header %}
  3.     {% if not headerWidget %}
  4.         <div class="card-header account-aside-header">
  5.             {{ "account.greetings"|trans|sw_sanitize }}
  6.             {{ context.customer.title }}
  7.             {{ context.customer.firstName }}
  8.             {{ context.customer.lastName }}
  9.         </div>
  10.     {% endif %}
  11. {% endblock %}
  12. {% block page_account_sidebar_menu_inner %}
  13.     {{ parent() }}
  14.     {% block page_account_sidebar_beefclub %}
  15.             <a
  16.                     href="{{ path('frontend.beefclub.membership') }}"
  17.                     title="{{ "beefClub.account.side-bar.title"|trans|striptags }}"
  18.                     class="list-group-item list-group-item-action account-aside-item{% if controllerName is same as('AccountBeefClubController') and controllerAction is same as('listAction') %} is-active{% endif %}"
  19.             >
  20.                 {{ "beefClub.account.side-bar.title"|trans|sw_sanitize }}
  21.             </a>
  22.     {% endblock %}
  23. {% endblock %}
  24. {% block page_account_sidebar_logout %}
  25.     <a href="{{ path('frontend.account.logout.page') }}"
  26.         class="btn btn-block btn-sm btn-primary account-aside-btn"
  27.         id="logoutButton">
  28.         {{ "account.logout"|trans|sw_sanitize }}
  29.     </a>
  30. {% endblock %}
  31. {% block page_account_sidebar_guest_abort %}
  32.     <a href="{{ path('frontend.account.logout.page') }}"
  33.         data-account-guest-abort-button="true"
  34.         class="btn btn-link account-aside-btn"
  35.         id="logoutButton">
  36.         {% sw_icon 'log-out' %}
  37.         {{ "account.guestAbort"|trans|sw_sanitize }}
  38.     </a>
  39. {% endblock %}