<!doctype html>
<html lang="{{ app.request.locale }}">
<head>
<meta charset="utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
{# <link rel="apple-touch-icon" sizes="60x60" href="{{asset('public/favicon/apple-touch-icon.png')}}">
<link rel="icon" type="image/png" sizes="32x32" href="{{asset('public/favicon/favicon-32x32.png')}}">
<link rel="icon" type="image/png" sizes="16x16" href="{{asset('public/favicon/favicon-16x16.png')}}"> #}
<link rel="icon" type="image/x-icon" href="{{ asset('public/favicon/favicon.ico') }}" />
{# <link rel="manifest" href="{{asset('public/favicon/site.webmanifest')}}"> #}
{{ leogout_seo() }}
<link rel="preconnect" href="//www.google-analytics.com" crossorigin>
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link rel="preconnect" href="https://code.jquery.com" crossorigin>
{# {% include 'front/preload_fonts.html.twig' %} #}
{# <link href="https://cdn.jsdelivr.net/npm/vanillajs-datepicker@1.1.4/dist/css/datepicker.min.css" rel="stylesheet"> #}
<script src="{{asset('templates/front/theme1/assets/js/jquery-3.6.0.min.js')}}"></script>
{% block metaTag %}
{% if meta_robots is defined and meta_robots is not empty %}
<meta name="robots" content="{{meta_robots}}">
{% endif %}
{% if canonical is defined and canonical != null %}
<link href="{{canonical}}" rel="canonical"/>
{% else %}
{% if app.request.attributes.get('_route') in ['index_page_home','plan_du_site'] %}
{% set currentPath = path(app.request.attributes.get('_route')) %}
{% else %}
{% set parametre_url = app.request.attributes.get('page') %}
{% if app.request.attributes.get('_route_params').slug is defined %}
{% if parametre_url != null and parametre_url != '1' %}
{% set currentPath = path(app.request.attributes.get('_route'),{slug:app.request.attributes.get('_route_params').slug,page:app.request.attributes.get('_route_params').page}) %}
{% else %}
{% set currentPath = path(app.request.attributes.get('_route'),{slug:app.request.attributes.get('_route_params').slug}) %}
{% endif %}
{% else %}
{% set currentPath = path(app.request.attributes.get('_route')) %}
{% endif %}
{% endif %}
<link href="{{app.request.schemeAndHttpHost ~ currentPath}}" rel="canonical" />
{% endif %}
{# <link rel="alternate" hreflang="x-default" href="{{app.request.schemeAndHttpHost ~ currentPath}}" /> #}
{% if ActifLanguage() %}
{% for item in ActifLanguage() %}
<link rel="alternate" hreflang="{{item.languagecode}}" href="{{app.request.schemeAndHttpHost ~ currentPath}}"/>
{% endfor %}
{% endif %}
{% if custom_schemaOrg is defined and custom_schemaOrg != null %}
{{custom_schemaOrg|raw}}
{% endif %}
{% if schemaOrg is defined %}
{{schemaOrg|replace({"\\": "/"})|replace({"//": "/"})|raw}}
{% endif %}
{% if schema_breadcrumb is defined %}
{{schema_breadcrumb|replace({"\\": "/"})|replace({"//": "/"})|raw}}
{% endif %}
{% endblock %}
{% block preload %}{% endblock %}
{% block stylesheets %}
{# {{ encore_entry_link_tags('app-theme') }} #}
<style>
{# {% include 'front/config_theme.html.twig' %} #}
{% for file in encore_entry_css_files('app-theme') %}
{{ source('@PUBLIC' ~ file) }}
{% endfor %}
</style>
{% endblock %}
<script async src="https://www.googletagmanager.com/gtag/js?id=G-XR7K60K3YD"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', 'G-XR7K60K3YD');
</script>
</head>
<body {% if app.request.attributes.get('_route') is null %}class="page-404"{% endif %}>
{% block navbar %}
{% set className = app.request.attributes.get('_route') == 'index_page_home'?'home_page':'' %}
{{ render(controller('App\\Controller\\Front\\FunctionController::renderMenu',{'className': className })) }}
{% endblock %}
<main class="{{app.request.attributes.get('_route') == 'index_page_home'?'home_page':''}}">
{% block body %}{% endblock %}
</main>
<a href="javascript:void(0);" class="scroll-to-top" title="Haut" style="display: none;"><span>Haut</span></a>
{% block footer %}
{{ render(controller('App\\Controller\\Front\\FunctionController::renderFooter',{ 'TypeMenu': 'Footer' })) }}
{% endblock %}
{% block javascripts %}
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.0.0/dist/js/bootstrap.bundle.min.js"></script>
<script src="{{asset('templates/front/theme1/assets/plugins/wow-animate/js/wow.min.js')}}"></script>
<script src="{{asset('templates/front/theme1/assets/plugins/galerie-isotope-wow/js/isotope.pkgd.min.js')}}"></script>
<script src="{{asset('templates/front/theme1/assets/plugins/galerie-isotope-wow/js/plugins.js')}}"></script>
{# <script src="https://cdn.jsdelivr.net/npm/vanillajs-datepicker@1.1.4/dist/js/datepicker-full.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/vanillajs-datepicker@1.2.0/dist/js/locales/fr.js"></script> #}
{{ encore_entry_script_tags('app-theme') }}
<script>
// new WOW().init();
(function () {
'use strict'
// Fetch all the forms we want to apply custom Bootstrap validation styles to
var forms = document.querySelectorAll('.needs-validation')
// Loop over them and prevent submission
Array.prototype.slice.call(forms)
.forEach(function (form) {
form.addEventListener('submit', function (event) {
form.classList.add('was-validated')
if (!form.checkValidity()) {
event.preventDefault()
event.stopPropagation()
return false;
}
event.preventDefault();
$(form).find('button[type="submit"]').attr('disabled','true');
grecaptcha.execute('{{ParametreSite().clekey}}', {action: 'create_comment'}).then(token => {
$(form).find('[name=g-recaptcha-response]').val(token);
form.submit();
});
}, false)
})
})()
function reCaptchaOnFocus() {
var head = document.getElementsByTagName('head')[0]
var script = document.createElement('script')
script.type = 'text/javascript';
script.src = 'https://www.google.com/recaptcha/api.js?render={{ParametreSite().clekey}}'
head.appendChild(script);
};
if(document.getElementsByClassName('form-recap')){
for (let i = 0; i < document.getElementsByClassName('form-recap').length; i++) {
document.getElementsByClassName('form-recap')[i].addEventListener('focus', (event) => {
reCaptchaOnFocus()
}, true);
}
}
</script>
<script>
$(document).ready(function(){
/* const elems = document.querySelectorAll('.datepicker_input');
for (const elem of elems) {
const datepicker = new Datepicker(elem, {
'format': 'dd/mm/yyyy',
'language' : 'fr',
// title: getDatePickerTitle(elem)
});
} */
$(window).on("scroll", function () {
if ($(this).scrollTop() > $(window).height() / 2) {
$(".scroll-to-top").fadeIn();
} else {
$(".scroll-to-top").fadeOut();
}
});
$('.header-savoir-plus').on("click", function () {
$("html, body").animate({ scrollTop: $('#bloc-content').offset().top - 100 }, "slow" );
return false;
});
$(".scroll-to-top").on("click", function () {
$("html, body").animate({ scrollTop: 0 }, 500);
return false;
});
$('input[name="prestation[]"]').change(function(){
if(this.hasAttribute('checked')){
$(this).attr('checked',false);
}else{
$(this).attr('checked',true);
}
$.each($("input[name='prestation[]']"), function () {
if (this.value == 'Autre' && this.hasAttribute('checked')) {
$('.autre_prestation').removeClass('d-none');
$('input[name="autre_prestation"]').attr('required',true);
}else{
$('.autre_prestation').addClass('d-none');
$('input[name="autre_prestation"]').attr('required',false);
}
});
});
$('input[name="vous_etes"]').change(function(){
if (this.value == 'Autre') {
$('.autre_coordonne').removeClass('d-none');
$('input[name="autre_coordonne"]').attr('required',true);
}else{
$('.autre_coordonne').addClass('d-none');
$('input[name="autre_coordonne"]').attr('required',false);
}
});
});
</script>
{% if Cookies() != null %}
{{ include ('front/'~ app.request.server.get('APP_THEME') ~'/cookies/cookie.html.twig',{}, with_context = false)}}
{% endif %}
{% endblock %}
</body>
</html>