templates/Front/header.html.twig line 1

Open in your IDE?
  1. {% block header %}
  2. <!-- Fixed navbar -->
  3. <nav class="navbar navbar-default">
  4.     <div class="container">
  5.         <div class="navbar-header visible-xs">
  6.             <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#navbar" aria-expanded="false">
  7.                 <span class="sr-only">Toggle navigation</span>
  8.                 <span class="icon-bar"></span>
  9.                 <span class="icon-bar"></span>
  10.                 <span class="icon-bar"></span>
  11.             </button>
  12.         </div>
  13.         <div id="navbar" class="navbar-collapse collapse">
  14.             <a class="navbar-brand" href="{{ path('front.program.myprogram') }}" style="margin-left: -10em;" >
  15.                 <div class="logo-image">
  16.                     <img src="{{ asset('img/logo-esup-geforp.png') }}" alt="Logo" height="30" align="left">
  17.                 </div>
  18.             </a>
  19.             <ul class="nav navbar-nav">
  20.                 {% if user.fullName is defined %}
  21.                     <li class="hidden-xs">
  22.                             <a href="{{ path('front.program.myprogram') }}" data-toggle="collapse" data-target=".navbar-collapse.in">Catalogue des formations</a></li>
  23.                         <li><a href="{{ path('front.program.contact') }}" data-toggle="collapse" data-target=".navbar-collapse.in">Contact</a></li>
  24.                         <li><a href="{{ path('front.program.faq') }}" data-toggle="collapse" data-target=".navbar-collapse.in">Guide d'utilisation</a></li>
  25.                     </li>
  26.                 {% else %}
  27.                     <li><a href="{{ path('front.public.contact') }}" data-toggle="collapse" data-target=".navbar-collapse.in">Contact</a></li>
  28.                     <li><a href="{{ path('front.public.faq') }}" data-toggle="collapse" data-target=".navbar-collapse.in">Guide d'utilisation</a></li>
  29.                 {%  endif %}
  30.             </ul>
  31.             <ul class="nav navbar-nav navbar-right">
  32.                 {% if user.fullName is not defined %}
  33.                     <li><a href="{{ path('front.public.login') }}" title="Accéder à votre espace">Espace personnel</a></li>
  34.                 {% else %}
  35.                     {% if is_granted('ROLE_RESP') %}
  36.                         <li><a href="{{ path('front.account.team.registrations') }}" title="Espace agents">Espace agents</a></li>
  37.                     {% endif %}
  38.                     <li><a href="{{ path('front.account.registrations') }}">Mon compte</a></li>
  39. {#                     <li><a href="{{ path('front.account.logout') }}">Se déconnecter</a></li> #}
  40.                 {% endif %}
  41.             </ul>
  42.         </div>
  43.     </div>
  44. </nav>
  45. {% endblock header %}