templates/frontend/header_pro.html.twig line 1

Open in your IDE?
  1. <header id="header" class="header" role="banner">
  2.     {% include 'frontend/header_change_country.html.twig' %}
  3.     {% set country_switcher %}
  4.         {% include 'frontend/countries.html.twig' %}
  5.     {% endset %}
  6.     <div class="header-container-top header-menu-mobile clearfix" data-size="big">
  7.         <div class="left{% if is_current_website('ecat') %}-ecat{% endif %}">
  8.             {% if is_current_website('showvroom') %}
  9.                 <a href="{{ path('homepage') }}"><img src="{{ asset('bundles/vpauto/frontend/images/showvroom/logo-showvroom.png') }}" alt="Achat/Vente de voitures d'occasion aux enchères" class="logo-vpauto" /></a>
  10.             {% elseif is_current_website('ecat') %}
  11.                 <a href="{{ path('homepage_pro') }}"><img src="{{ asset('bundles/vpauto/frontend/images/ecat/logo-ecat.png') }}" alt="Achat/Vente de voitures d'occasion aux enchères" class="logo-vpauto" /></a>
  12.             {% else %}
  13.                 <a href="{{ path('homepage_pro') }}"><img src="{{ asset('bundles/vpauto/frontend/images/pro/logo-vpauto-pro.png') }}" alt="Achat/Vente de voitures d'occasion aux enchères" class="logo-vpauto" /></a>
  14.             {% endif %}
  15.         </div>
  16.         <nav class="left navigation nav m-hide" role="navigation">
  17.             <ul class="clearfix">
  18.                 <li>
  19.                     <a href="javascript:void(0)" class="bt-menu tab-l-hide tab-p-hide m-hide">
  20.                         <span class="lignes">
  21.                           <span class="ligne1"></span>
  22.                           <span class="ligne2"></span>
  23.                           <span class="ligne3"></span>
  24.                         </span>
  25.                         <span>{{ 'frontend.navigation.menu'|trans }}</span>
  26.                     </a>
  27.                     <a href="#" class="tab-bt-menu grid-hide tab-l-visible tab-p-visible m-hide">
  28.                         <span class="lignes">
  29.                           <span class="ligne1"></span>
  30.                           <span class="ligne2"></span>
  31.                           <span class="ligne3"></span>
  32.                         </span>
  33.                         <span>{{ 'frontend.navigation.menu'|trans }}</span>
  34.                     </a>
  35.                 </li>
  36.                 {% if not is_current_website('ecat') and not is_current_country(constant('App\\Twig\\Extension\\CountryExtension::COUNTRY_PORTUGAL')) %}
  37.                     <li class="grid-xl-visible grid-l-visible grid-hide"><a href="{{ path('frontend_sale_auto_pro') }}">{{ 'frontend.header.link.sell'|trans }}</a></li>
  38.                 {% endif %}
  39.                 {% if is_current_country(constant('App\\Twig\\Extension\\CountryExtension::COUNTRY_FRANCE')) %}
  40.                     <li class="grid-xl-visible grid-l-visible grid-hide">
  41.                         <a href="{{ path('frontend_wiki_list_fr_pro', {'limit': 10}) }}" title="">
  42.                             {{ 'frontend.france.blog.link01'|trans }}
  43.                         </a>
  44.                     </li>
  45.                 {% endif %}
  46.                 {% if is_current_country(constant('App\\Twig\\Extension\\CountryExtension::COUNTRY_PORTUGAL')) %}
  47.                     <li class="grid-xl-visible grid-l-visible grid-hide">
  48.                         <a href="{{ path('frontend_wiki_list_pt') }}">
  49.                             {{ 'frontend.portugal.blog.title'|trans }}
  50.                         </a>
  51.                     </li>
  52.                 {% endif %}
  53.             </ul>
  54.         </nav>
  55.         <div class="pro menuhaut d-menuhaut right prelative tab-p-hide m-hide">
  56.             <ul class="left">
  57.                 {% if app.user is not null and is_granted('IS_AUTHENTICATED_REMEMBERED') %}
  58.                     <li class="grid-xl-visible grid-l-visible grid-hide"><a href="{{ path('frontend_auction_list') }}" title="" class="connecte"><span class="block txtcenter"><i class="icon-selection"></i></span> {{ 'frontend.header.pro.link.auctions.selections'|trans }}</a></li>
  59.                     <li>
  60.                         <a href="{{ path('frontend_auction_list') }}" title="" class="connecte">
  61.                         <span class="block txtcenter">
  62.                             <span class="prelative inbl">
  63.                                 <i class="icon-ordres-achat"></i>
  64.                                 {% if app.user.countLiveBids > 0 %}
  65.                                     <span class="caddy-notification">{{ app.user.countLiveBids }}</span>
  66.                                 {% endif %}
  67.                             </span>
  68.                         </span>
  69.                         {{ 'frontend.header.pro.link.auctions'|trans }}</a>
  70.                     </li>
  71.                     <li class="grid-xl-visible grid-l-visible grid-hide"><a href="{{ path('frontend_user_purchase') }}" title="" class="connecte"><span class="block txtcenter"><i class="icon-commande"></i></span> {{ 'frontend.header.pro.link.auction_list'|trans }}</a></li>
  72.                     <li class="connexion"><a href="{{ path('fos_user_profile_edit') }}" title="" class="mon-compte connecte"><span class="block txtcenter"><i class="icon-sidentifier"></i></span> {{ 'frontend.header.pro.link.account'|trans }}</a></li>
  73.                     {% if is_granted('ROLE_PREVIOUS_ADMIN') %}
  74.                         <li class="inscription"><a href="{{ path('backend_user_view', {'id': app.user.id, '_switch_user': '_exit'})}}" title="" class="connecte"><span class="block txtcenter"><i class="icon-sinscrire01"></i></span> {{ 'frontend.switch.user.exit'|trans }}</a></li>
  75.                     {% else %}
  76.                         <li class="connexion"><a href="{{ path('fos_user_security_logout', {'target': path('homepage_pro', { _locale: default_locale }) }) }}" title="" class="deconnexion connecte"><span class="block txtcenter"><i class="icon-deconnecter"></i></span> {{ 'frontend.header.pro.link.log_out'|trans }}</a></li>
  77.                     {% endif %}
  78.                 {% else %}
  79.                     <li class="connexion"><a href="{{ getADUrl() }}" title="" class="lien09 connexion">{{ 'frontend.header.pro.link.sign_in'|trans }}</a></li>
  80.                     <li><a href="{{ getADUrl() }}" class="lien12 inscription">{{ 'frontend.header.pro.link.register'|trans }}</a></li>
  81.                 {% endif %}
  82.                 {% if not(is_current_website('ecat')) %}
  83.                     {% include '/Frontend/pro/_help_manual.html.twig' with { 'hideTablet' : 'tab-l-hide tab-p-hide'} %}
  84.                     <li class="tel {% if app.user is not null %}connecte tab-l-hide{% endif %}">
  85.                         <span class="txtcenter"><i class="icon-menu-tel {% if is_current_website('showvroom') %}showvroom{% endif %}"></i></span>
  86.                         <span class="{% if is_current_website('showvroom') %}color08{% endif %}">{% include '/Frontend/pro/_tel_contact.html.twig' %}</span>
  87.                     </li>
  88.                     <li class="btn-particulier"><a href="{{ path('homepage', {'_locale': default_locale}) }}" title="">vpauto.{{ default_locale }}</a></li>
  89.                 {% endif %}
  90.                 {% if not (is_current_website('showvroom')) %}
  91.                     <li class="langue cursor">
  92.                         <span class="d-txt-langue">
  93.                             <i class="icon-flag-{{ current_country }}"></i>
  94.                             <span class="fleche">
  95.                                 <span class="ligne1"></span>
  96.                                 <span class="ligne2"></span>
  97.                             </span>
  98.                         </span>
  99.                         {{ country_switcher }}
  100.                     </li>
  101.                 {% endif %}
  102.             </ul>
  103.         </div>
  104.         <div class="pro menuhaut d-menuhaut right prelative grid-hide tab-l-hide tab-p-visible m-hide">
  105.             <ul class="left">
  106.                 {% if app.user is not null and is_granted('IS_AUTHENTICATED_REMEMBERED') %}
  107.                     <li>
  108.                         <span class="block txtcenter">
  109.                             <span class="prelative inbl">
  110.                                 <i class="icon-ordres-achat"></i>
  111.                                 {% if app.user.countLiveBids > 0 %}
  112.                                     <span class="caddy-notification">{{ app.user.countLiveBids }}</span>
  113.                                 {% endif %}
  114.                             </span>
  115.                         </span>
  116.                         <a href="{{ path('frontend_auction_list') }}" title="">{{ 'frontend.header.pro.link.auctions'|trans }}</a>
  117.                     </li>
  118.                 {% endif %}
  119.             </ul>
  120.         </div>
  121.         <div class="menuhaut-mobile right grid-hide tab-l-hide tab-p-hide m-visible">
  122.             <a href="tel:{% include '/Frontend/pro/_tel_contact.html.twig' with {'telMobile': true } %}" title="" class="prelative marginR20">
  123.                 <i class="icon-menu-tel"></i>
  124.             </a>
  125.             <a href="#" class="m-bt-menu">
  126.                 <span class="lignes">
  127.                   <span class="ligne1"></span>
  128.                   <span class="ligne2"></span>
  129.                   <span class="ligne3"></span>
  130.                 </span>
  131.                 <span>{{ 'frontend.navigation.menu'|trans }}</span>
  132.             </a>
  133.         </div>
  134.     </div>
  135. </header>
  136. {% include 'frontend/main_menu.html.twig' with {
  137.     'type': 'pro',
  138.     country_switcher: country_switcher
  139. } %}