<!doctype html>
<html lang="{{ app.request.locale|replace({ '_': '-' }) }}">
<head>
{% include 'layouts/layout/html-head.html.twig' %}
</head>
<body>
{# get root node if there is no document defined (for pages which are routed directly through static route) #}
{% if not document is defined or not document %}
{% set document = pimcore_document(1) %}
{% endif %}
{% include 'layouts/navigation/navbar.html.twig' %}
{% if loadJsForAction()|first == 'content' and loadJsForAction()|last == 'homepage' %}
{% include 'layouts/layout/slideshow/home-slideshow.html.twig' %}
{% else %}
{% include 'layouts/layout/slideshow/slideshow.html.twig' %}
{% endif %}
<main>
{# dit staat ook op de contactpagina, mag hier uitgeschakeld worden #}
{# {% include 'layouts/layout/flash-messages.html.twig' %} #}
{# {% include 'layouts/layout/breadcrumbs.html.twig' %}#}
{% block content %}
{% endblock %}
</main>
{% include 'layouts/layout/footer.html.twig' %}
{% if not editmode %}
{## Init Cookiebar #}
{# {{ render(controller('DataprivacyBundle\\Controller\\DefaultController::defaultAction', {} )) }}#}
{% endif %}
<script>
{% if not editmode %}
// optioneel
$('h1').attr('data-aos', 'fade-down');
//AOS
AOS.init({
// Global settings:
//disable: 'mobile' // accepts following values: 'phone', 'tablet', 'mobile', boolean, expression or function
disable: function () {
var maxWidth = 820;
return window.innerWidth < maxWidth;
}
});
{% endif %}
/* End Areablock Accordion */
$(".accpanel").each(function (index) {
$(this).find("img").addClass("img-fluid");
});
//Glightbox
GLightbox({
selector: '.glightbox',
autoplayVideos: true,
touchNavigation: true
});
//Splide
document.addEventListener( 'DOMContentLoaded', function () {
new Splide( '#homesplide', {
perPage: 4,
type : 'loop',
autoplay: true,
perMove: 1,
gap: 40,
pagination: false,
pauseOnHover: true,
interval: 2000,
} ).mount();
} );
document.addEventListener( 'DOMContentLoaded', function () {
new Splide( '#sponsors', {
perPage: 4,
type : 'loop',
autoplay: true,
perMove: 1,
speed: 4000,
gap: 40,
pagination: false,
pauseOnHover: true,
interval: 2000,
} ).mount();
} );
</script>
</body>
</html>