<!doctype html>
<html lang="{{ app.request.locale }}">
<head>
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta charset="UTF-8">
{{ include('layout/includes/font-preload.html.twig', {
fontsToPreload: ['Telegraf-Bold', 'Telegraf-Medium', 'Telegraf-SemiBold', 'iconfont']
}) }}
{% block header deferred %}
{% if not editmode and document is instanceof('\\Pimcore\\Model\\Document\\Page') %}
{{ elements_robots().checkNoIndexParams(['page'])|raw }}
{{ elements_head_title() }}
{{ elements_head_meta() }}
{{ elements_canonical() }}
{{ elements_hreflang() }}
{{ elements_opengraph() }}
{% endif %}
{{ include('layout/includes/head.html.twig') }}
{% endblock %}
{# add default jsConfig stuff here... e.g. cookiebar #}
{% do jsConfig().add({
'lang': app.request.locale,
'admin': editmode ? true : false
}) %}
{% do jsConfig('_cartConfig').add({
'updateUrl': path('cart_update'),
'infoUrl': path('cart_ajax'),
}) %}
{# Translations #}
{% do jsConfig('_translations').add({
'alert-notification.generic-error': 'alert-notification.generic-error'|trans,
'alert-notification.close': 'alert-notification.close'|trans,
'whishlist.remove': 'wishlist.remove'|trans,
'whishlist.add': 'wishlist.add'|trans,
}) %}
{# Cookie-Bar #}
{{ include('layout/includes/cookie-bar.html.twig') }}
{% do elements_opengraph().setFallbackImage(siteConfig().logo) %}
<script>
{% if app.session.flashBag.has('tracking') %}
{% for message in app.session.flashBag.get('tracking') %}
dataLayer.push({{ message|json_encode|raw }});
{% endfor %}
{% endif %}
</script>
{% if app.session.flashBag.has(constant('\\App\\Services\\Tracking\\UserTrackingService::FLASH_MESSAGE_BAG_KEY')) %}
<script>
{% for message in app.session.flashBag.get(constant('\\App\\Services\\Tracking\\UserTrackingService::FLASH_MESSAGE_BAG_KEY')) %}
{{ message|raw }}
{% endfor %}
</script>
{% endif %}
</head>
<body>
{% set siteData = getExternalSiteForCountry() %}
{% if siteData %}
{{ include('includes/areas/country-redirect-modal.html.twig') }}
{% endif %}
{# Popup Modals #}
{% block _modals %}
{% endblock %}
{{ include('layout/includes/skip-links.html.twig') }}
{{ include('layout/includes/table-of-content.html.twig') }}
<div class="site">
{# Content #}
{% if not editmode %}
{% block headerblock %}
{{ include('global/header.html.twig') }}
{% endblock %}
{% endif %}
<main id="main-content" class="main-content js-affix__container js-smoothscroll" role="main" tabindex="-1">
{{ block('_content') }}
</main>
{% if not editmode and document.property('footer')%}
{{ pimcore_inc(document.property('footer'), {
mainDocId: document.id
}) }}
{% endif %}
{% if document.property('searchModal') %}
{{ pimcore_inc(document.property('searchModal'), {
}) }}
{% endif %}
</div>
{% if not editmode and document.property('survey-sparrow-token') %}
{{ include('includes/survey-sparrow/survey-sparrow.html.twig', {
surveySparrowToken: document.property('survey-sparrow-token'),
}) }}
{% endif %}
{# JS Config ausgeben #}
{% block layout_head_meta deferred %}
{{ jsConfig() }}
{% endblock %}
{% if app.request.get('onlyInlineCss') is empty %}
{% set file = pimcore_placeholder('jsFile') | default('js/content') %}
{% set staticDebugMode = staticDebugMode is defined ? staticDebugMode : true %}
{% apply spaceless %}
{% for file in encore_entry_js_files(file, staticDebugMode ? 'debug' : 'build' ) %}
<script data-cookieconsent="ignore" src="{{ asset(file) }}" async></script>
{% endfor %}
{% endapply %}
{% endif %}
{# Debug Mode #}
{% if elements_debug_mode() and app.request.get('liveCss') is empty %}
{% set message = elements_debug_message('/entrypoints.json') %}
{% if message is not empty %}
<script data-cookieconsent="ignore" type="text/javascript">
(function () {
var debugError = window.setInterval(function () {
if (document.body) {
clearInterval(debugError);
var div = ''; // <div id="warning-static-release">{{ message | raw }}</div>
document.body.insertAdjacentHTML('beforeend', div);
}
}, 100);
})();
</script>
<style type="text/css">
#warning-static-release {
position: fixed;
bottom: calc(10rem / 16);
right: calc(10rem / 16);
padding: calc(5rem / 16) calc(20rem / 16);
background: #cd231c;
color: #ffffff;
z-index: 1000;
border-radius: calc(4rem / 16);
opacity: .5;
pointer-events: none;
}
#warning-static-release:hover {
opacity: .1;
}
#warning-static-release div {
text-align: right;
font-size: calc(12rem / 16);
}
</style>
{% endif %}
{% endif %}
{{ jld_document(document) }}
</body>
</html>