{% macro renderItems(item) %}
{% set action = app.request.requestUri %}
<li class="{{ action == path(item.route) ? 'is-actual' : '' }}">
{% set noFollow = '' %}
{% if item.noFollow == true %}
{% set noFollow = 'rel="nofollow"' %}
{% endif %}
<a class="navbar-main--item js-go-page" {% if item.openNewWindow %}target="_blank"{% endif %} href="{{ item.link ? item.link : path(item.route) }}" {{ noFollow }}>{{ item.text }}</a>
{% if item.children|length %}
<ul>
{% for child in item.children %}
{% if child.enabled %}
{{ _self.renderItems(child) }}
{% endif %}
{% endfor %}
</ul>
{% endif %}
</li>
{% endmacro %}
{% set current_hotel = '' %}
{% if app.request.attributes.get('contentDocument') %}
{% if app.request.attributes.get('contentDocument') is instance_of('Application\\FrontendBundle\\Entity\\Hotel') %}
{% set current_hotel = app.request.attributes.get('contentDocument') %}
{% endif %}
{% if app.request.attributes.get('contentDocument') is instance_of('Application\\FrontendBundle\\Entity\\Experience') %}
{% set current_hotel = app.request.attributes.get('contentDocument').hotel %}
{% endif %}
{% endif %}
{% if items %}
<nav class="navbar-main is-principal" role="navigation">
<ul>
<div class="navbar-main--wrapper">
{% include 'menu/hotels_top.html.twig' %}
</div>
<div class="navbar-main--wrapper">
<span class="navbar-main--title">{{ 'app.global.services'|trans }}</span>
<div class="navbar-main--wrapper-items">
{% for item in items %}
{% if item.route != 'wam_routing_url_5' or item.currentLocale in blog_enabled_locales %}
{{ _self.renderItems(item) }}
{% endif %}
{% endfor %}
<li>
<a class="navbar-main--item secondary-item js-submenu-open"
data-dest="submenu-secondary-reservation">{{ 'menu.submenu.booking'|trans }}
<span
class="navbar-main--icon-arrow
special">{% include 'partials/global/svg/icon-arrow-artiem.svg.twig' %}</span>
</a>
</li>
</div>
</div>
<div class="navbar-main--wrapper">
<span class="navbar-main--title">{{ 'app.global.artiem'|trans }}</span>
<div class="navbar-main--wrapper-items">
{{ render_menu('TOP_SECONDARY') }}
<li>
<a class="navbar-main--item js-submenu-open" data-dest="submenu-secondary-artiem">{{ 'menu.submenu.artiem'|trans }}
<span
class="navbar-main--icon-arrow">{% include 'partials/global/svg/icon-arrow-artiem.svg.twig' %}</span>
</a>
</li>
</div>
</div>
</ul>
</nav>
{% endif %}
{% include 'menu/submenu_top.html.twig' %}
{% include 'menu/submenu_secondary.html.twig' %}