templates/front/includes/header.html.twig line 1

Open in your IDE?
  1. <header class="main-header header-style-one">
  2.     <div class="mobile-header">
  3.         <div class="mobile-header-appointement">
  4.             <a class="btn btn-appointement side-nav-toggler nav-toggler hidden-bar-opener" href="#">
  5.                 {{ 'app.menu.appointment'|trans }}
  6.             </a>
  7.         </div>
  8.         {% set activeTheme = app.session.get('theme', 'horse') %}
  9.         <nav class="main-menu">
  10.             <ul class="navigation navigation-right clearfix">
  11.                 {# <li class="dropdown">
  12.                     <a href="#" class="dropdown-toggle" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false" style="padding: 17px 0;">
  13.                         <div  style="display: inline-block; background-color: orange; border-radius: 50%; width: 45px;">
  14.                             <img src="{{ asset('front/assets/images/icon/' ~ activeTheme ~ '.png') }}" style="padding: 5px;">
  15.                         </div>
  16.                     </a>
  17.                     {% set themes = ['horse', 'camel', 'quad'] %}
  18.                     <ul>
  19.                         {% for theme in themes %}
  20.                             {% if theme != activeTheme %}
  21.                                 <li>
  22.                                     <a href="{{ path('change_theme', {'theme': theme}) }}">
  23.                                         <img src="{{ asset('front/assets/images/icon/' ~ theme ~ '.png') }}" alt="{{ theme }}" width="30px">
  24.                                         &nbsp;&nbsp;{{ ('app.theme.' ~ theme)|trans }}
  25.                                     </a>
  26.                                 </li>
  27.                             {% endif %}
  28.                         {% endfor %}
  29.                     </ul>
  30.                 </li> #}
  31.                 <li class="dropdown right">
  32.                     <a href="#" class="dropdown-toggle" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false" style="padding: 23px 0;">
  33.                         <img src="{{ asset(flag_images_directory ~ app.request.locale[-2:] ~ '.png') }}" width="40px">
  34.                     </a>
  35.                     {% include 'front/includes/header_languages.html.twig' with { 'route_name': route_name, 'route_parameters': route_parameters } %}
  36.                 </li>
  37.             </ul>
  38.         </nav>
  39.     </div>
  40.     <!--Start header lawer -->
  41.     <div class="header-lawer">
  42.         <div class="container clearfix">
  43.             <div class="outer-box clearfix">
  44.                 <!--Top Left-->
  45.                 <div class="header-lawer-left float-left clearfix">
  46.                     <div class="logo">
  47.                         <a href="{{ path('front_homepage') }}"><img src="{{ asset('front/assets/images/resources/logo.png') }}" alt="Awesome Logo" title="" style="max-width: 200px;"></a>
  48.                     </div>
  49.                     <div class="nav-outer clearfix">
  50.                         <!--Mobile Navigation Toggler-->
  51.                         <div class="mobile-nav-toggler">
  52.                             <div class="inner">
  53.                                 <span class="icon-bar"></span>
  54.                                 <span class="icon-bar"></span>
  55.                                 <span class="icon-bar"></span>
  56.                             </div>
  57.                         </div>
  58.                         <!-- Main Menu -->
  59.                         {% include 'front/includes/main_menu.html.twig' with { 'route_name': route_name, 'route_parameters': route_parameters } %}
  60.                         <!-- Main Menu End-->
  61.                     </div>
  62.                 </div>
  63.                 <!--Top Right-->
  64.                 <div class="header-lawer-right clearfix float-right">
  65.                     <div class="hidden-content-button" style="padding: 21px 10px 21px">
  66.                         <a class="btn btn-appointement side-nav-toggler nav-toggler hidden-bar-opener" href="#">
  67.                             {{ 'app.menu.appointment'|trans }}
  68.                         </a>
  69.                     </div>
  70.                     {% include 'front/includes/main_menu_right.html.twig' with { 'route_name': route_name, 'route_parameters': route_parameters } %}
  71.                 </div>
  72.             </div>
  73.         </div>
  74.     </div>
  75.     <!--End header lawer -->
  76.     <!--Sticky Header-->
  77.     {% include 'front/includes/sticky_header.html.twig' %}
  78.     <!--End Sticky Header-->
  79.     <!-- Mobile Menu  -->
  80.     {% include 'front/includes/mobile_menu.html.twig' %}
  81.     <!-- End Mobile Menu -->
  82. </header>