{% set adminmenu = get_admin_menu() %}
{% set extraclasshtml %}{% block extraclasshtml %}{% endblock %}{% endset %}
<!DOCTYPE html>
<html class="{{ extraclasshtml }}" lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="viewport" content="width=device-width,initial-scale=1">
<meta name="robots" content="noindex, nofollow">
<title>{% block title %}{{ websitetitle | trans }}{% endblock %}</title>
<!-- Favicons -->
{% include "@KunstmaanAdmin/Default/_favicons.html.twig" %}
<!-- Styles -->
{% include "@KunstmaanAdmin/Default/_css.html.twig" %}
<!-- Extra CSS -->
{% block extracss %}{% endblock %}
<!-- JS -->
{% include "@KunstmaanAdmin/Default/_js_header.html.twig" %}
{% if google_signin_enabled() %}
<script src="https://apis.google.com/js/platform.js" async defer></script>
{% endif %}
</head>
<body {% block extraparamsinbody %}{% endblock %} class="app {% block extrabodyclasses %}{% endblock %}" data-file-browse-url="{% if nodebundleisactive is defined and nodebundleisactive %}{{ path('KunstmaanNodeBundle_ckselecturl') }}{% endif %}" data-image-browse-url="{% if mediabundleisactive is defined %}{{ path('KunstmaanMediaBundle_chooser', {'type': 'image'}) }}{% endif %}">
<!-- Body block -->
{% block body %}
<!-- Header -->
{% block appHeader %}
{% include "@KunstmaanAdmin/Default/app_header.html.twig" %}
{% endblock %}
<!-- Nav settings -->
{% if lowestTopChild is not defined %}
{% set lowestTopChild = adminmenu.lowestTopChild %}
{% if lowestTopChild %}
{% set navigationChildren = lowestTopChild.navigationChildren %}
{% endif %}
{% endif %}
{% if page is defined %}
{% set hideSidebar = hideSidebarInNodeEditAdmin(page) %}
{% else %}
{% set hideSidebar = false %}
{% endif %}
<!-- Main Content -->
<main role="main" id="app__main" class="container-fluid app__main{% if not hideSidebar and lowestTopChild and navigationChildren | length > 0 %} app__main--has-sidebar{% else %} app__main--no-sidebar{% endif %}">
<div class="row">
{% if not hideSidebar and lowestTopChild and navigationChildren | length > 0 %}
<!-- App Sidebar -->
<aside id="app__sidebar" class="col-md-3 app__sidebar">
{% block sidebar %}
{% include "@KunstmaanAdmin/Default/sidebar.html.twig" %}
{% endblock %}
</aside>
<!-- App Content - with sidebar -->
<div id="app__content" class="col-md-9 col-md-offset-3 col--padded app__content">
<!-- App Sidebar Toggle -->
<button type="button" id="app__sidebar-toggle" class="btn--reset app__sidebar-toggle" title="toggle sidebar">
<span class="app__sidebar-toggle__show-icon">
<i class="fa fa-caret-right"></i>
<i class="fa fa-list-ul"></i>
</span>
<span class="app__sidebar-toggle__hide-icon">
<i class="fa fa-caret-left"></i>
<i class="fa fa-list-ul"></i>
</span>
</button>
{% else %}
<!-- App Content - full width -->
<div id="app__content" class="col-md-12 col--padded app__content">
{% endif %}
<!-- App Content - Breadcrumbs -->
{% block breadcrumb %}
{% include "@KunstmaanAdmin/Default/breadcrumbs.html.twig" %}
{% endblock %}
<!-- App Content - Flash Messages -->
{% block flashmessages %}
{% include "@KunstmaanAdmin/Default/flashmessages.html.twig" %}
{% endblock %}
<!-- App Content - General Messages -->
{% block messages %}{% endblock %}
<!-- App Content - Header -->
{% block header %}
<header class="app__content__header">
<div class="row">
{% block admin_page_title %}
<div class="col-sm-6 col-md-8">
{% if adminmenu.current %}
<h1 class="app__content__header__title">
{{ adminmenu.current.label | trans }} {% block page_header_addition %}{% endblock %}
</h1>
{% endif %}
</div>
{% endblock %}
{% block extra_actions_header %}{% endblock %}
</div>
</header>
{% endblock %}
<!-- App Content - Content -->
{% block content %}{% endblock %}
</div>
</div>
</div>
</main>
<!-- Footer -->
{% block footer %}
<footer role="contentinfo" class="app__footer container-fluid">
<a target="_blank" rel="noopener" href="https://www.kunstmaan.be" class="app__footer__kunstmaan-link pull-right">
<img src="/bundles/kunstmaanadmin/default-theme/img/kunstmaan/kunstmaan_dark.svg" alt="Kunstmaan" />
</a>
</footer>
{% endblock %}
{% endblock %}
{% block js_footer %}
<!-- JS -->
{% include "@KunstmaanAdmin/Default/_js_footer.html.twig" %}
{% endblock %}
<!-- JS - Extra -->
{% block extrajavascript %}{% endblock %}
</body>
</html>