templates/partials/hotel/room.html.twig line 1

Open in your IDE?
  1. {% for room in rooms %}
  2. <section class="room lazy-animation" id="{{ room.title |replace({' ': '-'}) |lower }}">
  3.     <div class="container">
  4.         <h3 class="room--title">{{ room.title }}</h3>
  5.         <button class="room--link js-more-room" data-reverse="{{ 'app.global.less_room_info' | trans }}" data-front="{{ 'app.global.more_room_info' | trans }}">
  6.             {% include 'partials/global/svg/icon-arrow-down.svg.twig' %}
  7.         </button>
  8.         <button class="room--button button green is-dark js-book">
  9.             <span>{{ 'app.global.book' | trans }}</span>
  10.         </button>
  11.         <div class="room--content">
  12.             <div class="room--details">
  13.                 <div class="room--description">{{ room.description | raw }}</div>
  14.                 <div class="room--feature-container">
  15.                     {% for ksp in room.keySellingPoints %}
  16.                         <div class="room--feature">
  17.                             {% include 'partials/global/svg/'~ksp.iconClass~'.svg.twig' %}
  18.                             <h3 class="room--feature-text">
  19.                                 {{ ksp.title }}
  20.                             </h3>
  21.                         </div>
  22.                     {% endfor %}
  23.                 </div>
  24.                 {% if room.showAdvantagesLink is defined and room.showAdvantagesLink %}
  25.                     <a class="room-anchor link green" href="#experience-benefits"><span>{{ 'room.ecoactions.button' | trans }}</span></a>
  26.                 {% endif %}
  27.             </div>
  28.             {% if room.gallery %}
  29.                 <div class="room--media media-slide {% if room.gallery.medias and room.gallery.medias|length > 1 %}js-room-slide{% endif %}">
  30.                     {% for image in room.gallery.medias %}
  31.                         <div class="room--media-item">
  32.                             <picture-component class="js-picture-component is-absolute" :image="{{ picture_data(image, null) }}"></picture-component>
  33.                         </div>
  34.                     {% endfor %}
  35.                 </div>
  36.             {% endif %}
  37.         </div>
  38.     </div>
  39. </section>
  40. {% endfor %}