templates/base_footer.html.twig line 1

  1. <!DOCTYPE html>
  2. <html lang="fr">
  3. <head>
  4.     <meta charset="utf-8">
  5.     <meta name="viewport" content="width=device-width, initial-scale=1">
  6.     <title>{% block title %}{% endblock %} | Roomlers</title>
  7.     <link rel="icon" href="{{ asset('/images/site/logo.png') }}"/>
  8.     <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0-alpha1/dist/css/bootstrap.min.css" integrity="sha384-GLhlTQ8iRABdZLl6O3oVMWSktQOp6b7In1Zl3/Jr59b6EGGoI1aFkw7cmDA6j6gD" crossorigin="anonymous">
  9.     <link rel="stylesheet" href="https://kit.fontawesome.com/73b7cac54e.css" crossorigin="anonymous">
  10.     {% block stylesheets %}
  11.         {{ encore_entry_link_tags('app') }}
  12.     {% endblock %}
  13.     <script async src="https://www.googletagmanager.com/gtag/js?id=G-FK00Z7YFTE"></script>
  14.     <script>
  15.         window.dataLayer = window.dataLayer || [];
  16.         function gtag(){dataLayer.push(arguments);}
  17.         gtag('js', new Date());
  18.         gtag('config', 'G-FK00Z7YFTE');
  19.     </script>
  20.     <script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.6.3/jquery.min.js"></script>
  21.     <script src="https://kit.fontawesome.com/73b7cac54e.js" crossorigin="anonymous"></script>
  22.     <script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0-alpha1/dist/js/bootstrap.bundle.min.js" integrity="sha384-w76AqPfDkMBDXo30jS1Sgez6pr3x5MlQ1ZAGC+nuZB+EYdgRZgiwxhTBTkF7CXvN" crossorigin="anonymous"></script>
  23.     <script src="https://cdn.tailwindcss.com"></script>
  24.     {% block javascripts %}
  25.         <script>
  26.             document.addEventListener('contextmenu', event => event.preventDefault());
  27.         </script>
  28.         {{ encore_entry_script_tags('app') }}
  29.     {% endblock %}
  30. </head>
  31. <body>
  32.     {% set nav_template = 'components/nav_landing.html.twig' %}
  33.     {% if app.user %}
  34.         {% if app.user.asRole('ROLE_TENANT') %}
  35.             {% set nav_template = 'components/nav_tenant.html.twig' %}
  36.         {% elseif app.user.asRole('ROLE_LESSOR') or app.user.asRole('ROLE_LESSOR_RESIDENT') %}
  37.             {% set nav_template = 'components/nav_lessor.html.twig' %}
  38.         {% elseif app.user.asRole('ROLE_AGENT') %}
  39.             {% set nav_template = 'components/nav_agent.html.twig' %}
  40.         {% elseif app.user.asRole('ROLE_SUPER_AGENT') %}
  41.             {% set nav_template = 'components/nav_agent.html.twig' %}
  42.         {% endif %}
  43.     {% endif %}
  44.     {% include nav_template %}
  45.     <div class="flex flex-col min-h-screen">
  46.         <div class="w-full">
  47.             <div class="w-full">
  48.                 {% block body %}{% endblock %}
  49.             </div>
  50.         </div>
  51.         {% include "components/footer_landing.html.twig" %}
  52.     </div>
  53.     <script>
  54.         function loadGoogleMapsAPI() {
  55.             if (typeof google === 'undefined' || !google.maps) {
  56.                 const script = document.createElement('script');
  57.                 script.src = 'https://maps.googleapis.com/maps/api/js?key=AIzaSyA4fnlCYx-sU6oAMsNfli8_IqwFIsdxfA4&libraries=places&callback=initializeAutocomplete';
  58.                 script.async = true;
  59.                 script.defer = true;
  60.                 document.head.appendChild(script);
  61.             } else {
  62.                 initializeAutocomplete();
  63.             }
  64.         }
  65.         function initializeAutocomplete() {
  66.             if (typeof initAutocomplete === 'function') {
  67.                 initAutocomplete('address-landing');
  68.             }
  69.         }
  70.         document.addEventListener('DOMContentLoaded', function () {
  71.             loadGoogleMapsAPI();
  72.         });
  73.     </script>
  74.     {% block extra_javascripts %}
  75.         {% include 'includes/session_timeout.js.twig' %}
  76.     {% endblock %}
  77. </body>
  78. </html>