{% trans_default_domain 'base' %}
{% set currentRoute = app.request.attributes.get('_route') %}
{% set currentPath = app.request.uri %}
<!DOCTYPE html>
<html>
<head {{ sonata_seo_head_attributes() }}>
<meta name="facebook-domain-verification" content="jgmxp79qc5w5g7esue8z3c3iy97fud" />
<!-- Google Tag Manager -->
<script>(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':
new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],
j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src=
'https://www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f);
})(window,document,'script','dataLayer','GTM-KWHDQNL');</script>
<!-- End Google Tag Manager -->
{{ sonata_seo_title() }}
{{ sonata_seo_metadatas() }}
{{ sonata_seo_link_canonical() }}
{{ sonata_seo_lang_alternates() }}
<meta name="viewport" content="width=device-width, initial-scale=1.0"/>
{% block stylesheets %}
{{ encore_entry_link_tags('app') }}
{% endblock stylesheets %}
{% block canonical %}{% endblock canonical %}
<link rel="icon" type="image/x-icon" href="{{ asset('images/front/favicon.png') }}"/>
</head>
<body class="{% block body_class %}{{ body_class|default('page') }}{% endblock %}">
<!-- Google Tag Manager (noscript) -->
<noscript><iframe src="https://www.googletagmanager.com/ns.html?id=GTM-KWHDQNL"
height="0" width="0" style="display:none;visibility:hidden"></iframe></noscript>
<!-- End Google Tag Manager (noscript) -->
{% include '@SonataSeo/Block/_facebook_sdk.html.twig' %}
{% include '@SonataSeo/Block/_twitter_sdk.html.twig' %}
{% include '@SonataSeo/Block/_pinterest_sdk.html.twig' %}
{% block navigation %}
{{ include('front/common/navigation.html.twig') }}
{% endblock navigation %}
{% block search %}
{{ include('front/search/index.html.twig') }}
{% endblock search %}
{% block header %}
{{ include('front/common/header.html.twig') }}
{% endblock header %}
{% block breadcrumb %}{% endblock breadcrumb %}
{% block body %}
{% endblock body %}
{% block footer %}
{{ include('front/common/footer.html.twig') }}
{% endblock footer %}
{% block newsletter %}
{{ include('front/newsletter/index.html.twig') }}
{% endblock newsletter %}
{% block javascripts %}
{{ encore_entry_script_tags('app') }}
<script src="https://code.jquery.com/jquery-3.2.1.slim.min.js"
integrity="sha384-KJ3o2DKtIkvYIK3UENzmM7KCkRr/rE9/Qpg6aAZGJwFDMVNA/GpGFF93hXpG5KkN"
crossorigin="anonymous"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.12.9/umd/popper.min.js"
integrity="sha384-ApNbgh9B+Y1QKtv3Rn7W3mgPxhU9K/ScQsAP7hUibX39j7fakFPskvXusvfa0b4Q"
crossorigin="anonymous"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/js/bootstrap.min.js"
integrity="sha384-JZR6Spejh4U02d8jOt6vLEHfe/JQGiRRSQQxSfFWpi1MquVdAyjUar5+76PVCmYl"
crossorigin="anonymous"></script>
{% if currentRoute == 'review_host' or currentRoute == 'review_client' %}
<script src='https://www.google.com/recaptcha/api.js'></script>
{% endif %}
{% endblock javascripts %}
{% if currentRoute == 'activity' %}
{# @var activity \App\Entity\Activity #}
<script type="application/ld+json">
{
"@context": "https://schema.org",
"@type": "LocalBusiness",
"@id": "{{ currentPath }}",
"address": {
"@type": "PostalAddress",
"streetAddress": "{{ activity.address1 }} {{ activity.address2 }} {{ activity.address3 }}",
"addressLocality": "{{ activity.city.name }}",
"postalCode": "{{ activity.city.zipCode }}",
"addressCountry": "FR"
},
"name": "{{ activity.labelApidae }}",
"image": [
"{% path activity.visualDesktop, 'desktop' %}",
"{% path activity.visualMobile, 'mobile' %}"
],
"telephone": "{{ activity.phone }}"
}
</script>
{% endif %}
{% if currentRoute == 'article' %}
{# @var article \App\Entity\Article #}
<script type="application/ld+json">
{
"@context": "https://schema.org",
"@type": "Article",
"author": "Isère Attractivité",
"mainEntityOfPage": {
"@type": "WebPage",
"@id": "{{ currentPath }}"
},
"headline": "{{ article.title }}",
"image": [
"{% path article.visual, 'default' %}"
],
"datePublished": "{{ article.createdAt|date('Y-m-d\TG:i:s\Z') }}",
"dateModified": "{{ article.updatedAt|date('Y-m-d\TG:i:s\Z') }}",
"publisher": {
"@type": "Organization",
"name": "Isère Attractivité",
"logo": {
"@type": "ImageObject",
"url": "https://evasion.ishere.fr/images/front/header/alpes_ishere.jpg"
}
},
"description": "{{ article.description }}"
}
</script>
{% endif %}
<script>(function(d,u,ac){var s=d.createElement('script');s.type='text/javascript';s.src='https://a.omappapi.com/app/js/api.min.js';s.async=true;s.dataset.user=u;s.dataset.account=ac;d.getElementsByTagName('head')[0].appendChild(s);})(document,50971,57353);</script>
<script src='{{ asset('js/leaflet-omnivore.min.js') }}'></script>
</body>
</html>