templates/layout.html.twig line 1

Open in your IDE?
  1. {% extends "base.html.twig" %}
  2. {% set currentHotel = app.user ? hotelHelper.currentHotel(app.user) : subdomainHelper.defaultHotel %}
  3. {% set rootPages = hotelHelper.rootPages(app.user) %}
  4. {% set isKiosk = (app.session.get('mode') and app.session.get('mode') == 'kiosk') or app.request.query.get('mode') is same as('kiosk') %}
  5. {% block metatags %}
  6.     {{ include('metatags.html.twig') }}
  7. {% endblock %}
  8. {% block stylesheets %}
  9. {#    <link href="https://fonts.googleapis.com/css?family=Playfair+Display:900|Roboto:400,400i,500,700" rel="stylesheet" />#}
  10. {#    <link rel="stylesheet" href="https://cdn.jsdelivr.net/themify-icons/0.1.2/css/themify-icons.css" />#}
  11.     {{ encore_entry_link_tags('app') }}
  12. {% endblock %}
  13. {% block otherjs %}
  14.     {{ include('gtm.html.twig') }}
  15. {#    {{ include('cookies_banner.html.twig') }}#}
  16. {% endblock %}
  17. {% block javascripts %}
  18. {#    <script type="text/javascript" src="https://maps.googleapis.com/maps/api/js?key=AIzaSyBhOdIF3Y9382fqJYt5I_sswSrEw5eihAA"></script>#}
  19. {#    {{ include('gtm_noscript.html.twig') }}#}
  20.     {{ encore_entry_script_tags('app') }}
  21. {% endblock %}
  22. {% block kiosko_class -%}
  23.     {%- if isKiosk -%}
  24.         kiosko-mode
  25.     {%- endif -%}
  26. {%- endblock %}
  27. {% block header %}
  28.     {{ include('header.html.twig') }}
  29.     {% block jumbotron %}
  30.         <div class="jumbotron jumbotron-fluid {% block jumbotron_class %}{% endblock %}">
  31.             {% block jumbotron_background %}{% endblock %}
  32.             <div class="{% block jumbotron_content_class %}{% endblock %}">
  33.                 {% block jumbotron_content %}{% endblock %}
  34.             </div>
  35.         </div>
  36.     {% endblock %}
  37. {% endblock %}
  38. {% block body %}{% endblock %}
  39. {% block footer %}
  40.     {{ include('footer.html.twig') }}
  41.     <div class="back-to-top">
  42.         <p class="text-muted">
  43.             <i id="back-to-top" class="fas fa-chevron-up fa-3x"></i>
  44.         </p>
  45.     </div>
  46. {% endblock %}