{% extends 'layout.html.twig' %}
{% block body_class %}is-home{% endblock %}
{% block content %}
{% set sections = [
'app.home.anchor.welcome' | trans,
'app.home.anchor.hotels' | trans,
'app.home.anchor.gifts' | trans,
'app.home.anchor.benefits' | trans,
'app.home.anchor.world' | trans,
'app.home.anchor.magazine' | trans,
'app.home.anchor.theone' | trans,
'app.home.anchor.testimonials' | trans,
'app.home.anchor.newsletter' | trans,
] %}
{# SCROLL EFFECT #}
{# DISABLE----> data-fullpage-scroll == 0 #}
{# ENABLE ----> data-fullpage-scroll == 1 #}
{% include 'partials/global/booking_top.html.twig' with {'show_label': true } %}
<main class="main-block--container home-block-container" data-fullpage-scroll="{{ (app.request.get('_xhotjar') == 'true') ? '0' : '1' }}">
{{ render_block('home.banner_top.block', 'partials/home/blocks/welcome.html.twig') }}
{{ render_block('home.best_hotel.block', 'partials/home/cta_best_hotel.html.twig') }}
{% include 'partials/home/hotels.html.twig' %}
{% set dlblock = get_block('home.downloadables.container') %}
{% if dlblock %}
{% if dlblock.blockHasBlocks|length > 1 %}
{{ render_block('home.downloadables.container', 'partials/home/best_hotel_block_tabs.html.twig') }}
{% else %}
{{ render_block('home.downloadables.container', 'partials/home/best_hotel_block.html.twig') }}
{% endif %}
{% endif %}
{# {{ render_block('home.gifts.block', 'partials/home/blocks/gifts.html.twig', {popular_gifts: popular_gifts}) }} #}
{# {{ render_block('home.benefits.block', 'partials/home/blocks/benefits.html.twig') }} #}
{% include 'partials/home/world.html.twig' %}
{# {% if app.request.locale != 'de' and app.request.locale != 'fr' %}
{% include 'partials/home/magazine.html.twig' %}
{% endif %} #}
{# {{ render_block('home.the_one.block', 'partials/home/blocks/theone.html.twig') }} #}
{# {% include 'partials/home/testimonials.html.twig' %} #}
{# {{ render_block('home.newsletter.block', 'partials/home/blocks/newsletter.html.twig') }} #}
{{ render_block('home.newsletter.block', 'partials/home/blocks/newsletter_blog.html.twig', { 'posts': posts }) }}
<script>
var titles = {
'welcome': '{{ 'app.home.anchor.welcome' | trans }}',
'hotels': '{{ 'app.home.anchor.hotels' | trans }}',
'gifts': '{{ 'app.home.anchor.gifts' | trans }}',
'benefits': '{{ 'app.home.anchor.benefits' | trans }}',
'world': '{{ 'app.home.anchor.world' | trans }}',
'magazine': '{{ 'app.home.anchor.magazine' | trans }}',
'theone': '{{ 'app.home.anchor.theone' | trans }}',
'testimonials': '{{ 'app.home.anchor.testimonials' | trans }}',
'newsletter': '{{ 'app.home.anchor.newsletter' | trans }}'
};
</script>
</main>
{# <div class="home-navigation">
<div class="home-navigation--content">
<div class="home-navigation--active">{{ 'app.home.welcome' | trans }}</div>
<ul class="home-navigation--menu">
{% for section in sections %}
<li data-menuanchor="{{ section }}" class="{{ loop.first ? 'active' : '' }}">
<a href="#{{ section }}"><span>{{ section }}</span></a>
</li>
{% endfor %}
</ul>
</div>
</div> #}
<!-- The hotels network js de la Home-->
<script src='https://www.thehotelsnetwork.com/js/hotel_price_widget.js?account_key=3a1415764054c0c2384405ebe2dfbae7'></script>
<!-- End The hotels network -->
{% endblock content %}