{% extends 'front/base_front.html.twig' %}{% block title %} {{ hotel_data.name ?? 'Pages.HotelDetail.Label'|trans({}, 'messages_front') }}{% endblock %}{% block stylesheets %} {{ parent() }} {{ encore_entry_link_tags('app') }}{% endblock %}{% block javascripts %} {{ parent() }} {{ encore_entry_script_tags('app') }}{% endblock %}{% block SEO %} {% if hotel_data.name is defined %} <!-- title --> {% if hotel_data.seo is defined and hotel_data.seo is not null and hotel_data.seo.title is not empty %} <meta name="title" content="{{ hotel_data.seo.title }}"> <meta property="og:title" content="{{ hotel_data.seo.title }}"> {% else %} <meta name="title" content="{{ hotel_data.name }}"> <meta property="og:title" content="{{ hotel_data.name }}"> {% endif %} <!-- description --> {% if hotel_data.seo is defined and hotel_data.seo is not null and hotel_data.seo.description is not empty %} <meta name="description" content="{{ hotel_data.seo.description }}"> <meta property="og:description" content="{{ hotel_data.seo.description }}"> {% endif %} <meta property="og:type" content="website"/> <meta property="og:url" content="{{ app.request.getUri() }}"> <meta property="og:image" content="{{ hotel_data.thumbImage ?? '' }}"> <!-- social media specification --> {% for social_media in social_networks %} {% if social_media.name == "Facebook" %} <meta property="fb:{{ social_media.pageId }}" content="{{ social_media.pageId }}"> {% endif %} {% if social_media.name == "X" %} <meta name="twitter:card" content="{{ hotel_data.seo.description ?? '' }}"/> <meta name="twitter:site" content="{{ social_media.pageId }}"/> {% endif %} {% endfor %} {% endif %}{% endblock %}{% block container %} {% if hotel_data.name is defined %} {# Adresse affichée sous le nom et dans « Emplacement » : l'adresse n'existe que pour les hôtels HUB #} {% set hotel_location = [hotel_data.city ?? null, hotel_data.country ?? null]|filter(v => v is not empty)|join(', ') %} {% set hotel_address = hotel_data.address is defined and hotel_data.address is not empty ? hotel_data.address ~ (hotel_location ? ', ' ~ hotel_location : '') : hotel_location %} <section id="hotel_details_main" class="hd-page" data-controller="hotel-detail"> <div class="container hd"> {{ include('front/hotel/detail/_header.html.twig') }} <div class="hd-row"> {{ include('front/hotel/detail/_gallery.html.twig') }} <aside class="hd-side"> {{ include('front/hotel/detail/_booking_card.html.twig') }} {{ include('front/hotel/detail/_alerts.html.twig') }} </aside> </div> <div class="row"> {{ include('front/hotel/detail/_amenities.html.twig') }} {{ include('front/hotel/detail/_description.html.twig') }} {{ include('front/hotel/detail/_location.html.twig') }} </div> {{ include('front/hotel/detail/_recommended.html.twig') }} </div> {# Barre mobile : apparaît quand la carte « Vérifier la disponibilité » sort de l'écran #} <div class="hd-mobile-bar" data-hotel-detail-target="mobileBar" hidden> <div class="hd-mobile-bar-text"> <b>{{ hotel_data.name }}</b> <small>{{ hotel_location }}</small> </div> <button type="button" class="hd-btn-primary" data-action="hotel-detail#scrollToBooking"> {{ 'Pages.HotelDetail.SeePrices'|trans({}, 'messages_front') }} </button> </div> </section> {% include 'front/_faq.html.twig' with { faqs: faqs } only %} {% else %} <section class="hd-page"> <div class="container hd"> <div class="hd-empty-state"> <i class="bi bi-building-x" aria-hidden="true"></i> <h1>{{ 'Pages.HotelDetail.NotFoundTitle'|trans({}, 'messages_front') }}</h1> <p>{{ 'Pages.HotelDetail.NotFoundText'|trans({}, 'messages_front') }}</p> <a class="hd-btn-primary" href="{{ path('app_main') }}">{{ 'Pages.HotelDetail.BackHome'|trans({}, 'messages_front') }}</a> </div> </div> </section> {% endif %}{% endblock %}