{% spaceless %}<!DOCTYPE html>
{% set htmlLocale = app.request.locale|default(defaultlocale)|slice(0,2) %}
<!--[if lte IE 9]> <html class="no-js lt-ie9" lang="{{ htmlLocale }}"> <![endif]-->
<!--[if gt IE 9]><!--> <html lang="{{ htmlLocale }}"> <!--<![endif]-->
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>
{% set node = null %}
{% if nodetranslation is defined %}
{% set node = nodetranslation.node %}
{% endif %}
{% set nodemenu = get_node_menu(app.request.locale, node) %}
{% block title %}
{% if page is defined and nodemenu.getActiveForDepth(2) is not null %}
{{ get_title_for(page) ~ ' - ' ~ websitetitle|trans }}
{% else %}
{{ websitetitle | trans }}
{% if page is defined %}
{% set seo = get_seo_for(page) %}
{% if seo is defined and seo.metaTitle is not empty %} - {{ seo.metaTitle }}{% endif %}
{% endif %}
{% endif %}
{% endblock %}
</title>
{% if page is defined %}
{{ render_seo_metadata_for(page, nodetranslation, 'bundles/KunstmaanSeoBundle/SeoTwigExtension/metadata.html.twig') }}
{% endif %}
{# Favicons #}
{% include 'Layout/_favicons.html.twig' %}
{# Webfonts #}
{% include 'Layout/_webfonts.html.twig' %}
{# CSS #}
{% include 'Layout/_css.html.twig' %}
</head>
{% endspaceless %}
<body id="sidebar-toggle-container" class="sidebar-toggle-container{% block extra_body_classes %}{% endblock %}" {% block extra_body_attributes %}{% endblock %}>
{# Google Tagmanager #}
{% include 'Layout/_googletagmanager.html.twig' %}
{# Outdated browser message #}
{% include 'Layout/_outdatedbrowser.html.twig' %}
{# Header #}
{% block header %}
{% include 'Layout/_header.html.twig' %}
{% endblock %}
{# Content #}
<main>
{% block content %}{% endblock %}
</main>
{# Footer #}
{% block footer %}
{% include 'Layout/_footer.html.twig' %}
{% endblock %}
{# Cookieconsent #}
{% block cookieconsent %}
{% include 'Layout/_cookieconsent.html.twig' %}
{% endblock %}
{# JS Footer #}
{% block jsBundle %}
{% include 'Layout/_js_footer.html.twig' %}
{% endblock %}
{% if app.environment == "dev" %}
<script id="__bs_script__">//<![CDATA[
document.write("<script async src='https://HOST:3000/browser-sync/browser-sync-client.js?v=2.26.7'><\/script>".replace("HOST", location.hostname));
//]]></script>
{% endif %}
</body>
</html>