templates/core/menu.html.twig line 1

Open in your IDE?
  1. {% set rubrique_deposer_une_annonce_menu_fusacq_visible = false %}
  2. {% set rubrique_trouver_un_expert_une_annonce_menu_fusacq_visible = false %}
  3. {% set rubrique_tarif_menu_fusacq_visible = false %}
  4. {% set rubrique_boite_a_outils_menu_fusacq_visible = false %}
  5. {% for   param_header   in params_header %}
  6.     {% if param_header["nom"] == "rubriques_menu_fusacq" %}
  7.         {% for    param,key    in param_header["value"] %}
  8.             {% if param == "deposer_une_annonce" %}
  9.                 {% set rubrique_deposer_une_annonce_menu_fusacq_visible = true %}
  10.             {% endif %}
  11.             {% if param == "trouver_un_expert" %}
  12.                 {% set rubrique_trouver_un_expert_une_annonce_menu_fusacq_visible = true %}
  13.             {% endif %}
  14.             {% if param == "tarifs" %}
  15.                 {% set rubrique_tarif_menu_fusacq_visible = true %}
  16.             {% endif %}
  17.             {% if param == "boite_a_outils" %}
  18.                 {% set rubrique_boite_a_outils_menu_fusacq_visible = true %}
  19.             {% endif %}
  20.         {% endfor %}
  21.     {% endif %}
  22. {% endfor %}
  23. {% apply spaceless %}
  24. <link rel="stylesheet" href="{{ asset('build/css/includes/menu.css') }}">
  25. <div class="row">
  26.     <div class="col-12">
  27.         <nav class="navbar navbar-expand-xl navbar-custom2" id="nav-3">
  28.             <div class="container">
  29.                 <div class="py-3">
  30.                     <a class="navbar-brand navbar-brand-custom"
  31.                        href="{{ path('index',{'codePays':codePays}) }}">&nbsp;</a>
  32.                 </div>
  33.                 <button class="navbar-toggler navbar-toggler-right" type="button" data-toggle="collapse"
  34.                         data-target="#navbarResponsive" aria-controls="navbarResponsive" aria-expanded="false"
  35.                         aria-label="Toggle navigation">
  36.                     <span class="navbar-toggler-icon"></span>
  37.                 </button>
  38.                 <div class="collapse navbar-collapse" id="navbarResponsive">
  39.                     <ul class="navbar-nav ml-auto">
  40.                         {# pas besoin de  route ici , il faut juste code pays #}
  41.                         {% set flags =  [
  42.                         [pays_version[0][2],pays_version[0][3],  path( 'change_flag',{ 'codePays':  pays_version[0][2] })  ,pays_version[0][1],pays_version[0][0] ],
  43.                         [pays_version[1][2],pays_version[1][3],  path( 'change_flag',{ 'codePays':  pays_version[1][2]    })  ,pays_version[1][1],pays_version[1][0]],
  44.                         [pays_version[2][2],pays_version[2][3],  path( 'change_flag',{ 'codePays':  pays_version[2][2]  })  ,pays_version[2][1],pays_version[2][0]],
  45.                         [pays_version[3][2],pays_version[3][3], path( 'change_flag',{ 'codePays':  pays_version[3][2] ,  })  ,pays_version[3][1],pays_version[3][0]]
  46.                     ] %}
  47.                         <!--MENU DESKTOP-->
  48.                         {% for param_header in params_header %}
  49.                             {% if param_header["nom"] == "rubriques_menu_fusacq" %}
  50.                                 {% for param,key in param_header["value"] %}
  51.                                     {% if param == "deposer_une_annonce" %}
  52.                                         <li class="nav-item d-none d-xl-block">
  53.                                             <a class="button-rond-menu" href="{{ path('depot_annonce_index',{'codePays':codePaysWithUnderScore}) }}" data-toggle="tooltip">Déposer une annonce</a>
  54.                                         </li>
  55.                                     {% endif %}
  56.                                     {% if param == "trouver_un_expert" %}
  57.                                         <li class="nav-item d-none d-xl-block"> 
  58.                                             <a class="nav-link button-rond-menu" href="{{ path('annuaires_experts_index',{'codePays':codePaysWithUnderScore}) }}">{{ translate("trouver un expert" ,lang,"","M") | raw }}</a>
  59.                                         </li>
  60.                                     {% endif %}
  61.                                     {% if param == "tarifs" %}
  62.                                         <li class="nav-item d-none d-xl-block">
  63.                                             <a class="nav-link button-rond-menu" href="{{ path('tarifs_index',{'codePays':codePaysWithUnderScore}) }}">{{ translate("tarifs" ,lang,"","M")  |raw }}</a>
  64.                                         </li>
  65.                                     {% endif %}
  66.                                     {% if param == "boite_a_outils" %}
  67.                                         <li class="nav-item dropdown d-none d-xl-block" data-lien="boite_a_outils" >
  68.                                             <a class="nav-link dropdown-toggle" href="javascript:void(0)" data-toggle="dropdown">{{ translate('boite a outils' ,lang,"","M") | raw }}</a>
  69.                                             <ul class="dropdown-menu">
  70.                                                 
  71.                                             <li>
  72.                                                 <a class="dropdown-item2" href="{{ path('elite_presentation',{'codePays':codePaysWithUnderScore}) }}">
  73.                                                     FUSACQ Elite 
  74.                                                 </a>
  75.                                             </li>
  76.                                                 
  77.                                                 {% for key,val in param_header["value"][param] %}
  78.                                                     {% if key == "annuaires" %}
  79.                                                         <li><a class="dropdown-item" href="{{ path('annuaires_index',{'codePays':codePaysWithUnderScore}) }}">{{ translate("annuaires" ,lang,"","M") | raw }}</a></li>
  80.                                                     {% endif %}
  81.                                                     {% if key == "base_valorisations" %}
  82.                                                         <li><a class="dropdown-item" href="{{ path('base_valorisations_index',{'codePays':codePaysWithUnderScore}) }}">{{ translate("base de valorisations" ,lang,"","M") | raw }}</a></li>
  83.                                                     {% endif %}
  84.                                                     {% if key == "fusacq_vous_aide" %}
  85.                                                     <li><a class="dropdown-item" href="javascript:void(0)">{{ translate("Fusacq vous aide" ,lang,"","M") | raw }}&nbsp;&nbsp;></a>
  86.                                                         <ul class="submenu dropdown-menu">
  87.                                                             <li><a class="dropdown-item" href="{{ path("simuler_votre_pret",{'codePays':codePaysWithUnderScore }) }}">{{ translate("simuler votre prêt" ,lang,"","M") | raw }}</a></li>
  88.                                                                 <li><a class="dropdown-item" href="/simulateur-reprise-entreprise">{{ translate("simuler votre reprise" ,lang,"","M") | raw }}</a></li>
  89.                                                             <li><a class="dropdown-item" href="{{ path("faire_une_demande_de_financement",{'codePays':codePaysWithUnderScore }) }}">{{ translate("demande de financement" ,lang,"","M") | raw }}</a></li>
  90.                                                         </ul>
  91.                                                     </li>
  92.                                                     {% endif %}
  93.                                                     {% if key == "documentation" %}
  94.                                                         <li><a class="dropdown-item" href="{{ path("documentation",{'codePays':codePaysWithUnderScore }) }}">{{ translate("documentation" ,lang,"","M") | raw }}</a></li>
  95.                                                         {% endif %}
  96.                                                         {% if key == "newsletters" %}
  97.                                                         <li><a class="dropdown-item" href="{{ path("inscription_newsletters",{'codePays':codePaysWithUnderScore }) }}">{{ translate("newsletters" ,lang,"","M") | raw }}</a>
  98.                                                         {% endif %}
  99.                                                         {% if key == "se_former" %}
  100.                                                         <li><a class="dropdown-item" href="javascript:void(0)">{{ translate("se former" ,lang,"","M") | raw }}&nbsp;&nbsp;> </a>
  101.                                                             <ul class="submenu dropdown-menu">
  102.                                                                 {% if (param_header["value"] is defined) and (param_header["value"]["boite_a_outils"] is defined) and (param_header["value"]["boite_a_outils"]["se_former"] is defined) %}
  103.                                                                     {% for val in param_header["value"]["boite_a_outils"]["se_former"] %}
  104.                                                                         {% if val == "formations" %}
  105.                                                                             <li><a class="dropdown-item" href="{{ path('formation_index',{'codePays':codePaysWithUnderScore}) }}">{{ translate("formations" ,lang,"","M") | raw }}</a></li>
  106.                                                                             {% endif %}
  107.                                                                             {% if val == "webinars" %}
  108.                                                                             <li><a class="dropdown-item" href="{{ path('webinar_index',{'codePays':codePaysWithUnderScore}) }}">{{ translate("webinars",lang,"","M","p") | raw }}</a></li>
  109.                                                                             {% endif %}
  110.                                                                         {% endfor %}
  111.                                                                     {% endif %}
  112.                                                             </ul>
  113.                                                         </li>
  114.                                                     {% endif %}
  115.                                                 {% endfor %}
  116.                                             </ul>
  117.                                         </li>
  118.                                     {% endif %}
  119.                                 {% endfor %}
  120.                                 <li class="nav-item dropdown d-none d-xl-block">
  121.                                     <a class="nav-link dropdown-toggle" href="javascript:void(0)" data-toggle="dropdown"><i class="fas fa-grip-horizontal"></i></a>
  122.                                     <ul class="dropdown-menu">
  123.                                         <li>
  124.                                             <a class="dropdown-item2" href="{{ DNS.FUSACQ }}" style="width:210px;">
  125.                                                 <div class="float-left mr-1"><img src="{{ asset('build/img/favicon_fusacq.png') }}" style="width:20x; height:20px;"></div>
  126.                                                 <div class="float-left">{{ translate("Fusacq" ,lang,"","M") | raw }}</div>
  127.                                             </a>
  128.                                         </li>
  129.                                         <li>
  130.                                             <a class="dropdown-item2" href="/buzz/{{ codePays }}" target="_blank">
  131.                                                 <div class="float-left mr-1"><img src="{{ asset('build/img/favicon_buzz.png?v2.6') }}" style="width:20x; height:20px;"></div>
  132.                                                 <div class="float-left">{{ translate("Fusacq Buzz" ,lang,"","M") | raw }}</div>
  133.                                             </a>
  134.                                         </li>
  135.                                      <li>
  136.                                               <a class="dropdown-item2" href="{{ DNS.PDC }}" target="_blank" style="width:210px;">
  137.                                                       <div class="float-left mr-1"> 
  138.                                                           <img src="https://www.placedescommerces.com/images/icon_PDC.png" style="width:20x; height:20px;">
  139.                                                       </div>
  140.                                                       <div class="float-left">{{ translate("Place des Commerces" ,lang,"","M") | raw }}</div>
  141.                                               </a>
  142.                                         </li>
  143.                                       <li>
  144.                                                <a class="dropdown-item2" href="{{ DNS.PDF }}" target="_blank" style="width:210px;">
  145.                                                        <div class="float-left mr-1">
  146.                                                            <img src="https://www.placedescommerces.com/images/icon_PDF.png" style="width:20x; height:20px;">
  147.                                                        </div>
  148.                                                        <div class="float-left">{{ translate("Place des Franchises" ,lang,"","M") | raw }}</div>
  149.                                                </a>
  150.                                          </li> 
  151.                                     </ul>
  152.                                 </li>
  153.                                 <li class="nav-item dropdown d-none d-xl-block">
  154.                                     {% for key, flag in flags %}
  155.                                         {% if flag[0] == codePaysWithUnderScore %}
  156.                                             <a class="dropdown-toggle" href="javascript:void(0)" id="navbarDropdownPays" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
  157.                                                 <img src="https://www.help-fusacq.com/fr/images/{{ flag[1] }}.png" alt="">
  158.                                             </a>
  159.                                         {% endif %}
  160.                                     {% endfor %}
  161.                                     <div class="dropdown-menu dropdown-menu-right">
  162.                                         {% for key, flag in flags %} 
  163.                                             {% if flag[0] != codePaysWithUnderScore %}
  164.                                                 <a class="dropdown-item btn-codePays" href="{{ flag[2] }}" data-code-pays="{{ flag[3] }}">
  165.                                                     <img src="https://www.help-fusacq.com/fr/images/{{ flag[1] }}.png" alt=""> &nbsp;&nbsp;{{ flag[4] }}
  166.                                                 </a>
  167.                                             {% endif %}
  168.                                         {% endfor %}
  169.                                     </div>
  170.                                 </li>
  171.                                 <!--VERSION CONNECTE-->
  172.                                 {% if app.user|default %}
  173.                                     <li class="nav-item dropdown d-none d-xl-block">
  174.                                         <a class="dropdown-toggle votreCompte" href="javascript:void(0)" role="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="true" title="{{ translate("votre compte" ,lang,"") | raw }}">
  175.                                             <i class="fa-light fa-user vert" aria-hidden="true"></i></a>
  176.                                         <div class="dropdown-menu dropdown-menu-right py-2 ">
  177.                                             <div class="vert font_600 px-2 mb-2" style="border-bottom: 1px solid #CCCCCC; width: 222px;">
  178.                                                 {{ app.user.prenom_utilisateur|raw  }} {{ app.user.nom_utilisateur|raw  }}
  179.                                             </div>
  180.                                             <a href="{{ path('index_compte' ,{'codePays':codePaysWithUnderScore  }) }}">
  181.                                                 {{ translate("votre compte"  ,lang,"") |capitalize| raw }}
  182.                                             </a>
  183.                                             <a href="{{ path('compte_services' ,{'codePays':codePaysWithUnderScore  }) }}">
  184.                                                 {{ translate("vos sevices"  ,lang,"") |capitalize| raw }}
  185.                                             </a>
  186.                                             <a class="dropdown-item" href="/logout">
  187.                                                 {{ translate("deconnexion"  ,lang,"") |capitalize| raw }}
  188.                                             </a>
  189.                                         </div>
  190.                                     </li>
  191.                                     <li class="nav-item d-none d-xl-block">
  192.                                         <a class="link-compte" href="/panier{{ codePaysWithUnderScore }}" role="button" aria-pressed="true" title="Votre panier">
  193.                                             <div class="fa badge fa-sm" value="{{ nbAnnoncePanier }}" aria-hidden="true"><i class="fa-light fa-cart-shopping items" aria-hidden="true"></i></div>
  194.                                         </a>
  195.                                     </li>
  196.                                     <!--FIN VERSION CONNECTE-->
  197.                                 {% else %} 
  198.                          
  199.                                      {# {% if "details_annonce_" not in currentRoute   %}#}{# modification temporaire : authentification avec modal cassé details annonce#}
  200.                                     <!--VERSION NON CONNECTE-->
  201.                                     <li class="nav-item d-none d-xl-block">
  202.                                         <a class="link-compte" href="javascript:void(0)" role="button" aria-pressed="true" data-toggle="modal"
  203.                                            data-target="#Modalindex" title="{{ translate("votre compte"  ,lang,"") |capitalize| raw }}">
  204.                                             <i class="fa fa-user btn-md orange"></i>
  205.                                         </a>  
  206.                                             
  207.                                         <a class="link-compte invisible" 
  208.                                            href="/panier_fr_" role="button" 
  209.                                            aria-pressed="true" title="Votre panier">
  210.                                             <div class="fa badge fa-sm" value="1" aria-hidden="true">
  211.                                                 <i class="fa-light fa-cart-shopping items" aria-hidden="true"></i>
  212.                                             </div>
  213.                                         </a>
  214.                                             
  215.                                     </li>
  216.                                      {# {% endif %}#} {# modification temporaire : authentification avec modal cassé details annonce#}
  217.                                     <!--FIN VERSION NON CONNECTE-->
  218.                                 {% endif %}
  219.                             {% endif %}
  220.                         {% endfor %}
  221.                         <!--FIN MENU DESKTOP-->
  222.                         <!--MENU MOBILE CUSTOM-->
  223.                         {% for param_header in params_header %}
  224.                             {% if param_header["nom"] == "rubriques_menu_fusacq" %}
  225.                                 {% for param,key in param_header["value"] %}
  226.                                     {% if param == "deposer_une_annonce" %}
  227.                                         <li class="nav-item d-xl-none">
  228.                                             <a href="{{ path('depot_annonce_index',{'codePays':codePaysWithUnderScore}) }}" title="{{ translate("deposer une annonce" ,lang,"","M") | raw }}">
  229.                                                 <span>{{ translate("deposer une annonce" ,lang,"","M") | raw }}</span>
  230.                                             </a>
  231.                                         </li>
  232.                                     {% endif %}
  233.                                     {% if param == "trouver_un_expert" %}
  234.                                         <li class="nav-item d-xl-none">
  235.                                             <a href="{{ path('annuaires_experts_index',{'codePays':codePaysWithUnderScore}) }}" title="{{ translate("trouver un expert" ,lang,"","M") | raw }}">
  236.                                                 <span>{{ translate("trouver un expert" ,lang,"","M") | raw }}</span>
  237.                                             </a>
  238.                                         </li>
  239.                                     {% endif %}
  240.                                     {% if param == "tarifs" %}
  241.                                         <li class="nav-item d-xl-none">
  242.                                             <a href="{{ path('tarifs_index',{'codePays':codePaysWithUnderScore}) }}" title="{{ translate("tarifs" ,lang,"","M")  |raw }}">
  243.                                                 <span>{{ translate("tarifs" ,lang,"","M")  |raw }}</span>
  244.                                             </a>
  245.                                         </li>
  246.                                     {% endif %}
  247.                                     {% if param == "boite_a_outils" %}
  248.                                         <li class="nav-item dropdown d-xl-none" data-lien="boite_a_outils" >
  249.                                             <a class="dropdown-toggle" href="javascript:void(0)" id="navbarDropdownBoite" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
  250.                                                 <span>{{ translate('boite a outils' ,lang,"","M") | raw }}</span>
  251.                                             </a>
  252.                                             <div class="dropdown-menu dropdown-menu-right" aria-labelledby="navbarDropdownBoite">
  253.                                                 
  254.                                                 
  255.                                                 <a class="dropdown-item btn-codePays" href="{{ path('elite_presentation',{'codePays':codePaysWithUnderScore}) }}">
  256.                                                      FUSACQ Elite 
  257.                                                 </a>
  258.                                                 
  259.                       
  260.                                                 {% for key,val in param_header["value"][param] %}
  261.                                                     {% if key == "annuaires" %}
  262.                                                         <a class="dropdown-item btn-codePays" href="{{ path('annuaires_index',{'codePays':codePaysWithUnderScore}) }}">{{ translate("annuaires" ,lang,"","M") | raw }}</a>
  263.                                                     {% endif %}
  264.                                                     {% if key == "base_valorisations" %}
  265.                                                         <a class="dropdown-item btn-codePays" href="{{ path('base_valorisations_index',{'codePays':codePaysWithUnderScore}) }}">{{ translate("base de valorisations" ,lang,"","M") | raw }}</a>
  266.                                                     {% endif %}
  267.                                                     {% if key == "fusacq_vous_aide" %}
  268.                                                         <a class="dropdown-item btn-codePays" href="javascript:void(0)">{{ translate("Fusacq vous aide" ,lang,"","M") | raw }}&nbsp;&nbsp;></a>
  269.                                                         <a class="dropdown-item btn-codePays ml-3" href="{{ path("simuler_votre_pret",{'codePays':codePaysWithUnderScore }) }}">•&nbsp;{{ translate("simuler votre prêt" ,lang,"","M") | raw }}</a>
  270.                                                         {# <a class="dropdown-item btn-codePays ml-3" href="javascript:void(0)">•&nbsp;{{ translate("simuler votre reprise" ,lang,"","M") | raw }}</a>#}
  271.                                                         <a class="dropdown-item btn-codePays ml-3" href="{{ path("faire_une_demande_de_financement",{'codePays':codePaysWithUnderScore }) }}">•&nbsp;{{ translate("demande de financement" ,lang,"","M") | raw }}</a>
  272.                                                     {% endif %}
  273.                                                     {% if key == "documentation" %}
  274.                                                         <a class="dropdown-item btn-codePays" href="{{ path("documentation",{'codePays':codePaysWithUnderScore }) }}">{{ translate("documentation" ,lang,"","M") | raw }}</a>
  275.                                                     {% endif %}
  276.                                                     {% if key == "newsletters" %}
  277.                                                         <a class="dropdown-item btn-codePays" href="{{ path("inscription_newsletters",{'codePays':codePaysWithUnderScore }) }}">{{ translate("newsletters" ,lang,"","M") | raw }}</a>
  278.                                                     {% endif %}
  279.                                                     {% if key == "se_former" %}
  280.                                                         <a class="dropdown-item btn-codePays" href="javascript:void(0)">{{ translate("se former" ,lang,"","M") | raw }}&nbsp;&nbsp;></a>
  281.                                                         {% if (param_header["value"] is defined) and (param_header["value"]["boite_a_outils"] is defined) and (param_header["value"]["boite_a_outils"]["se_former"] is defined) %}
  282.                                                             {% for   val   in param_header["value"]["boite_a_outils"]["se_former"] %}
  283.                                                                 {% if val == "formations" %}
  284.                                                                     <a class="dropdown-item btn-codePays ml-3" href="{{ path('formation_index',{'codePays':codePaysWithUnderScore}) }}">•&nbsp;{{ translate("formations" ,lang,"","M") | raw }}</a>
  285.                                                                 {% endif %}
  286.                                                                 {% if val == "webinars" %}
  287.                                                                     <a class="dropdown-item btn-codePays ml-3" href="{{ path('webinar_index',{'codePays':codePaysWithUnderScore}) }}">•&nbsp;{{ translate("webinars" ,lang,"","M") | raw }}</a>
  288.                                                                 {% endif %}
  289.                                                             {% endfor %}
  290.                                                         {% endif %}
  291.                                                     {% endif %}
  292.                                                 {% endfor %}
  293.                                             </div>
  294.                                         </li>
  295.                                     {% endif %}
  296.                                 {% endfor %}
  297.                             {% endif %}
  298.                         {% endfor %}
  299.                         <li class="nav-item dropdown d-xl-none">
  300.                             <a class="dropdown-toggle" href="javascript:void(0)" id="navbarDropdownGroupe" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
  301.                                 {{ translate('les sites' ,lang,"","M") | raw }}
  302.                             </a>
  303.                             <div class="dropdown-menu dropdown-menu-right" aria-labelledby="navbarDropdownGroupe">
  304.                                 <a class="dropdown-item btn-codePays" href="{{ DNS.FUSACQ }}">{{ translate('Fusacq' ,lang,"","M") | raw }}</a>
  305.                                 <a class="dropdown-item btn-codePays" href="/buzz/{{ codePays }}" target="_blank">{{ translate('Fusacq Buzz' ,lang,"","M") | raw }}</a>
  306.                                 <a class="dropdown-item btn-codePays" href="{{ DNS.PDC }}">{{ translate('Place des Commerces' ,lang,"","M") | raw }}</a>
  307.                                 <a class="dropdown-item btn-codePays" href="{{ DNS.PDF }}">{{ translate('Place des Franchises' ,lang,"","M") | raw }}</a>
  308.                             </div>
  309.                         </li>
  310.                         <li class="nav-item dropdown d-xl-none">
  311.                             <a class="dropdown-toggle" href="javascript:void(0)" id="navbarDropdownPays" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
  312.                                 <span>{{ translate("Fusacq à l'international" ,lang,"","M") | raw }}</span>
  313.                             </a>
  314.                             <div class="dropdown-menu dropdown-menu-right">
  315.                                 {% for key, flag in flags %} 
  316.                                     {% if  flag[0] != codePaysWithUnderScore %}              
  317.                                         <a class="dropdown-item btn-codePays" href="{{ flag[2] }}" data-code-pays="{{ flag[3] }}">{{ flag[4] }}</a>
  318.                                     {% endif %}
  319.                                 {% endfor %}
  320.                             </div>
  321.                         </li>
  322.                         <!--VERSION CONNECTE-->
  323.                         {% if app.user|default %}
  324.                             <li class="nav-item d-xl-none">
  325.                                 <a class="votreCompte" href="{{ path('index_compte' ,{'codePays':codePaysWithUnderScore  }) }}" title="{{ translate("votre compte" ,lang,"","M") | raw }}">
  326.                                     <span class="vert">{{ translate("votre compte" ,lang,"","M") | raw }}</span>
  327.                                 </a>
  328.                             </li>
  329.                             <li class="nav-item d-xl-none">
  330.                                 <a href="/panier{{ codePaysWithUnderScore }}" title="{{ translate("votre panier" ,lang,"","M") | raw }}">
  331.                                     <span>{{ translate("votre panier" ,lang,"","M") | raw }}</span>
  332.                                 </a>
  333.                             </li>
  334.                             <!--FIN VERSION CONNECTE-->
  335.                             <!--VERSION NON CONNECTE-->
  336.                         {% else %}
  337.                                 
  338.                             <li class="nav-item d-xl-none">
  339.                                 <a href="javascript:void(0)" role="button" aria-pressed="true" data-toggle="modal" data-target="#Modalindex" title="{{ translate("votre compte" ,lang,"","M") | raw }}">
  340.                                     <span class="vert">{{ translate("votre compte" ,lang,"","M") | raw }}</span>
  341.                                 </a>
  342.                                 
  343.                                 <a class="link-compte invisible" 
  344.                                            href="/panier_fr_" role="button" 
  345.                                            aria-pressed="true" title="Votre panier">
  346.                                             <div class="fa badge fa-sm" value="1" aria-hidden="true">
  347.                                                 <i class="fa-light fa-cart-shopping items" aria-hidden="true"></i>
  348.                                             </div>
  349.                                 </a>
  350.                             </li>
  351.                             
  352.                         {% endif %}
  353.                         <!--FIN VERSION NON CONNECTE-->
  354.                         <!--FIN MENU MOBILE CUSTOM-->
  355.                     </ul>
  356.                 </div>
  357.             </div>
  358.         </nav>
  359.     </div>
  360. </div>
  361. {#  Modal connexion authentification  #}
  362. {% if app.session.all.user is not defined %}
  363.     {% if not authFrom %}
  364.         {% set authFrom = "menu" %}
  365.     {% endif %}
  366.     <div class="modal fade show" id="Modalindex" data-id="modal-login" tabindex="-1" role="dialog" aria-labelledby="exampleModalLabel" style="display: none; padding-right: 14px;" aria-modal="true">
  367.         <div class="modal-dialog" role="document">
  368.             <div class="modal-content">
  369.                 <div class="modal-header">
  370.                     <h5 class="modal-title" id="text_titre_form_login" >{{ translate("votre compte",lang,"") |capitalize| raw }}</h5>
  371.                     <button type="button" class="close" data-dismiss="modal" aria-label="Close">
  372.                         <span aria-hidden="true">×</span>
  373.                     </button>
  374.                 </div>
  375.                 <div class="modal-body">
  376.                     {{ render_esi(controller(
  377.                     'App\\Controller\\SecurityController::login',
  378.                          {"from": authFrom }
  379.                     )) | spaceless
  380.                     }}
  381.                 </div>
  382.             </div>
  383.         </div>
  384.     </div>
  385. {% endif %}
  386. {#  Modal connexion authentification  #}
  387. <div class="modal fade show" id="ModalMaintenance" tabindex="-1" role="dialog" aria-labelledby="exampleModalLabel" style="display: none; padding-right: 14px;" aria-modal="true">
  388.     <div class="modal-dialog" role="document">
  389.         <div class="modal-content">
  390.             <div class="modal-header">
  391.                 <h5 class="modal-title" id="exampleModalLabel">{{ translate("Le compte FUSACQ est en cours de maintenance.",lang,"M")| raw }}</h5>
  392.                 <button type="button" class="close" data-dismiss="modal" aria-label="Close">
  393.                     <span aria-hidden="true">×</span>
  394.                 </button>
  395.             </div>
  396.             <div class="modal-body">
  397.                 <p>Nous faisons notre maximum pour qu'il soit à nouveau opérationnel dans les meilleurs délais.</p>
  398.                 <br>
  399.                 <p>
  400.                     Dans cette attente vous pouvez toujours :
  401.                     <br><br>
  402.                     - <a href="{{ path('depot_annonce_first_step', {'codePays': codePaysWithUnderScore}) }}" class="bleu">Déposer de nouvelles annonces</a><br>
  403.                     - <a href="{{ path('annuaires_experts_espace_admin_index', {'codePays': codePaysWithUnderScore}) }}" class="bleu">Gérer votre référencement et vos blogs</a>
  404.                 </p>
  405.             </div>
  406.         </div>
  407.     </div>
  408. </div>
  409. <!-- Modal -->
  410. <script src="{{ asset('build/js/lib/jquery-3.3.1.min.js') }}"></script>
  411. <script type="text/javascript"  >
  412.     $(document).on('click', '.dropdown-menu', function (e) {
  413.         e.stopPropagation();
  414.     });
  415. // make it as accordion for smaller screens
  416.     if ($(window).width() < 992) {
  417.         $('.dropdown-menu a').click(function (e) {
  418.             e.preventDefault();
  419.             if ($(this).next('.submenu').length) {
  420.                 $(this).next('.submenu').toggle();
  421.             }
  422.             $('.dropdown').on('hide.bs.dropdown', function () {
  423.                 $(this).find('.submenu').hide();
  424.             });
  425.         });
  426.     }
  427.     
  428.     $(document).on('click', 'a.dropdown-item', function (e) {
  429.          let url = $(this).attr("href");
  430.          if(url){
  431.             window.location.href  = url; 
  432.          }
  433.     });
  434. </script>
  435.         {{   render_esi(controller( 'App\\Controller\\IndexController::logUtilisateursHandler'))   }}
  436.  
  437. {% endapply %}