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

Open in your IDE?
  1. {% set activeTheme = app.session.get('theme', 'horse') %}
  2. <nav class="main-menu navbar-expand-md navbar-light">
  3.     <div class="collapse navbar-collapse show clearfix" id="navbarSupportedContent">
  4.         <ul class="navigation navigation-right clearfix navigation-right-side">
  5.             <li class="dropdown" style="margin-right: 0px;">
  6.                 <a href="#" class="dropdown-toggle" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false" style="padding: 23px 0;">
  7.                     <img src="{{ asset(flag_images_directory ~ app.request.locale[-2:] ~ '.png') }}" width="40px">
  8.                 </a>
  9.                 {% include 'front/includes/header_languages.html.twig' with { 'route_name': route_name, 'route_parameters': route_parameters } %}
  10.             </li>
  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.         </ul>
  32.     </div>
  33. </nav>