vendor/shopware/platform/src/Storefront/Resources/views/storefront/page/account/sidebar.html.twig line 1

Open in your IDE?
  1. {% block page_account_sidebar_inner %}
  2.     <div class="{% if not headerWidget %}account-aside{% else %}header-account-menu{% endif %}">
  3.         <div class="card account-menu-inner">
  4.             {% block page_account_sidebar_header %}
  5.                 {% if not headerWidget %}
  6.                     <div class="card-header account-aside-header">
  7.                         {{ "account.greetings"|trans|sw_sanitize }}
  8.                         {{ context.customer.title }}
  9.                         {{ context.customer.firstName }}
  10.                         {{ context.customer.lastName }}
  11.                     </div>
  12.                 {% endif %}
  13.             {% endblock %}
  14.             {% block page_account_sidebar_menu %}
  15.                 {% if not context.customer.guest %}
  16.                     <div class="list-group list-group-flush account-aside-list-group">
  17.                         {% block page_account_sidebar_menu_inner %}
  18.                             {% block page_account_sidebar_link_home %}
  19.                                 <a href="{{ path('frontend.account.home.page') }}"
  20.                                    title="{{ "account.overviewLink"|trans|striptags }}"
  21.                                    class="list-group-item list-group-item-action account-aside-item{% if activeRoute is same as('frontend.account.home.page') %} is-active{% endif %}">
  22.                                     {{ "account.overviewLink"|trans|sw_sanitize }}
  23.                                 </a>
  24.                             {% endblock %}
  25.                             {% block page_account_sidebar_link_profile %}
  26.                                 <a href="{{ path('frontend.account.profile.page') }}"
  27.                                    title="{{ "account.profileLink"|trans|striptags }}"
  28.                                    class="list-group-item list-group-item-action account-aside-item{% if activeRoute is same as('frontend.account.profile.page') %} is-active{% endif %}">
  29.                                     {{ "account.profileLink"|trans|sw_sanitize }}
  30.                                 </a>
  31.                             {% endblock %}
  32.                             {% block page_account_sidebar_link_address %}
  33.                                 <a href="{{ path('frontend.account.address.page') }}"
  34.                                    title="{{ "account.addressLink"|trans|striptags }}"
  35.                                    class="list-group-item list-group-item-action account-aside-item{% if activeRoute is same as('frontend.account.address.page') %} is-active{% endif %}">
  36.                                     {{ "account.addressLink"|trans|sw_sanitize }}
  37.                                 </a>
  38.                             {% endblock %}
  39.                             {% block page_account_sidebar_link_payment %}
  40.                                 <a href="{{ path('frontend.account.payment.page') }}"
  41.                                    title="{{ "account.paymentLink"|trans|striptags }}"
  42.                                    class="list-group-item list-group-item-action account-aside-item{% if activeRoute is same as('frontend.account.payment.page') %} is-active{% endif %}">
  43.                                     {{ "account.paymentLink"|trans|sw_sanitize }}
  44.                                 </a>
  45.                             {% endblock %}
  46.                             {% block page_account_sidebar_link_orders %}
  47.                                 <a href="{{ path('frontend.account.order.page') }}"
  48.                                    title="{{ "account.ordersLink"|trans|striptags }}"
  49.                                    class="list-group-item list-group-item-action account-aside-item{% if activeRoute is same as('frontend.account.order.page') %} is-active{% endif %}">
  50.                                     {{ "account.ordersLink"|trans|sw_sanitize }}
  51.                                 </a>
  52.                             {% endblock %}
  53.                         {% endblock %}
  54.                     </div>
  55.                 {% endif %}
  56.             {% endblock %}
  57.             {% block page_account_sidebar_footer %}
  58.                 {% if context.customer %}
  59.                     {% if not context.customer.guest %}
  60.                         <div class="card-footer account-aside-footer">
  61.                             {% block page_account_sidebar_logout %}
  62.                                 <a href="{{ path('frontend.account.logout.page') }}"
  63.                                    class="btn btn-link account-aside-btn">
  64.                                     {% sw_icon 'log-out' %}
  65.                                     {{ "account.logout"|trans|sw_sanitize }}
  66.                                 </a>
  67.                             {% endblock %}
  68.                         </div>
  69.                     {% else %}
  70.                         <div class="card-footer account-aside-footer account-guest-abort">
  71.                             {% block page_account_sidebar_guest_abort %}
  72.                                 <a href="{{ path('frontend.account.logout.page') }}"
  73.                                    data-account-guest-abort-button="true"
  74.                                    class="btn btn-link account-aside-btn">
  75.                                     {% sw_icon 'log-out' %}
  76.                                     {{ "account.guestAbort"|trans|sw_sanitize }}
  77.                                 </a>
  78.                             {% endblock %}
  79.                         </div>
  80.                     {% endif %}
  81.                 {% endif %}
  82.             {% endblock %}
  83.         </div>
  84.     </div>
  85. {% endblock %}