templates/frontend/main_menu.html.twig line 1

Open in your IDE?
  1. <!-- Menu deroulant -->
  2. <div class="menu-deroulant grid-container tab-l-hide tab-p-hide m-hide">
  3.     {% if type == 'private' %}
  4.         <div class="grid-50">
  5.             {% include 'frontend/cms_menu.html.twig' with {'root': 'b2c'} %}
  6.         </div>
  7.         <div class="grid-30 tab-p-50">
  8.             <ul class="clearfix">
  9.                 <li><a href="{{ path('live_portal_next_sales') }}" title=""><i class="icon-menu-live"></i><span>{{ 'frontend.header.navigation.live'|trans }}</span></a></li>
  10.                 {% if is_current_country(constant('App\\Twig\\Extension\\CountryExtension::COUNTRY_FRANCE')) %}
  11.                     <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>
  12.                 {% endif %}
  13.                 <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>
  14.                 <li><a href="{{ path('frontend_client_opinion') }}" title=""><i class="icon-menu-avis"></i><span>{{ 'frontend.header.navigation.reviews'|trans }}</span></a></li>
  15.             </ul>
  16.         </div>
  17.         <div class="grid-20 tab-p-50">
  18.             <ul class="clearfix">
  19.                 <li><a href="{{ path('frontend_contact') }}" class="lien08" title=""><i class="icon-service-clt"></i> {{ 'frontend.header.customer_service'|trans }}</a></li>
  20.                 <li><a href="{{ path('frontend_cgv_country', {'country': 'fr'}) }}" class="header_link" title="">{{ 'frontend.header.navigation.ConditionsSale'|trans }}</a></li>
  21.             </ul>
  22.         </div>
  23.     {% elseif type == 'pro' %}
  24.         <div class="pro">
  25.             {% if not(is_current_website('ecat'))%}
  26.                 {% include 'frontend/cms_menu.html.twig' with {'root': 'b2b'} %}
  27.             {% else %}
  28.                 {% include 'frontend/cms_menu.html.twig' with {'root': 'b2becat'} %}
  29.             {% endif %}
  30.         </div>
  31.     {% endif %}
  32. </div>
  33. <!-- END Menu deroulant -->
  34. <!-- Menu deroulant mobile -->
  35. <div class="tab-menu-deroulant {% if app.user is null %}user-logout{% endif %}">
  36.     <div class="grid-container">
  37.         <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 %}&nbsp;{% endif %}</div>
  38.         <div class="grid-30 txtright">
  39.             <span class="bt-close tab-close-menu-deroulant tab-l-visible tab-p-visible m-hide">
  40.                 <span class="lignes">
  41.                     <span class="ligne1"></span>
  42.                     <span class="ligne2"></span>
  43.                     <span class="ligne3"></span>
  44.                 </span>
  45.             </span>
  46.             <span class="bt-close m-close-menu-deroulant tab-l-hide tab-p-hide m-visible">
  47.                 <span class="lignes">
  48.                     <span class="ligne1"></span>
  49.                     <span class="ligne2"></span>
  50.                     <span class="ligne3"></span>
  51.                 </span>
  52.             </span>
  53.         </div>
  54.     </div>
  55.     {% if not app.user or not is_granted('IS_AUTHENTICATED_REMEMBERED') %}
  56.         {% include 'login.html.twig' %}
  57.     {% endif %}
  58.     {% if type == 'private' %}
  59.         <div class="menuhaut tab-menuhaut clearfix prelative border01">
  60.             <ul>
  61.                 {% if app.user is not null and is_granted('IS_AUTHENTICATED_REMEMBERED') %}
  62.                     <li class="grid-100"><a href="{{ path('fos_user_profile_edit') }}" title="">{{ 'frontend.profile.edit'|trans }}</a></li>
  63.                     <li class="grid-100"><a href="{{ path('fos_user_security_logout') }}" title="">{{ 'frontend.profile.logout'|trans }}</a></li>
  64.                 {% else %}
  65.                     <li class="grid-100 u-login u-modal"><a href="#" title="">{{ 'frontend.profile.login'|trans }}</a></li>
  66.                     <li class="grid-100"><a href="{{ path('registration_step') }}">{{ 'frontend.profile.create'|trans }}</a></li>
  67.                 {% endif %}
  68.                 <li class="grid-40 btn-pro"><a href="{{ path('homepage_pro') }}" title="">{{ "frontend.header.button.pro"|trans }}</a></li>
  69.                 <li class="grid-60">
  70.                     <p><i class="icon-menu-tel"></i> {% include 'Frontend/user/_tel_customer_service.html.twig' %}</p>
  71.                 </li>
  72.                 {% if not (is_current_website('showvroom')) %}
  73.                     <li class="mobile-langue">
  74.                         <span class="tab-langue cursor txt-langue">
  75.                             <i class="icon-flag-{{ current_country }}"></i>
  76.                             <span class="fleche">
  77.                                 <span class="ligne1"></span>
  78.                                 <span class="ligne2"></span>
  79.                             </span>
  80.                         </span>
  81.                         {{ country_switcher }}
  82.                     </li>
  83.                 {% endif %}
  84.             </ul>
  85.         </div>
  86.     {% elseif type == 'pro' %}
  87.         <div class="pro menuhaut tab-menuhaut clearfix prelative border01">
  88.             <ul>
  89.                 {% if app.user is not null and is_granted('IS_AUTHENTICATED_REMEMBERED') %}
  90.                     {% if is_granted('ROLE_PREVIOUS_ADMIN') %}
  91.                         <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>
  92.                     {% endif %}
  93.                 {% else %}
  94.                     <li class="grid-100 connexion"><a href="{{ getADUrl() }}" title="" class="connexion">{{ "frontend.header.pro.link.sign_in"|trans }}</a></li>
  95.                     <li class="grid-100 inscription"><a href="{{ getADUrl() }}" title="" class="inscription">{{ "frontend.header.pro.link.register"|trans }}</a></li>
  96.                 {% endif %}
  97.                 {% if app.user is null %}
  98.                     <li class="grid-40 btn-particulier">
  99.                     {% if is_current_country(constant('App\\Twig\\Extension\\CountryExtension::COUNTRY_FRANCE')) %}
  100.                         <a href="{{ path('homepage', {'_locale': default_locale}) }}" title="">{{ app.request.getHost }}</a>
  101.                     {% else %}&nbsp;{% endif %}
  102.                     </li>
  103.                     <li class="grid-60 tel"><i class="icon-menu-tel"></i> {% include '/Frontend/pro/_tel_contact.html.twig' %}</li>
  104.                 {% endif %}
  105.                 {% if not (is_current_website('showvroom')) %}
  106.                     <li class="mobile-langue">
  107.                         <span class="tab-langue cursor txt-langue">
  108.                             <i class="icon-flag-{{ current_country }}"></i>
  109.                             <span class="fleche">
  110.                                 <span class="ligne1"></span>
  111.                                 <span class="ligne2"></span>
  112.                             </span>
  113.                         </span>
  114.                         {{ country_switcher }}
  115.                     </li>
  116.                 {% endif %}
  117.             </ul>
  118.         </div>
  119.     {% endif %}
  120.     {% if app.user is not null and is_granted('IS_AUTHENTICATED_REMEMBERED') %}
  121.         <div class="sidebar-menu border01 grid-hide tab-l-hide tab-p-visible m-visible">
  122.             {% include '/Frontend/sidebar.html.twig' %}
  123.         </div>
  124.     {% endif %}
  125.     {% if type == 'private' %}
  126.         <div class="menu01 border01 marginT10">
  127.             <ul>
  128.                 <li><a href="{{ path('live_portal_next_sales') }}" title=""><i class="icon-menu-live"></i><span>{{ 'frontend.navigation.live'|trans }}</span></a></li>
  129.                 <li><a href="{{ path('frontend_vehicle_alert_search') }}" title=""><i class="icon-alerte04"></i><span>{{ 'frontend.search.alert.create'|trans }}</span></a></li>
  130.                 <li><a href="{{ path('frontend_client_opinion') }}" title=""><i class="icon-menu-avis"></i><span>{{ 'frontend.navigation.reviews'|trans }}</span></a></li>
  131.                 {% if is_current_country(constant('App\\Twig\\Extension\\CountryExtension::COUNTRY_FRANCE')) %}
  132.                     <li><a href="{{ sell_my_auto_url }}" target="_blank" title=""><i class="icon-menu-vendre"></i><span>{{ 'frontend.navigation.saleAuto'|trans }}</span></a></li>
  133.                 {% endif %}
  134.             </ul>
  135.         </div>
  136.     {% elseif type == 'pro' %}
  137.         <div class="menu02 border01 paddingB5">
  138.             <ul>
  139.                 {% if not is_current_country(constant('App\\Twig\\Extension\\CountryExtension::COUNTRY_PORTUGAL')) %}
  140.                     <li><a href="{{ path('frontend_sale_auto_pro') }}">{{ 'frontend.header.link.sell'|trans }}</a></li>
  141.                 {% endif %}
  142.                 {% include '/Frontend/pro/_help_manual.html.twig' %}
  143.             </ul>
  144.         </div>
  145.     {% endif %}
  146.     <div class="menu02">
  147.         {% if type == 'private' %}
  148.             {% include 'frontend/cms_menu.html.twig' with {'root': 'b2c'} %}
  149.         {% elseif type == 'pro' %}
  150.             {% include 'frontend/cms_menu.html.twig' with {'root': 'b2b'} %}
  151.         {% endif %}
  152.     </div>
  153. </div>
  154. <!-- END Menu deroulant mobile -->