templates/front/customer/blocks/header.html.twig line 1

Open in your IDE?
  1. <div class="header-block block-account">
  2.     {% if customer %}
  3.         <a class="bt-account" href="{{ path('customer_account') }}">
  4.             <img src="{{ asset('img/account.svg') }}" alt="{% trans %}Bonjour{% endtrans %} {{ customer.firstname }}" width="30" height="30">
  5.             <span>
  6.                 {% trans %}Bonjour{% endtrans %}<br>
  7.                 <strong>{{ customer.firstname }}</strong>
  8.             </span>
  9.         </a>
  10.         <div class="session-context">
  11.             {% if customerMgr.isExpert() %}
  12.             {% trans %}Expert Vivog{% endtrans %}{% if customer.priceGroups|length >1 %} - <a href="{{ path('customer_context', {ctx:'VV'}) }}" class="change-context">{% trans %}Changer de profil{% endtrans %}</a>{% endif %}
  13.             {% elseif customerMgr.hasExpertContext() %}
  14.             {% trans %}Client Vivog{% endtrans %}{% if customer.priceGroups|length >1 %}  - <a href="{{ path('customer_context', {ctx:'EX'}) }}" class="change-context">{% trans %}Changer de profil{% endtrans %}</a>{% endif %}
  15.             {% endif %}
  16.         </div>
  17.         {% include 'front/customer/blocks/menu.html.twig' %}
  18.     {% else %}
  19.         <a class="bt-account" href="{{ path('customer_login') }}">
  20.             <img src="{{ asset('img/account.svg') }}" alt="{% trans %}Mon compte{% endtrans %}" width="30" height="30">
  21.             <span>
  22.             {% trans %}Identifiez-vous <br>pour voir les prix{% endtrans %}
  23.             </span>
  24.         </a>
  25.     {%  endif  %}
  26. </div>