templates/base_footer.html.twig line 1
<!DOCTYPE html>
<html lang="fr">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>{% block title %}{% endblock %} | Roomlers</title>
<link rel="icon" href="{{ asset('/images/site/logo.png') }}"/>
<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">
<link rel="stylesheet" href="https://kit.fontawesome.com/73b7cac54e.css" crossorigin="anonymous">
{% block stylesheets %}
{{ encore_entry_link_tags('app') }}
{% endblock %}
<script async src="https://www.googletagmanager.com/gtag/js?id=G-FK00Z7YFTE"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', 'G-FK00Z7YFTE');
</script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.6.3/jquery.min.js"></script>
<script src="https://kit.fontawesome.com/73b7cac54e.js" crossorigin="anonymous"></script>
<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>
<script src="https://cdn.tailwindcss.com"></script>
{% block javascripts %}
<script>
document.addEventListener('contextmenu', event => event.preventDefault());
</script>
{{ encore_entry_script_tags('app') }}
{% endblock %}
</head>
<body>
{% set nav_template = 'components/nav_landing.html.twig' %}
{% if app.user %}
{% if app.user.asRole('ROLE_TENANT') %}
{% set nav_template = 'components/nav_tenant.html.twig' %}
{% elseif app.user.asRole('ROLE_LESSOR') or app.user.asRole('ROLE_LESSOR_RESIDENT') %}
{% set nav_template = 'components/nav_lessor.html.twig' %}
{% elseif app.user.asRole('ROLE_AGENT') %}
{% set nav_template = 'components/nav_agent.html.twig' %}
{% elseif app.user.asRole('ROLE_SUPER_AGENT') %}
{% set nav_template = 'components/nav_agent.html.twig' %}
{% endif %}
{% endif %}
{% include nav_template %}
<div class="flex flex-col min-h-screen">
<div class="w-full">
<div class="w-full">
{% block body %}{% endblock %}
</div>
</div>
{% include "components/footer_landing.html.twig" %}
</div>
<script>
function loadGoogleMapsAPI() {
if (typeof google === 'undefined' || !google.maps) {
const script = document.createElement('script');
script.src = 'https://maps.googleapis.com/maps/api/js?key=AIzaSyA4fnlCYx-sU6oAMsNfli8_IqwFIsdxfA4&libraries=places&callback=initializeAutocomplete';
script.async = true;
script.defer = true;
document.head.appendChild(script);
} else {
initializeAutocomplete();
}
}
function initializeAutocomplete() {
if (typeof initAutocomplete === 'function') {
initAutocomplete('address-landing');
}
}
document.addEventListener('DOMContentLoaded', function () {
loadGoogleMapsAPI();
});
</script>
{% block extra_javascripts %}
{% include 'includes/session_timeout.js.twig' %}
{% endblock %}
</body>
</html>