{# Affichage du menu COMPTE et PANIER si le site est un eCommerce #}
{% if is_granted('IS_AUTHENTICATED_FULLY') %}
<li class="nav-item dropdown m-0 p-0 col navMere dontHaveChilds{% if app.session.get('customer') is empty %} disconnect{% endif %}">
<a href="javascript:void(0);" onclick="toggleBasketPanel();addToBasket(0,0);"
style="position: relative;"
id="openBasketPanel"
class="imgLien ssTxt panier {% if product is defined %}isProd{% endif %}">
{% if totalCountBasket > 0 %}
<div class="redRound">
<span class="nbBall">{{ totalCountBasket }}</span>
</div>
{% endif %}
</a>
</li>
{% endif %}
<li class="nav-item dropdown m-0 p-0 col navMere dontHaveChilds{% if is_granted('IS_AUTHENTICATED_FULLY') %} disconnect{% endif %} account">
{% if is_granted('IS_AUTHENTICATED_FULLY') %}
<a href="{{ path('front_customer_account') }}"
class="imgLien ssTxt util {% if product is defined %}isProd{% endif %}"><span></span>
{% set nbMess = 0 %}
{% for mess in unreadMessages %}
{% set nbMess = nbMess +1 %}
{% endfor %}
{% if nbMess > 0 %}
<span class="nbBall">
{{ nbMess }}
</span>
{% endif %}
</a>
{% else %}
<a href="{{ path('front_app_login') }}"
class="imgLien ssTxt util {% if product is defined %}isProd{% endif %}"><span></span></a>
{% endif %}
</li>
{% if is_granted('IS_AUTHENTICATED_FULLY') %}
<li class="nav-item dropdown m-0 p-0 col navMere dontHaveChilds deconnect">
<a class="imgLien ssTxt deconnect"
href='{{ path('front_app_logout') }}'>
<span> </span>
</a>
</li>
{% endif %}