var/cache/dev/twig/68/683ca4d0170b96e2645b55ba6ec87897.php line 54

Open in your IDE?
  1. <?php
  2. use Twig\Environment;
  3. use Twig\Error\LoaderError;
  4. use Twig\Error\RuntimeError;
  5. use Twig\Extension\SandboxExtension;
  6. use Twig\Markup;
  7. use Twig\Sandbox\SecurityError;
  8. use Twig\Sandbox\SecurityNotAllowedTagError;
  9. use Twig\Sandbox\SecurityNotAllowedFilterError;
  10. use Twig\Sandbox\SecurityNotAllowedFunctionError;
  11. use Twig\Source;
  12. use Twig\Template;
  13. /* layouts/layout.html.twig */
  14. class __TwigTemplate_c784ff18d5d65b1ebf160e2c23d26688 extends Template
  15. {
  16.     private $source;
  17.     private $macros = [];
  18.     public function __construct(Environment $env)
  19.     {
  20.         parent::__construct($env);
  21.         $this->source $this->getSourceContext();
  22.         $this->parent false;
  23.         $this->blocks = [
  24.             'content' => [$this'block_content'],
  25.         ];
  26.         $this->sandbox $this->env->getExtension('\Twig\Extension\SandboxExtension');
  27.         $this->checkSecurity();
  28.     }
  29.     protected function doDisplay(array $context, array $blocks = [])
  30.     {
  31.         $macros $this->macros;
  32.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  33.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""layouts/layout.html.twig"));
  34.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  35.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""layouts/layout.html.twig"));
  36.         // line 1
  37.         echo "<!doctype html>
  38. <html lang=\"";
  39.         // line 2
  40.         echo twig_escape_filter($this->envtwig_replace_filter($this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["app"]) || array_key_exists("app"$context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.'2$this->source); })()), "request", [], "any"falsefalsetrue2), "locale", [], "any"falsefalsetrue2), 2$this->source), ["_" => "-"]), "html"nulltrue);
  41.         echo "\">
  42. <head>
  43.     ";
  44.         // line 4
  45.         $this->loadTemplate("layouts/layout/html-head.html.twig""layouts/layout.html.twig"4)->display($context);
  46.         // line 5
  47.         echo "</head>
  48. <body>
  49. ";
  50.         // line 8
  51.         if (( !array_key_exists("document"$context) ||  !(isset($context["document"]) || array_key_exists("document"$context) ? $context["document"] : (function () { throw new RuntimeError('Variable "document" does not exist.'8$this->source); })()))) {
  52.             // line 9
  53.             echo "    ";
  54.             $context["document"] = Pimcore\Model\Document::getById(1);
  55.         }
  56.         // line 11
  57.         echo "
  58. ";
  59.         // line 12
  60.         $this->loadTemplate("layouts/navigation/navbar.html.twig""layouts/layout.html.twig"12)->display($context);
  61.         // line 13
  62.         echo "
  63. ";
  64.         // line 14
  65.         if (((twig_first($this->env$this->extensions['App\Twig\Extension\WebsiteExtension']->loadJsForAction()) == "content") && (twig_last($this->env$this->extensions['App\Twig\Extension\WebsiteExtension']->loadJsForAction()) == "homepage"))) {
  66.             // line 15
  67.             echo "    ";
  68.             $this->loadTemplate("layouts/layout/slideshow/home-slideshow.html.twig""layouts/layout.html.twig"15)->display($context);
  69.         } else {
  70.             // line 17
  71.             echo "    ";
  72.             $this->loadTemplate("layouts/layout/slideshow/slideshow.html.twig""layouts/layout.html.twig"17)->display($context);
  73.         }
  74.         // line 19
  75.         echo "
  76. <main>
  77.     ";
  78.         // line 22
  79.         echo "    ";
  80.         // line 23
  81.         echo "
  82.     ";
  83.         // line 25
  84.         echo "
  85.     ";
  86.         // line 26
  87.         $this->displayBlock('content'$context$blocks);
  88.         // line 28
  89.         echo "</main>
  90. ";
  91.         // line 29
  92.         $this->loadTemplate("layouts/layout/footer.html.twig""layouts/layout.html.twig"29)->display($context);
  93.         // line 30
  94.         echo "
  95. ";
  96.         // line 31
  97.         if ( !(isset($context["editmode"]) || array_key_exists("editmode"$context) ? $context["editmode"] : (function () { throw new RuntimeError('Variable "editmode" does not exist.'31$this->source); })())) {
  98.             // line 32
  99.             echo "    ";
  100.             // line 33
  101.             echo "   ";
  102.         }
  103.         // line 35
  104.         echo "
  105. <script>
  106.     ";
  107.         // line 38
  108.         if ( !(isset($context["editmode"]) || array_key_exists("editmode"$context) ? $context["editmode"] : (function () { throw new RuntimeError('Variable "editmode" does not exist.'38$this->source); })())) {
  109.             // line 39
  110.             echo "    // optioneel
  111.     \$('h1').attr('data-aos', 'fade-down');
  112.     //AOS
  113.     AOS.init({
  114.         // Global settings:
  115.         //disable: 'mobile' // accepts following values: 'phone', 'tablet', 'mobile', boolean, expression or function
  116.         disable: function () {
  117.             var maxWidth = 820;
  118.             return window.innerWidth < maxWidth;
  119.         }
  120.     });
  121.     ";
  122.         }
  123.         // line 52
  124.         echo "
  125.     /* End Areablock Accordion */
  126.     \$(\".accpanel\").each(function (index) {
  127.         \$(this).find(\"img\").addClass(\"img-fluid\");
  128.     });
  129.     //Glightbox
  130.     GLightbox({
  131.         selector: '.glightbox',
  132.         autoplayVideos: true,
  133.         touchNavigation: true
  134.     });
  135.     //Splide
  136.     document.addEventListener( 'DOMContentLoaded', function () {
  137.         new Splide( '#homesplide', {
  138.             perPage: 4,
  139.             type    : 'loop',
  140.             autoplay: true,
  141.             perMove: 1,
  142.             gap: 40,
  143.             pagination: false,
  144.             pauseOnHover: true,
  145.             interval: 2000,
  146.         } ).mount();
  147. \t} );
  148.     document.addEventListener( 'DOMContentLoaded', function () {
  149.         new Splide( '#sponsors', {
  150.             perPage: 4,
  151.             type    : 'loop',
  152.             autoplay: true,
  153.             perMove: 1,
  154.             speed: 4000,
  155.             gap: 40,
  156.             pagination: false,
  157.             pauseOnHover: true,
  158.             interval: 2000,
  159.         } ).mount();
  160.     } );
  161. </script>
  162. </body>
  163. </html>";
  164.         
  165.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  166.         
  167.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  168.     }
  169.     // line 26
  170.     public function block_content($context, array $blocks = [])
  171.     {
  172.         $macros $this->macros;
  173.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  174.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""content"));
  175.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  176.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""content"));
  177.         // line 27
  178.         echo "    ";
  179.         
  180.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  181.         
  182.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  183.     }
  184.     public function getTemplateName()
  185.     {
  186.         return "layouts/layout.html.twig";
  187.     }
  188.     public function isTraitable()
  189.     {
  190.         return false;
  191.     }
  192.     public function getDebugInfo()
  193.     {
  194.         return array (  201 => 27,  191 => 26,  135 => 52,  120 => 39,  118 => 38,  113 => 35,  110 => 33,  108 => 32,  106 => 31,  103 => 30,  101 => 29,  98 => 28,  96 => 26,  93 => 25,  90 => 23,  88 => 22,  84 => 19,  80 => 17,  76 => 15,  74 => 14,  71 => 13,  69 => 12,  66 => 11,  62 => 9,  60 => 8,  56 => 5,  54 => 4,  49 => 2,  46 => 1,);
  195.     }
  196.     public function getSourceContext()
  197.     {
  198.         return new Source("<!doctype html>
  199. <html lang=\"{{ app.request.locale|replace({ '_': '-' }) }}\">
  200. <head>
  201.     {% include 'layouts/layout/html-head.html.twig' %}
  202. </head>
  203. <body>
  204. {# get root node if there is no document defined (for pages which are routed directly through static route) #}
  205. {% if not document is defined or not document %}
  206.     {% set document = pimcore_document(1) %}
  207. {% endif %}
  208. {% include 'layouts/navigation/navbar.html.twig' %}
  209. {% if loadJsForAction()|first == 'content' and loadJsForAction()|last == 'homepage' %}
  210.     {% include 'layouts/layout/slideshow/home-slideshow.html.twig' %}
  211. {% else %}
  212.     {% include 'layouts/layout/slideshow/slideshow.html.twig' %}
  213. {% endif %}
  214. <main>
  215.     {# dit staat ook op de contactpagina, mag hier uitgeschakeld worden #}
  216.     {# {% include 'layouts/layout/flash-messages.html.twig' %} #}
  217.     {#    {% include 'layouts/layout/breadcrumbs.html.twig' %}#}
  218.     {% block content %}
  219.     {% endblock %}
  220. </main>
  221. {% include 'layouts/layout/footer.html.twig' %}
  222. {% if not editmode %}
  223.     {## Init Cookiebar #}
  224.    {# {{ render(controller('DataprivacyBundle\\\\Controller\\\\DefaultController::defaultAction', {} )) }}#}
  225. {% endif %}
  226. <script>
  227.     {% if not editmode %}
  228.     // optioneel
  229.     \$('h1').attr('data-aos', 'fade-down');
  230.     //AOS
  231.     AOS.init({
  232.         // Global settings:
  233.         //disable: 'mobile' // accepts following values: 'phone', 'tablet', 'mobile', boolean, expression or function
  234.         disable: function () {
  235.             var maxWidth = 820;
  236.             return window.innerWidth < maxWidth;
  237.         }
  238.     });
  239.     {% endif %}
  240.     /* End Areablock Accordion */
  241.     \$(\".accpanel\").each(function (index) {
  242.         \$(this).find(\"img\").addClass(\"img-fluid\");
  243.     });
  244.     //Glightbox
  245.     GLightbox({
  246.         selector: '.glightbox',
  247.         autoplayVideos: true,
  248.         touchNavigation: true
  249.     });
  250.     //Splide
  251.     document.addEventListener( 'DOMContentLoaded', function () {
  252.         new Splide( '#homesplide', {
  253.             perPage: 4,
  254.             type    : 'loop',
  255.             autoplay: true,
  256.             perMove: 1,
  257.             gap: 40,
  258.             pagination: false,
  259.             pauseOnHover: true,
  260.             interval: 2000,
  261.         } ).mount();
  262. \t} );
  263.     document.addEventListener( 'DOMContentLoaded', function () {
  264.         new Splide( '#sponsors', {
  265.             perPage: 4,
  266.             type    : 'loop',
  267.             autoplay: true,
  268.             perMove: 1,
  269.             speed: 4000,
  270.             gap: 40,
  271.             pagination: false,
  272.             pauseOnHover: true,
  273.             interval: 2000,
  274.         } ).mount();
  275.     } );
  276. </script>
  277. </body>
  278. </html>""layouts/layout.html.twig""/var/www/clients/client2/web45/web/pc/templates/layouts/layout.html.twig");
  279.     }
  280.     
  281.     public function checkSecurity()
  282.     {
  283.         static $tags = array("include" => 4"if" => 8"set" => 9"block" => 26);
  284.         static $filters = array("escape" => 2"replace" => 2"first" => 14"last" => 14);
  285.         static $functions = array("pimcore_document" => 9"loadJsForAction" => 14);
  286.         try {
  287.             $this->sandbox->checkSecurity(
  288.                 ['include''if''set''block'],
  289.                 ['escape''replace''first''last'],
  290.                 ['pimcore_document''loadJsForAction']
  291.             );
  292.         } catch (SecurityError $e) {
  293.             $e->setSourceContext($this->source);
  294.             if ($e instanceof SecurityNotAllowedTagError && isset($tags[$e->getTagName()])) {
  295.                 $e->setTemplateLine($tags[$e->getTagName()]);
  296.             } elseif ($e instanceof SecurityNotAllowedFilterError && isset($filters[$e->getFilterName()])) {
  297.                 $e->setTemplateLine($filters[$e->getFilterName()]);
  298.             } elseif ($e instanceof SecurityNotAllowedFunctionError && isset($functions[$e->getFunctionName()])) {
  299.                 $e->setTemplateLine($functions[$e->getFunctionName()]);
  300.             }
  301.             throw $e;
  302.         }
  303.     }
  304. }