<!DOCTYPE html>
<html lang="{{ app.request.locale }}" class="{% if platform.hasSocialNetworkPage == false %}small-footer {% endif %}{% if is_granted('ROLE_ADMIN') and ('admin_' in app.request.attributes.get('_route')) %}pagetype-admin{% elseif is_granted('IS_AUTHENTICATED_FULLY') and ('authenticated_' in app.request.attributes.get('_route')) %}pagetype-authenticated{% else %}pagetype-front{% endif %} page-{{ app.request.attributes.get('_route') }}">
<head>
{% block beginningHead %}{% endblock %}
{% include '_headTag.html.twig' %}
{% include '_customCss.html.twig' %}
<meta charset="UTF-8" />
<title>{% if app.environment == 'dev' %}[dev] {% endif %}{% block title %}{{ platform.name }}{% endblock %}</title>
<meta name="description" content="{% block description %}{% endblock %}" />
<meta name="keywords" content="{% block keywords %}{% endblock %}" />
<meta property="og:title" content="{% if app.environment == 'dev' %}[dev] {% endif %}{% block og_title %}{{ 'meta.default.title'|trans({}, 'meta') }}{% endblock %}" />
<meta property="og:type" content="website" />
<meta property="og:description" content="{% block og_description %}{% endblock %}">
<meta property="og:site_name" content="{{ 'meta.default.title'|trans({}, 'meta') }}" />
<meta property="og:url" content="{{ app.request.schemeAndHttpHost ~ app.request.requestUri }}" />
<meta property="og:local" content="{{ app.request.locale }}_{{ app.request.locale|upper }}" />
<meta property="og:image" content="{{ asset('build/img/logo.png') }}" />
<link rel="alternate" href="{{ url(app.request.attributes.get('_route'), app.request.attributes.get('_route_params')|merge({'_locale' : 'fr'})) }}" hreflang="fr" />
<link rel="alternate" href="{{ url(app.request.attributes.get('_route'), app.request.attributes.get('_route_params')|merge({'_locale' : 'en'})) }}" hreflang="en" />
{# à enlever lors de la mise en prod #}
{% if app.environment == 'dev' %}<meta name="robots" content="noindex" />{% endif %}
{% if platform.favicon %}<link rel="icon" type="image/png" sizes="any" href="{{ platform.favicon.path }}">{% endif %}
<meta name="viewport" content="width=device-width, initial-scale=1" />
<meta name="theme-color" content="#cc9933">
{% block meta %}
{% endblock %}
{% block stylesheets %}
{{ encore_entry_link_tags('app') }}
<!-- Renders a link tag (if your module requires any CSS)
<link rel="stylesheet" src="/build/app.css"> -->
{% endblock %}
<link rel="manifest" href="{{ asset('build/manifest.json') }}">
<link rel="manifest" href="{{ asset('manifest.json') }}">
{% block htmlhead %}
{% endblock %}
<script>
_locale = '{{ app.request.locale }}';
fromRoute = '{{ app.request.attributes.get('_route') }}';
{% if app.environment != 'dev' %}
{#
// This is the "Offline page" service worker
// Add this below content to your HTML page, or add the js file to your page at the very top to register service worker
// Check compatibility for the browser we're running this in
if ("serviceWorker" in navigator) {
if (navigator.serviceWorker.controller) {
console.log("[PWA Builder] active service worker found, no need to register");
} else {
// Register the service worker
navigator.serviceWorker
.register("{{ asset('pwabuilder-sw.js') }}", {
scope: "/"
})
.then(function (reg) {
console.log("[PWA Builder] Service worker has been registered for scope: " + reg.scope);
});
}
}
#}
{% endif %}
</script>
</head>
<body class="authenticated-menu-on-sm">
{% include '_bodyTag.html.twig' %}
<div class="front-bg"><div class="kenburn"></div><div class="kenburn2"></div></div>
<div class="popup-zone popup-zone1" style="display: none">
<div class="grey-background"></div>
<img class="loading popup-loading" src="{{ asset('build/img/loading.gif') }}" />
<div class="popup-content-zone">
<div class="close clickable"><i title="{{ 'close'|trans }}" class="fa fa-times fa-sm" aria-hidden="true"></i></div>
<div class="popup-content"></div>
</div>
</div>
<div class="popup-zone popup-zone2" style="display: none">
<div class="grey-background"></div>
<img class="loading popup-loading" src="{{ asset('build/img/loading.gif') }}" />
<div class="popup-content-zone">
<div class="close clickable"><i title="{{ 'close'|trans }}" class="fa fa-times fa-sm" aria-hidden="true"></i></div>
<div class="popup-content"></div>
</div>
</div>
<div class="popup-zone popup-zone3" style="display: none">
<div class="grey-background"></div>
<img class="loading popup-loading" src="{{ asset('build/img/loading.gif') }}" />
<div class="popup-content-zone">
<div class="close clickable"><i title="{{ 'close'|trans }}" class="fa fa-times fa-sm" aria-hidden="true"></i></div>
<div class="popup-content"></div>
</div>
</div>
{% block body %}
{% if app.user and ('admin_' in app.request.attributes.get('_route')) %}
<a href="{{ path('authenticated_offers') }}" title="{{ 'home'|trans }}" class="wl-color-primary admin-link"><i class="fas fa-home"></i></a>
{% elseif is_granted('ROLE_ADMIN') %}
<a href="{{ path('admin_offer_offers') }}" title="{{ 'admin'|trans }}" class="wl-color-primary admin-link"><i class="fas fa-tools"></i></a>
{% endif %}
<div class="cover-container d-flex h-100 mx-auto flex-column">
{% if is_granted('ROLE_ADMIN') and ('admin_' in app.request.attributes.get('_route')) %}
{% include 'admin/_header.html.twig' %}
{% elseif is_granted('IS_AUTHENTICATED_FULLY') and ('authenticated_' in app.request.attributes.get('_route')) %}
<div class="authenticated-menu wl-inversed-text-primary wl-gradient-bg-primary">{% include 'authenticated/_verticalMenu.html.twig' %}</div>
<div class="authenticated-content">
{% include 'authenticated/_header.html.twig' %}
{% else %}
{% include '_header.html.twig' %}
{% endif %}
<div id="mainContent" class="page-">
{% block content %}{% endblock %}
</div>
{% if app.user and ('admin_' in app.request.attributes.get('_route')) %}
{% include 'admin/_footer.html.twig' %}
{% else %}
{% include '_footer.html.twig' %}
{% endif %}
{% block javascripts %}
{{ encore_entry_script_tags('app') }}
{% if is_granted('ROLE_ADMIN') and ('admin_' in app.request.attributes.get('_route')) %}
<script>
{% include 'admin/parameters.js.twig' %}
</script>
{% endif %}
<script>
refreshJsDatePicker = function() {
$('.js-date-picker').each(function() {
new Picker(this, {
controls: false,
format: '{{ 'date_format_jspicker_day'|trans }}',
language: '{{ app.request.locale }}',
headers: true,
text: {
title: '{{ 'pick_date'|trans }}',
cancel: '{{ 'cancel'|trans }}',
confirm: '{{ 'ok'|trans }}',
year: '{{ 'year'|trans }}',
month: '{{ 'month'|trans }}',
day: '{{ 'day'|trans }}',
hour: '{{ 'hour'|trans }}',
minute: '{{ 'minute'|trans }}',
},
});
});
}
refreshJsFullPicker = function() {
$('.js-full-picker').each(function() {
new Picker(this, {
controls: false,
format: '{{ 'date_format_jspicker_min'|trans }}',
language: '{{ app.request.locale }}',
headers: true,
text: {
title: '{{ 'pick_date_and_time'|trans }}',
cancel: '{{ 'cancel'|trans }}',
confirm: '{{ 'ok'|trans }}',
year: '{{ 'year'|trans }}',
month: '{{ 'month'|trans }}',
day: '{{ 'day'|trans }}',
hour: '{{ 'hour'|trans }}',
minute: '{{ 'minute'|trans }}',
},
});
if (!$(this).parent().find('.reset-js-picker').length) {
$(this).parent().append('<div class="reset-js-picker" data-method="reset"><i class="fas fa-times"></i></div>');
}
});
}
</script>
{% endblock %}
{% if is_granted('IS_AUTHENTICATED_FULLY') and ('authenticated_' in app.request.attributes.get('_route')) %}
</div>
{% endif %}
</div>
{% endblock %}
</body>
{% include '_customCss.html.twig' %}
</html>