templates/partials/home/hotels.html.twig line 1

Open in your IDE?
  1. <section class="main-block home-hotels home-section">
  2.     <div class="container">
  3.         {% for hotel in hotels %}
  4.             {% if hotel.enabled %}
  5.                 {{ full_admin_edit(hotel, 'edit', {}, 'hotel-'~hotel.id~' icon-edit-inline', '', 'esi' ) }}
  6.                 <div class="home-hotels--item">
  7.                     <h3 class="home-hotels--item-title subtitle-caps">{{ hotel.location.name }}</h3>
  8.                     {% if hotel.direction %}
  9.                         <h4 class="home-hotels--item-direction">{{ hotel.direction }}</h4>
  10.                     {% endif %}
  11.                     <div class="home-hotels--item-content">
  12.                         <div class="home-hotels--bg-desktop">
  13.                             <picture-component class="js-picture-component" :image="{{ picture_data(hotel.verticalMainImage, null) }}"></picture-component>
  14.                         </div>
  15.                         <div class="home-hotels--bg-mobile">
  16.                             <picture-component class="js-picture-component" :image="{{ picture_data(hotel.mainImage, null) }}"></picture-component>
  17.                         </div>
  18.                         <a class="home-hotels--link js-go-page" href="{{ path(hotel, {'type': 'hotel'}) }}"></a>
  19.                         <div class="home-hotels--container position-relative hotel-{{ hotel.id }}">
  20.                             <div class="lazy-animation">
  21.                                 <h3 class="home-hotels--pretitle">Artiem</h3>
  22.                                 <h2 class="home-hotels--title">{{ hotel.simpleName | upper }}</h2>
  23.                                 <ul class="home-hotels--keys">
  24.                                     <li class="home-hotels--keys-item">
  25.                                         <a class="js-go-page" href="{{ url(hotel) }}">{{ 'hotel.home' | trans }}</a>
  26.                                     </li>
  27.                                     {% for experience in hotel.experiences %}
  28.                                         <li class="home-hotels--keys-item">
  29.                                             <a class="js-go-page" href="{{ url(experience) }}">{{ experience.menuTitle }}</a>
  30.                                         </li>
  31.                                     {% endfor %}
  32.                                     <li class="home-hotels--keys-item">
  33.                                         <a class="js-go-page" href="{{ path(hotel, {'type': 'room'}) }}">{{ 'app.global.rooms' | trans }}</a>
  34.                                     </li>
  35.                                     {% if hotel.id == 3 %}
  36.                                         <li class="home-hotels--keys-item">
  37.                                             <a class="js-go-page" href="{{ url('wam_routing_url_29') }}">{{ 'app.global.apartments' | trans }}</a>
  38.                                         </li>
  39.                                     {% endif %}
  40.                                 </ul>
  41.                             </div>
  42.                         </div>
  43.                     </div>
  44.                 </div>
  45.             {% endif %}
  46.         {% endfor %}
  47.     </div>
  48.     {#
  49.     <a class="home-hotels--item is-last" style="background-image: url('/img/bal-hotel.jpg');" href="{{ 'app.home.bal_hotel.url' | trans }}" target="_blank">
  50.         <div class="home-hotels--container position-relative hotel-5">
  51.             <div class="lazy-animation">
  52.                 <h3 class="home-hotels--pretitle">{{ 'app.home.bal_hotel.pretitle' | trans }}</h3>
  53.                 <h2 class="home-hotels--title">{{ 'app.home.bal_hotel.title' | trans }}</h2>
  54.             </div>
  55.         </div>
  56.     </a>
  57.     #}
  58.     {% include 'partials/home/scroll_button.html.twig' with { 'text': 'app.home.scroll.hotels'|trans|upper } %}
  59. </section>