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

Open in your IDE?
  1. <header class="header-main" role="banner">
  2.     <div class="header-main--head js-nav-menu"
  3.         :class="{'is-menu-scrolled' : menuScrolled, 'is-menu-hidden-mobile' : !menuHidden}" data-color="is-dark">
  4.         <a class="header-main--head-logo js-return-page" href="{{ url('home') }}">{% include 'partials/global/svg/artiem.svg.twig' %}</a>
  5.         <button class="header-main--opener js-menu-open">
  6.             {% include 'partials/global/svg/menu.svg.twig' %}
  7.         </button>
  8.         <button class="header-main--closer js-menu-close">
  9.             {% include 'partials/global/svg/close.svg.twig' %}
  10.         </button>
  11.     </div>
  12.     <div class="header-main--container js-nav-menu"
  13.         :class="{'is-menu-scrolled' : menuScrolled, 'is-menu-hidden' : !menuHidden}">
  14.         <a class="header-main--logo js-return-page"
  15.             href="{{ url('home') }}"><h1>{% include 'partials/global/svg/artiem-brand.svg.twig' %}</h1></a>
  16.         {{ render_menu('TOP') }}
  17.         {% if isBlog is defined and isBlog %}
  18.         {% include 'menu/menu_top_secondary.html.twig' with { isBlog: 'true' } %}
  19.         {% else %}
  20.         {% include 'menu/menu_top_secondary.html.twig' %}
  21.         {% endif %}
  22.     </div>
  23.     <button class="button header-solid green js-book">
  24.         <span>{{ "app.global.book" | trans }}</span>
  25.     </button>
  26.     {% if hotel is defined and not hotel.isApartment %}
  27.     <nav class="hotel-menu js-nav-menu" :class="{'is-menu-hidden' : !menuHidden}">
  28.         <ul class="hotel-menu--list">
  29.             <li class="hotel-menu--item">
  30.                 {% set hotelPath = path(hotel) %}
  31.                 <a class="{{ app.request.pathInfo == hotelPath ? 'active' : '' }}" href="{{ hotelPath }}">
  32.                     {{ 'app.global.hotel' | trans }}
  33.                 </a>
  34.             </li>
  35.             {% if hotel.id != 6 %}
  36.             {% set roomsPath = path(hotel, {'type': 'room'}) %}
  37.             <li class="hotel-menu--item">
  38.                 <a href="{{ roomsPath }}" class="{{ app.request.pathInfo == roomsPath ? 'active' : '' }}">
  39.                     {{ 'app.global.rooms' | trans }}
  40.                 </a>
  41.             </li>
  42.             {% endif %}
  43.             {% if hotel.id == 6 %}
  44.             {% set apartmentsPath = path(hotel, {'type': 'room'}) %}
  45.             <li class="hotel-menu--item">
  46.                 <a href="{{ apartmentsPath }}" class="{{ app.request.pathInfo == apartmentsPath ? 'active' : '' }}">
  47.                     {{ 'app.global.apartments' | trans }}
  48.                 </a>
  49.             </li>
  50.             {% endif %}
  51.             {% for experience_menu in hotel.experiences %}
  52.             <li class="hotel-menu--item"><a href="{{ url(experience_menu) }}"
  53.                     class="{% if experience is defined and experience.id == experience_menu.id %}active{% endif %}">{{ experience_menu.menuTitle }}</a>
  54.                 {% endfor %}
  55.         </ul>
  56.     </nav>
  57.     {% endif %}
  58. </header>