<!-- Menu deroulant -->
<div class="menu-deroulant grid-container tab-l-hide tab-p-hide m-hide">
{% if type == 'private' %}
<div class="grid-50">
{% include 'frontend/cms_menu.html.twig' with {'root': 'b2c'} %}
</div>
<div class="grid-30 tab-p-50">
<ul class="clearfix">
<li><a href="{{ path('live_portal_next_sales') }}" title=""><i class="icon-menu-live"></i><span>{{ 'frontend.header.navigation.live'|trans }}</span></a></li>
{% if is_current_country(constant('App\\Twig\\Extension\\CountryExtension::COUNTRY_FRANCE')) %}
<li><a href="{{ sell_my_auto_url }}" target="_blank" title=""><i class="icon-menu-vendre"></i><span>{{ 'frontend.header.navigation.saleAuto'|trans }}</span></a></li>
{% endif %}
<li><span class="obflink" role="link" data-o="{{ base64_encode(path('frontend_vehicle_list')) }}" title=""><i class="icon-menu-rechercher"></i><span>{{ 'frontend.header.navigation.globalSearch'|trans }}</span></span></li>
<li><a href="{{ path('frontend_client_opinion') }}" title=""><i class="icon-menu-avis"></i><span>{{ 'frontend.header.navigation.reviews'|trans }}</span></a></li>
</ul>
</div>
<div class="grid-20 tab-p-50">
<ul class="clearfix">
<li><a href="{{ path('frontend_contact') }}" class="lien08" title=""><i class="icon-service-clt"></i> {{ 'frontend.header.customer_service'|trans }}</a></li>
<li><a href="{{ path('frontend_cgv_country', {'country': 'fr'}) }}" class="header_link" title="">{{ 'frontend.header.navigation.ConditionsSale'|trans }}</a></li>
</ul>
</div>
{% elseif type == 'pro' %}
<div class="pro">
{% if not(is_current_website('ecat'))%}
{% include 'frontend/cms_menu.html.twig' with {'root': 'b2b'} %}
{% else %}
{% include 'frontend/cms_menu.html.twig' with {'root': 'b2becat'} %}
{% endif %}
</div>
{% endif %}
</div>
<!-- END Menu deroulant -->
<!-- Menu deroulant mobile -->
<div class="tab-menu-deroulant {% if app.user is null %}user-logout{% endif %}">
<div class="grid-container">
<div class="grid-70">{% if type == 'private' %}<a href="{{ path('frontend_vehicle_list') }}" title="" class="btn-rechercher"><i class="icon-menu-rechercher"></i><span>{{ 'frontend.header.navigation.globalSearch'|trans }}</span></a>{% else %} {% endif %}</div>
<div class="grid-30 txtright">
<span class="bt-close tab-close-menu-deroulant tab-l-visible tab-p-visible m-hide">
<span class="lignes">
<span class="ligne1"></span>
<span class="ligne2"></span>
<span class="ligne3"></span>
</span>
</span>
<span class="bt-close m-close-menu-deroulant tab-l-hide tab-p-hide m-visible">
<span class="lignes">
<span class="ligne1"></span>
<span class="ligne2"></span>
<span class="ligne3"></span>
</span>
</span>
</div>
</div>
{% if not app.user or not is_granted('IS_AUTHENTICATED_REMEMBERED') %}
{% include 'login.html.twig' %}
{% endif %}
{% if type == 'private' %}
<div class="menuhaut tab-menuhaut clearfix prelative border01">
<ul>
{% if app.user is not null and is_granted('IS_AUTHENTICATED_REMEMBERED') %}
<li class="grid-100"><a href="{{ path('fos_user_profile_edit') }}" title="">{{ 'frontend.profile.edit'|trans }}</a></li>
<li class="grid-100"><a href="{{ path('fos_user_security_logout') }}" title="">{{ 'frontend.profile.logout'|trans }}</a></li>
{% else %}
<li class="grid-100 u-login u-modal"><a href="#" title="">{{ 'frontend.profile.login'|trans }}</a></li>
<li class="grid-100"><a href="{{ path('registration_step') }}">{{ 'frontend.profile.create'|trans }}</a></li>
{% endif %}
<li class="grid-40 btn-pro"><a href="{{ path('homepage_pro') }}" title="">{{ "frontend.header.button.pro"|trans }}</a></li>
<li class="grid-60">
<p><i class="icon-menu-tel"></i> {% include 'Frontend/user/_tel_customer_service.html.twig' %}</p>
</li>
{% if not (is_current_website('showvroom')) %}
<li class="mobile-langue">
<span class="tab-langue cursor txt-langue">
<i class="icon-flag-{{ current_country }}"></i>
<span class="fleche">
<span class="ligne1"></span>
<span class="ligne2"></span>
</span>
</span>
{{ country_switcher }}
</li>
{% endif %}
</ul>
</div>
{% elseif type == 'pro' %}
<div class="pro menuhaut tab-menuhaut clearfix prelative border01">
<ul>
{% if app.user is not null and is_granted('IS_AUTHENTICATED_REMEMBERED') %}
{% if is_granted('ROLE_PREVIOUS_ADMIN') %}
<li class="grid-100 inscription"><a href="{{ path('backend_user_view', {'id': app.user.id, '_switch_user': '_exit'})}}" title="">{{ 'frontend.switch.user.exit'|trans }}</a></li>
{% endif %}
{% else %}
<li class="grid-100 connexion"><a href="{{ getADUrl() }}" title="" class="connexion">{{ "frontend.header.pro.link.sign_in"|trans }}</a></li>
<li class="grid-100 inscription"><a href="{{ getADUrl() }}" title="" class="inscription">{{ "frontend.header.pro.link.register"|trans }}</a></li>
{% endif %}
{% if app.user is null %}
<li class="grid-40 btn-particulier">
{% if is_current_country(constant('App\\Twig\\Extension\\CountryExtension::COUNTRY_FRANCE')) %}
<a href="{{ path('homepage', {'_locale': default_locale}) }}" title="">{{ app.request.getHost }}</a>
{% else %} {% endif %}
</li>
<li class="grid-60 tel"><i class="icon-menu-tel"></i> {% include '/Frontend/pro/_tel_contact.html.twig' %}</li>
{% endif %}
{% if not (is_current_website('showvroom')) %}
<li class="mobile-langue">
<span class="tab-langue cursor txt-langue">
<i class="icon-flag-{{ current_country }}"></i>
<span class="fleche">
<span class="ligne1"></span>
<span class="ligne2"></span>
</span>
</span>
{{ country_switcher }}
</li>
{% endif %}
</ul>
</div>
{% endif %}
{% if app.user is not null and is_granted('IS_AUTHENTICATED_REMEMBERED') %}
<div class="sidebar-menu border01 grid-hide tab-l-hide tab-p-visible m-visible">
{% include '/Frontend/sidebar.html.twig' %}
</div>
{% endif %}
{% if type == 'private' %}
<div class="menu01 border01 marginT10">
<ul>
<li><a href="{{ path('live_portal_next_sales') }}" title=""><i class="icon-menu-live"></i><span>{{ 'frontend.navigation.live'|trans }}</span></a></li>
<li><a href="{{ path('frontend_vehicle_alert_search') }}" title=""><i class="icon-alerte04"></i><span>{{ 'frontend.search.alert.create'|trans }}</span></a></li>
<li><a href="{{ path('frontend_client_opinion') }}" title=""><i class="icon-menu-avis"></i><span>{{ 'frontend.navigation.reviews'|trans }}</span></a></li>
{% if is_current_country(constant('App\\Twig\\Extension\\CountryExtension::COUNTRY_FRANCE')) %}
<li><a href="{{ sell_my_auto_url }}" target="_blank" title=""><i class="icon-menu-vendre"></i><span>{{ 'frontend.navigation.saleAuto'|trans }}</span></a></li>
{% endif %}
</ul>
</div>
{% elseif type == 'pro' %}
<div class="menu02 border01 paddingB5">
<ul>
{% if not is_current_country(constant('App\\Twig\\Extension\\CountryExtension::COUNTRY_PORTUGAL')) %}
<li><a href="{{ path('frontend_sale_auto_pro') }}">{{ 'frontend.header.link.sell'|trans }}</a></li>
{% endif %}
{% include '/Frontend/pro/_help_manual.html.twig' %}
</ul>
</div>
{% endif %}
<div class="menu02">
{% if type == 'private' %}
{% include 'frontend/cms_menu.html.twig' with {'root': 'b2c'} %}
{% elseif type == 'pro' %}
{% include 'frontend/cms_menu.html.twig' with {'root': 'b2b'} %}
{% endif %}
</div>
</div>
<!-- END Menu deroulant mobile -->