custom/plugins/ZOGIcustom/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.                     
  12.    {% if  context.customer.GroupID =='627cf61efef04a5799a3526387475c5d' %}
  13.                 <div class="zogiaccountinfo">
  14.                     {% sw_include '@Storefront/storefront/utilities/alert.html.twig' with {
  15.                         type: 'info',
  16.                         content: 'zogi.accountInfo'|trans({'%group%': context.CurrentCustomerGroup.translated.name})
  17.                     } %}
  18.                 </div>
  19.             {% endif %}
  20.                 
  21.                     </div>
  22.                     
  23.                     
  24.                     
  25.                 {% endif %}
  26.             {% endblock %}
  27.             {% block page_account_sidebar_menu %}
  28.                 {% if not context.customer.guest %}
  29.                     <div class="list-group list-group-flush account-aside-list-group">
  30.                         {% block page_account_sidebar_menu_inner %}
  31.                             {% block page_account_sidebar_link_home %}
  32.                                 <a href="{{ path('frontend.account.home.page') }}"
  33.                                    title="{{ "account.overviewLink"|trans|striptags }}"
  34.                                    class="list-group-item list-group-item-action account-aside-item{% if activeRoute is same as('frontend.account.home.page') %} is-active{% endif %}">
  35.                                     {{ "account.overviewLink"|trans|sw_sanitize }}
  36.                                 </a>
  37.                             {% endblock %}
  38.                             {% block page_account_sidebar_link_profile %}
  39.                                 <a href="{{ path('frontend.account.profile.page') }}"
  40.                                    title="{{ "account.profileLink"|trans|striptags }}"
  41.                                    class="list-group-item list-group-item-action account-aside-item{% if activeRoute is same as('frontend.account.profile.page') %} is-active{% endif %}">
  42.                                     {{ "account.profileLink"|trans|sw_sanitize }}
  43.                                 </a>
  44.                             {% endblock %}
  45.                             {% block page_account_sidebar_link_address %}
  46.                                 <a href="{{ path('frontend.account.address.page') }}"
  47.                                    title="{{ "account.addressLink"|trans|striptags }}"
  48.                                    class="list-group-item list-group-item-action account-aside-item{% if activeRoute is same as('frontend.account.address.page') %} is-active{% endif %}">
  49.                                     {{ "account.addressLink"|trans|sw_sanitize }}
  50.                                 </a>
  51.                             {% endblock %}
  52.                             {% block page_account_sidebar_link_payment %}
  53.                                 <a href="{{ path('frontend.account.payment.page') }}"
  54.                                    title="{{ "account.paymentLink"|trans|striptags }}"
  55.                                    class="list-group-item list-group-item-action account-aside-item{% if activeRoute is same as('frontend.account.payment.page') %} is-active{% endif %}">
  56.                                     {{ "account.paymentLink"|trans|sw_sanitize }}
  57.                                 </a>
  58.                             {% endblock %}
  59.                             {% block page_account_sidebar_link_orders %}
  60.                                 <a href="{{ path('frontend.account.order.page') }}"
  61.                                    title="{{ "account.ordersLink"|trans|striptags }}"
  62.                                    class="list-group-item list-group-item-action account-aside-item{% if activeRoute is same as('frontend.account.order.page') %} is-active{% endif %}">
  63.                                     {{ "account.ordersLink"|trans|sw_sanitize }}
  64.                                 </a>
  65.                             {% endblock %}
  66.                         {% endblock %}
  67.                     </div>
  68.                 {% endif %}
  69.             {% endblock %}
  70.             {% block page_account_sidebar_footer %}
  71.                 {% if context.customer %}
  72.                     {% if not context.customer.guest %}
  73.                         <div class="card-footer account-aside-footer">
  74.                             {% block page_account_sidebar_logout %}
  75.                                 <a href="{{ path('frontend.account.logout.page') }}"
  76.                                    class="btn btn-link account-aside-btn">
  77.                                     {% sw_icon 'log-out' %}
  78.                                     {{ "account.logout"|trans|sw_sanitize }}
  79.                                 </a>
  80.                             {% endblock %}
  81.                         </div>
  82.                     {% else %}
  83.                         <div class="card-footer account-aside-footer account-guest-abort">
  84.                             {% block page_account_sidebar_guest_abort %}
  85.                                 <a href="{{ path('frontend.account.logout.page') }}"
  86.                                    data-account-guest-abort-button="true"
  87.                                    class="btn btn-link account-aside-btn">
  88.                                     {% sw_icon 'log-out' %}
  89.                                     {{ "account.guestAbort"|trans|sw_sanitize }}
  90.                                 </a>
  91.                             {% endblock %}
  92.                         </div>
  93.                     {% endif %}
  94.                 {% endif %}
  95.             {% endblock %}
  96.         </div>
  97.     </div>
  98. {% endblock %}