templates/layouts/layout.html.twig line 26

Open in your IDE?
  1. <!doctype html>
  2. <html lang="{{ app.request.locale|replace({ '_': '-' }) }}">
  3. <head>
  4.     {% include 'layouts/layout/html-head.html.twig' %}
  5. </head>
  6. <body>
  7. {# get root node if there is no document defined (for pages which are routed directly through static route) #}
  8. {% if not document is defined or not document %}
  9.     {% set document = pimcore_document(1) %}
  10. {% endif %}
  11. {% include 'layouts/navigation/navbar.html.twig' %}
  12. {% if loadJsForAction()|first == 'content' and loadJsForAction()|last == 'homepage' %}
  13.     {% include 'layouts/layout/slideshow/home-slideshow.html.twig' %}
  14. {% else %}
  15.     {% include 'layouts/layout/slideshow/slideshow.html.twig' %}
  16. {% endif %}
  17. <main>
  18.     {# dit staat ook op de contactpagina, mag hier uitgeschakeld worden #}
  19.     {# {% include 'layouts/layout/flash-messages.html.twig' %} #}
  20.     {#    {% include 'layouts/layout/breadcrumbs.html.twig' %}#}
  21.     {% block content %}
  22.     {% endblock %}
  23. </main>
  24. {% include 'layouts/layout/footer.html.twig' %}
  25. {% if not editmode %}
  26.     {## Init Cookiebar #}
  27.    {# {{ render(controller('DataprivacyBundle\\Controller\\DefaultController::defaultAction', {} )) }}#}
  28. {% endif %}
  29. <script>
  30.     {% if not editmode %}
  31.     // optioneel
  32.     $('h1').attr('data-aos', 'fade-down');
  33.     //AOS
  34.     AOS.init({
  35.         // Global settings:
  36.         //disable: 'mobile' // accepts following values: 'phone', 'tablet', 'mobile', boolean, expression or function
  37.         disable: function () {
  38.             var maxWidth = 820;
  39.             return window.innerWidth < maxWidth;
  40.         }
  41.     });
  42.     {% endif %}
  43.     /* End Areablock Accordion */
  44.     $(".accpanel").each(function (index) {
  45.         $(this).find("img").addClass("img-fluid");
  46.     });
  47.     //Glightbox
  48.     GLightbox({
  49.         selector: '.glightbox',
  50.         autoplayVideos: true,
  51.         touchNavigation: true
  52.     });
  53.     //Splide
  54.     document.addEventListener( 'DOMContentLoaded', function () {
  55.         new Splide( '#homesplide', {
  56.             perPage: 4,
  57.             type    : 'loop',
  58.             autoplay: true,
  59.             perMove: 1,
  60.             gap: 40,
  61.             pagination: false,
  62.             pauseOnHover: true,
  63.             interval: 2000,
  64.         } ).mount();
  65.     } );
  66.     document.addEventListener( 'DOMContentLoaded', function () {
  67.         new Splide( '#sponsors', {
  68.             perPage: 4,
  69.             type    : 'loop',
  70.             autoplay: true,
  71.             perMove: 1,
  72.             speed: 4000,
  73.             gap: 40,
  74.             pagination: false,
  75.             pauseOnHover: true,
  76.             interval: 2000,
  77.         } ).mount();
  78.     } );
  79. </script>
  80. </body>
  81. </html>