templates/menu/hotels_top.html.twig line 1

Open in your IDE?
  1. {% set currentCity = '' %}
  2. <span class="navbar-main--title">{{ 'app.global.destinys'|trans }}</span>
  3. <div class="navbar-main--wrapper-items">
  4.     {% for hotel in hotels %}
  5.         {% if currentCity != hotel.location.class %}
  6.             <li>
  7.                 <a class="navbar-main--item js-submenu-open" data-dest="submenu-{{ hotel.location.class }}"
  8.                     href="{{ url(hotel.location) }}">{{ hotel.location.class }}
  9.                 <span
  10.                     class="navbar-main--icon-arrow">{% include 'partials/global/svg/icon-arrow-artiem.svg.twig' %}</span>
  11.                 </a>
  12.                 {% set currentCity =  hotel.location.class %}
  13.             </li>
  14.         {% endif %}
  15.     {% endfor %}
  16. </div>