custom/plugins/AlessiaMassimo/src/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 context.customer %}
  16.         {% if not context.customer.guest %}
  17.           <div class="list-group list-group-flush account-aside-list-group">
  18.             {% block page_account_sidebar_menu_inner %}
  19.               {% block page_account_sidebar_link_home %}
  20.                 <a href="{{ path('frontend.account.home.page') }}"
  21.                    title="{{ "account.overviewLink"|trans|striptags }}"
  22.                    class="list-group-item list-group-item-action account-aside-item{% if activeRoute is same as('frontend.account.home.page') %} is-active{% endif %}">
  23.                   {{ "account.overviewLink"|trans|sw_sanitize }}
  24.                 </a>
  25.               {% endblock %}
  26.               {% block page_account_sidebar_link_profile %}
  27.                 <a href="{{ path('frontend.account.profile.page') }}"
  28.                    title="{{ "account.profileLink"|trans|striptags }}"
  29.                    class="list-group-item list-group-item-action account-aside-item{% if activeRoute is same as('frontend.account.profile.page') %} is-active{% endif %}">
  30.                   {{ "account.profileLink"|trans|sw_sanitize }}
  31.                 </a>
  32.               {% endblock %}
  33.               {% block page_account_sidebar_link_address %}
  34.                 <a href="{{ path('frontend.account.address.page') }}"
  35.                    title="{{ "account.addressLink"|trans|striptags }}"
  36.                    class="list-group-item list-group-item-action account-aside-item{% if activeRoute is same as('frontend.account.address.page') %} is-active{% endif %}">
  37.                   {{ "account.addressLink"|trans|sw_sanitize }}
  38.                 </a>
  39.               {% endblock %}
  40.               {% block page_account_sidebar_link_payment %}
  41.                 <a href="{{ path('frontend.account.payment.page') }}"
  42.                    title="{{ "account.paymentLink"|trans|striptags }}"
  43.                    class="list-group-item list-group-item-action account-aside-item{% if activeRoute is same as('frontend.account.payment.page') %} is-active{% endif %}">
  44.                   {{ "account.paymentLink"|trans|sw_sanitize }}
  45.                 </a>
  46.               {% endblock %}
  47.               {% block page_account_sidebar_link_orders %}
  48.                 <a href="{{ path('frontend.account.order.page') }}"
  49.                    title="{{ "account.ordersLink"|trans|striptags }}"
  50.                    class="list-group-item list-group-item-action account-aside-item{% if activeRoute is same as('frontend.account.order.page') %} is-active{% endif %}">
  51.                   {{ "account.ordersLink"|trans|sw_sanitize }}
  52.                 </a>
  53.               {% endblock %}
  54.             {% endblock %}
  55.           </div>
  56.         {% endif %}
  57.         {% endif %}
  58.       {% endblock %}
  59.       {% block page_account_sidebar_footer %}
  60.         {% if context.customer %}
  61.           {% if not context.customer.guest %}
  62.             <div class="card-footer account-aside-footer">
  63.               {% block page_account_sidebar_logout %}
  64.                 <a href="{{ path('frontend.account.logout.page') }}"
  65.                    class="btn btn-link account-aside-btn">
  66.                   {% sw_icon 'log-out' %}
  67.                   {{ "account.logout"|trans|sw_sanitize }}
  68.                 </a>
  69.               {% endblock %}
  70.             </div>
  71.           {% else %}
  72.             <div class="card-footer account-aside-footer account-guest-abort">
  73.               {% block page_account_sidebar_guest_abort %}
  74.                 <a href="{{ path('frontend.account.logout.page') }}"
  75.                    data-account-guest-abort-button="true"
  76.                    class="btn btn-link account-aside-btn">
  77.                   {% sw_icon 'log-out' %}
  78.                   {{ "account.guestAbort"|trans|sw_sanitize }}
  79.                 </a>
  80.               {% endblock %}
  81.             </div>
  82.           {% endif %}
  83.         {% endif %}
  84.       {% endblock %}
  85.     </div>
  86.   </div>
  87. {% endblock %}