templates/default/home.html.twig line 1

Open in your IDE?
  1. {% extends 'layout.html.twig' %}
  2. {% block body_class %}is-home{% endblock %}
  3. {% block content %}
  4. {% set sections = [
  5.     'app.home.anchor.welcome' | trans,
  6.     'app.home.anchor.hotels' | trans,
  7.     'app.home.anchor.gifts' | trans,
  8.     'app.home.anchor.benefits' | trans,
  9.     'app.home.anchor.world' | trans,
  10.     'app.home.anchor.magazine' | trans,
  11.     'app.home.anchor.theone' | trans,
  12.     'app.home.anchor.testimonials' | trans,
  13.     'app.home.anchor.newsletter' | trans,
  14. ] %}
  15. {# SCROLL EFFECT #}
  16. {# DISABLE----> data-fullpage-scroll == 0 #}
  17. {# ENABLE ----> data-fullpage-scroll == 1 #}
  18. {% include 'partials/global/booking_top.html.twig' with {'show_label': true } %}
  19. <main class="main-block--container home-block-container" data-fullpage-scroll="{{ (app.request.get('_xhotjar') == 'true') ? '0' : '1' }}">
  20.     {{ render_block('home.banner_top.block', 'partials/home/blocks/welcome.html.twig') }}
  21.     {{ render_block('home.best_hotel.block', 'partials/home/cta_best_hotel.html.twig') }}
  22.     {% include 'partials/home/hotels.html.twig' %}
  23.     {% set dlblock = get_block('home.downloadables.container') %}
  24.     {% if dlblock %}
  25.         {% if dlblock.blockHasBlocks|length > 1 %}
  26.             {{ render_block('home.downloadables.container', 'partials/home/best_hotel_block_tabs.html.twig') }}
  27.         {% else %}
  28.             {{ render_block('home.downloadables.container', 'partials/home/best_hotel_block.html.twig') }}
  29.         {% endif %}
  30.     {% endif %}
  31.     {# {{ render_block('home.gifts.block', 'partials/home/blocks/gifts.html.twig', {popular_gifts: popular_gifts}) }} #}
  32.     {# {{ render_block('home.benefits.block', 'partials/home/blocks/benefits.html.twig') }} #}
  33.     {% include 'partials/home/world.html.twig' %}
  34.     {# {% if app.request.locale != 'de' and app.request.locale != 'fr' %}
  35.         {% include 'partials/home/magazine.html.twig' %}
  36.     {% endif %} #}
  37.     {# {{ render_block('home.the_one.block', 'partials/home/blocks/theone.html.twig') }} #}
  38.     {# {% include 'partials/home/testimonials.html.twig' %} #}
  39.     {# {{ render_block('home.newsletter.block', 'partials/home/blocks/newsletter.html.twig') }} #}
  40.     {{ render_block('home.newsletter.block', 'partials/home/blocks/newsletter_blog.html.twig', { 'posts': posts }) }}
  41.     <script>
  42.         var titles = {
  43.             'welcome': '{{ 'app.home.anchor.welcome' | trans }}',
  44.             'hotels': '{{ 'app.home.anchor.hotels' | trans }}',
  45.             'gifts': '{{ 'app.home.anchor.gifts' | trans }}',
  46.             'benefits': '{{ 'app.home.anchor.benefits' | trans }}',
  47.             'world': '{{ 'app.home.anchor.world' | trans }}',
  48.             'magazine': '{{ 'app.home.anchor.magazine' | trans }}',
  49.             'theone': '{{ 'app.home.anchor.theone' | trans }}',
  50.             'testimonials': '{{ 'app.home.anchor.testimonials' | trans }}',
  51.             'newsletter': '{{ 'app.home.anchor.newsletter' | trans }}'
  52.         };
  53.     </script>
  54. </main>
  55. {# <div class="home-navigation">
  56.     <div class="home-navigation--content">
  57.         <div class="home-navigation--active">{{ 'app.home.welcome' | trans }}</div>
  58.         <ul class="home-navigation--menu">
  59.             {% for section in sections %}
  60.                 <li data-menuanchor="{{ section }}" class="{{ loop.first ? 'active' : '' }}">
  61.                     <a href="#{{ section }}"><span>{{ section }}</span></a>
  62.                 </li>
  63.             {% endfor %}
  64.         </ul>
  65.     </div>
  66. </div> #}
  67. <!-- The hotels network js de la Home-->
  68. <script src='https://www.thehotelsnetwork.com/js/hotel_price_widget.js?account_key=3a1415764054c0c2384405ebe2dfbae7'></script>
  69. <!-- End The hotels network  -->
  70. {% endblock content %}