templates/partials/header.html.twig line 1

Open in your IDE?
  1. <header class="container-fluid header">
  2.     <nav class="navbar">
  3.         <button class="burger">
  4.             <span class="visually-hidden">Toggle menu</span>
  5.         </button>
  6.         <div class="logo"><img src="{{ absolute_url( asset('build/images/icons/LOGO.svg') ) }}" alt="Logo"></div>
  7.         {% if app.user %}
  8.             <button class="login-button">
  9.                 <div style="background-image:url('{{ absolute_url( asset('build/images/icons/person.svg') ) }}');"></div>
  10.                 <span>{{ app.user.email}}</span>
  11.                 <i class="bi bi-chevron-down"></i>
  12.                 <ul class="account-dropdown">
  13.                     <li class="account-dropdown-item">
  14.                         <a href="{{ path('profile_orders', { '_locale': app.request.getLocale() }) }}"><img src="{{ absolute_url( asset('build/images/icons/myreservation.svg') ) }}" alt=""><span>{{ 'pages.account.reservations'|trans }}</span>
  15.                         </a>
  16.                     </li>
  17.                     <li class="account-dropdown-item">
  18.                         <a href="{{ path('profile_edit', { '_locale': app.request.getLocale() }) }}"><img src="{{ absolute_url( asset('build/images/icons/settings.svg') ) }}" alt=""><span>{{ 'pages.account.settings'|trans }}</span>
  19.                         </a>
  20.                     </li>
  21.                     <li class="account-dropdown-item">
  22.                         <a href="{{ path('web_logout') }}"><img src="{{ absolute_url( asset('build/images/icons/logout.svg') ) }}" alt=""><span>{{ 'pages.account.logout'|trans }}</span>
  23.                         </a>
  24.                     </li>
  25.                 </ul>
  26.             </button>
  27.         {% else %}
  28.             <div class="buttons-wrapper sign-buttons">
  29.                 <a class="signin-button signin-white-button" href="/{{ app.request.getLocale() }}/signin" style="color:#fff;">{{ 'pages.account.login'|trans }}</a>
  30.                 <a class="create-account-button" href="/{{ app.request.getLocale() }}/registration">
  31.                     <span>{{ 'pages.account.create'|trans }}</span>
  32.                 </a>
  33.             </div>
  34.         {% endif %}
  35.         {{ sonata_block_render({type: 'block.langMenu'}) }}
  36.         <ul class="menu">
  37.             <li class="menu-item">
  38.                 <a href="{{ path('app_homepage') }}" role="button" class="">
  39.                     <span class="visually-hidden">Logo</span>
  40.                     <img src="{{ absolute_url( asset('build/images/icons/LOGO.svg') ) }}" alt="Logo"></a>
  41.             </li>
  42.             {% if app.request.locale == 'en' %}
  43.                 <li class="menu-item dropdown">
  44.                     <a title="Transfers" class="menu-item-link">
  45.                         Transfers
  46.                     </a>
  47.                     <ul class="dropdown-content" style="width:260px;">
  48.                         <li class="dropdown-content-item">
  49.                             <a href="/en/transfer/pico" title="Transfer to Pico do Arieiro">
  50.                                 Transfer to Pico do Arieiro
  51.                             </a>
  52.                         </li>
  53.                         <li class="dropdown-content-item">
  54.                             <a href="/en/transfer/rabacal" title="Transfer to Rabaçal">
  55.                                 Transfer to Rabaçal
  56.                             </a>
  57.                         </li>
  58.                         <li class="dropdown-content-item">
  59.                             <a href="/en/transfer/fanal" title="Transfer to Fanal Forest">
  60.                                 Transfer to Fanal Forest
  61.                             </a>
  62.                         </li>
  63.                         <li class="dropdown-content-item">
  64.                             <a href="/en/transfer/sunrise-transfer-to-pico-do-arieiro" title="Sunrise transfer to Pico do Arieiro">
  65.                                 Sunrise transfer to Pico do Arieiro
  66.                             </a>
  67.                         </li>
  68.                     </ul>
  69.                 </li>
  70.             {% endif %}
  71.             <li class="menu-item">
  72.                 <a href="{{ path('app_bus_stop') }}" title="Bus stops" class="menu-item-link">
  73.                     {{ 'pages.menu.busStops'|trans }}
  74.                 </a>
  75.             </li>
  76.             {% if app.request.locale == 'en' %}
  77.                 <li class="menu-item">
  78.                     <a href="/en/travel-info" title="Travel info" class="menu-item-link">
  79.                         Travel info
  80.                     </a>
  81.                 </li>
  82.             {% endif %}
  83.             {% if app.request.locale == 'en' %}
  84.                 <li class="menu-item">
  85.                     <a href="/en/hike-trails" title="Hike trails" class="menu-item-link">
  86.                         Hike trails
  87.                     </a>
  88.                 </li>
  89.             {% endif %}
  90.             {% if app.request.locale == 'en' %}
  91.                 <li class="menu-item">
  92.                     <a href="/en/outdoor-safety" title="Before your trip" class="menu-item-link">
  93.                         Before your trip
  94.                     </a>
  95.                 </li>
  96.             {% endif %}
  97.             <li class="menu-item">
  98.                 <a href="{{ path('app_inspirations') }}" title="Inspirations" class="menu-item-link">
  99.                     {{ 'pages.menu.inspirations'|trans }}
  100.                 </a>
  101.             </li>
  102.             <li class="menu-item dropdown">
  103.                 <a title="About us" class="menu-item-link">
  104.                     Info
  105.                 </a>
  106.                 <ul class="dropdown-content">
  107.                     <li class="dropdown-content-item">
  108.                         <a href="{{ path('app_faq') }}" title="FAQ">
  109.                             {{ 'pages.menu.faq'|trans }}
  110.                         </a>
  111.                     </li>
  112.                     <li class="dropdown-content-item">
  113.                         <a href="{{ path('app_contact') }}" title="Contact">
  114.                             {{ 'pages.menu.contact'|trans }}
  115.                         </a>
  116.                     </li>
  117.                     <li class="dropdown-content-item">
  118.                         <a href="{{ path('app_about_us') }}" title="About us">
  119.                             {{ 'pages.menu.about'|trans }}
  120.                         </a>
  121.                     </li>
  122.                 </ul>
  123.             </li>
  124.             {% if app.user %}
  125.                 <div></div>
  126.             {% else %}
  127.                 <div class="buttons-wrapper">
  128.                     <a class="signin-button signin-white-button" href="{{ app.request.getLocale() }}/signin" style="color:#fff;">{{ 'pages.account.login'|trans }}</a>
  129.                     <a class="create-account-button" href="{{ app.request.getLocale() }}/registration">
  130.                         <span>{{ 'pages.account.create'|trans }}</span>
  131.                     </a>
  132.                 </div>
  133.             {% endif %}
  134.         </ul>
  135.     </nav>
  136. </header>