<section class="promo-detail">
<div class="container">
<div class="promo-detail--ckeditor">
<div class="promo-detail--ckeditor-includes">
{{ promotion.content | raw }}
</div>
{% if promotion.secondContent %}
<div class="promo-detail--ckeditor-forget">
{{ promotion.secondContent | raw }}
</div>
{% endif %}
{% if promotion.thirdContent %}
<div class="promo-detail--ckeditor-others">
{{ promotion.thirdContent | raw }}
</div>
{% endif %}
{% if promotion.document %}
<div class="promo-detail--more-info">
<a href="{{ promotion.document| file_url }}" target="_blank"
class="promo-header--button button green">
<span>{{ promotion.documentTitle }}</span>
</a>
</div>
{% endif %}
<div class="introduction--links">
{% if promotion.popUpGalleryTitle %}
<a href="#" class="introduction--link-gallery link black js-gallery-open"
data-dest="introduction--gallery">
<span>{{ promotion.popUpGalleryTitle }}</span>
</a>
{% endif %}
</div>
{% if promotion.popUpGalleryTitle %}
<div class="introduction--gallery js-gallery-container">
<div class="introduction--gallery-content">
<div class="introduction--gallery-slider js-gallery-slider">
{% for media in promotion.popUpGallery.medias %}
{% if media is youtubeVideo %}
<a data-src="{{ media|media_url }}" >
<img src="{{ get_thumbnail_url(media) }}" >
</a>
{% else %}
<a data-src="{{ media|resize(1280)|file_url }}">
<img src="{{ media|resize(1280)|file_url }}">
</a>
{% endif %}
{% endfor %}
</div>
</div>
</div>
{% endif %}
</div>
<div class="promo-detail--booking">
{% if promotion.gallery is not null %}
<div class="promo-detail--image">
<div class="media-slide {% if promotion.gallery.galleryHasMedias|length > 1 %} js-media-slide{% endif %}">
{% for image in promotion.gallery.medias %}
{% if image is youtubeVideo %}
<div class="promo-description--item has-video" style="overflow: hidden;">
<video id=""
autoplay
class="js-responsive-video preload-video"
data-desktop=""
data-tablet=""
data-mobile=""
loop
muted
data-setup=
'{
"techOrder": ["youtube"],
"sources": [{
"type": "video/youtube",
"src":
"{{ 'https://www.youtube.com/watch?v='~image.reference }}?modestbranding=1&;showinfo=0&;autohide=1&;rel=0;"
}]
}'
>
</video>
</div>
{% else %}
<div class="promo-description--item">
<picture-component class="js-picture-component is-absolute" :image="{{ picture_data(image, null) }}"></picture-component>
</div>
{% endif %}
{% endfor %}
</div>
</div>
{% endif %}
{% if promotion.testimonials | length > 0 %}
<div class="testimonials">
<div class="testimonials--title">{{ 'app.promotions.testimonials' | trans | upper }}</div>
<div class="media-slide js-media-slide">
{% for testimonial in promotion.testimonials if (testimonial.enabled and testimonial.locale == app.request.locale) %}
<div class="container-slide">
<div class="testimonials--top">
<div class="testimonials--top-left"><span>{{ testimonial.score }}</span>/5</div>
<div class="testimonials--top-right">
<div class="testimonials--top-right--hotel">
<i class="testimonials--top-icon">
{% include 'partials/global/svg/location.svg.twig' %}
</i>
{{ testimonial.hotel.title }}
</div>
<div
class="testimonials--top-right--date">{{ testimonial.createdAt | date('d-m-Y') }}</div>
</div>
</div>
<div class="testimonials--content">
<div class="testimonials--content-title">{{ testimonial.author | title }}</div>
<div class="testimonial--content-text">
{{ testimonial.message }}
</div>
</div>
</div>
{% endfor %}
</div>
</div>
{% endif %}
</div>
</div>
</section>