templates/layout/partials/header.html.twig line 1

Open in your IDE?
  1. <!-- Start header -->
  2.     <header class="top-navbar ">
  3.         <nav class="navbar navbar-expand-lg navbar-light bg-light">
  4.             <div class="container-fluid">
  5.                 <a class="navbar-brand" href="index.html">
  6.                     <img src="images/logo.png" alt="" />
  7.                 </a>
  8.                 <button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbars-host" aria-controls="navbars-rs-food" aria-expanded="false" aria-label="Toggle navigation">
  9.                     <span class="icon-bar"></span>
  10.                     <span class="icon-bar"></span>
  11.                     <span class="icon-bar"></span>
  12.                 </button>
  13.                 <div class="collapse navbar-collapse " id="navbars-host">
  14.                     <ul class="navbar-nav ml-auto mx-auto">
  15.                         <li  class=" nav-item  {% if app.request.attributes.get('_route') == "app_home" %}active{% endif %}"  ><a class="nav-link" href="{{ path('app_home') }}">Home</a></li>
  16.                     {#    <li class="nav-item  {% if app.request.attributes.get('_route') == "app_about" %}active{% endif %}"><a class="nav-link" href="{{ path('app_about') }}">About Us</a></li>
  17.                         
  18.                         <li class="nav-item {% if app.request.attributes.get('_route') == "app_course_gridt" %}active{% endif %} ">
  19.                             <a class="nav-link" href="{{ path('app_course_grid') }}">Courses </a>
  20.     
  21.                         </li>
  22.                         <li class="nav-item {% if app.request.attributes.get('_route') == "app_blogs" %}active{% endif %} ">
  23.                             <a class="nav-link" href="{{ path('app_blogs') }}" id="dropdown-a">Blog </a>
  24.                             
  25.                         </li>
  26.                         
  27.                         <li class="nav-item {% if app.request.attributes.get('_route') == "app_prices" %}active{% endif %}"><a class="nav-link" href="{{ path('app_prices') }}">Pricing</a></li>
  28.                         #}
  29.                         <li class="nav-item {% if app.request.attributes.get('_route') == "app_teachers" %}active{% endif %} "><a class="nav-link" href="{{ path('app_teachers') }}">Teachers</a></li>
  30.                         <li class="nav-item  {% if app.request.attributes.get('_route') == "app_rooms" %}active{% endif %}"><a class="nav-link" href="{{ path('app_rooms') }}">Classrooms</a></li>
  31.                         {#<li class="nav-item  {% if app.request.attributes.get('_route') == "app_rooms" %}active{% endif %}"><a class="nav-link" href="{{ path('app_staff') }}">Staff</a></li>#}
  32.                         <li class="nav-item {% if app.request.attributes.get('_route') == "app_contact" %}active{% endif %} "><a class="nav-link" href="{{ path('app_contact')}}">Contact</a></li>
  33.                     {% if  app.user %} 
  34.                          <li class="nav-item {% if app.request.attributes.get('_route') == "app_account" %}active{% endif %} "><a class="nav-link" href="{{ path('app_account')}}">Account</a></li>
  35.                     {% else  %}
  36.                          <li class="nav-item {% if app.request.attributes.get('_route') == "app_login" %}active{% endif %} "><a class="nav-link" href="{{ path('app_login')}}">Sign In</a></li>
  37.                          <li class="nav-item {% if app.request.attributes.get('_route') == "app_register" %}active{% endif %} "><a class="nav-link" href="{{ path('app_register')}}">Sign Up</a></li>
  38.                      
  39.                     {% endif  %}
  40.                                                 <li class="nav-item {% if app.request.attributes.get('_help') == "app_help" %}active{% endif %} "><a class="nav-link" href="{{ path('app_help')}}">Help</a></li>
  41.                      </ul>
  42.                     <ul class="nav navbar-nav navbar-right">
  43.                         <li>
  44.                                 {% if  app.user %} 
  45.                                         <a class="hover-btn-new log"  href="#"  onclick= "event.preventDefault(); document.getElementById('js-logout-form').submit();"  ><span>Logout</span></a>
  46.                                         <form id="js-logout-form" action="{{ path('app_logout') }}" style="dislay:none;" method="POST" >
  47.                                             <input type="hidden" name="_csrf_token" value="{{ csrf_token('logout')}}"/>
  48.                                             
  49.                                         </form>
  50.                                     
  51.                             {#    {% else  %}
  52.                                         <a class="hover-btn-new log orange"   data-toggle="modal" data-target="#login" ><span>Book Now</span></a>
  53.                                 #}{% endif  %} 
  54.                         </li>
  55.                     </ul>
  56.                 </div>
  57.             </div>
  58.         </nav>
  59.     </header>
  60.     <!-- End header -->