<!doctype html>
<html lang="{{ app.request.locale }}">
<head>
<script>
/* ga mock function */
(function(i,s,r){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();
})(window,document,'ga');
</script>
{{ include('@ElementsDemiFrontend/Includes/layout/head.html.twig') }}
{{ include('Layout/includes/codeHead.html.twig') }}
</head>
<body>
{% if demi_core_configuration("getIsWhitelabel", {}) %}
{% do jsConfig().add('affiliate', true) %}
{% do jsConfig().add('affiliateTarget', '_blank') %}
{% endif %}
{% if not demi_core_configuration("getIsWhitelabel", {}) and not editmode %}
{{ include('Navigation/navbar.html.twig') }}
{% endif %}
<main id="main" class="screen-wrapper {{ demi_core_configuration("getIsWhitelabel", {}) ? 'pt-0' : '' }}" role="main">
<div class="list-wrapper">
{{ block('content') }}
</div>
</main>
{{ include('@ElementsDemiFrontend/Includes/layout/jsScripts.html.twig') }}
{% set now = carbon().now() %}
{% set earliestProposedFromDate = carbon().createFromFormat('Y-m-d H:i:s', '2020-03-19 12:00:00') %}
{% set earliestProposedToDate = earliestProposedFromDate.copy().addDays(7) %}
{% if earliestProposedFromDate.gt(now) %}
<script type="text/javascript" data-cookieconsent="ignore">
_initialState.searchForm.from = '{{ elements_customDateFormat(earliestProposedFromDate) }}';
_initialState.searchForm.to = '{{ elements_customDateFormat(earliestProposedToDate) }}';
</script>
{% endif %}
</body>
</html>