<?php
use Twig\Environment;
use Twig\Error\LoaderError;
use Twig\Error\RuntimeError;
use Twig\Extension\SandboxExtension;
use Twig\Markup;
use Twig\Sandbox\SecurityError;
use Twig\Sandbox\SecurityNotAllowedTagError;
use Twig\Sandbox\SecurityNotAllowedFilterError;
use Twig\Sandbox\SecurityNotAllowedFunctionError;
use Twig\Source;
use Twig\Template;
/* layouts/layout.html.twig */
class __TwigTemplate_c784ff18d5d65b1ebf160e2c23d26688 extends Template
{
private $source;
private $macros = [];
public function __construct(Environment $env)
{
parent::__construct($env);
$this->source = $this->getSourceContext();
$this->parent = false;
$this->blocks = [
'content' => [$this, 'block_content'],
];
$this->sandbox = $this->env->getExtension('\Twig\Extension\SandboxExtension');
$this->checkSecurity();
}
protected function doDisplay(array $context, array $blocks = [])
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "layouts/layout.html.twig"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "layouts/layout.html.twig"));
// line 1
echo "<!doctype html>
<html lang=\"";
// line 2
echo twig_escape_filter($this->env, twig_replace_filter($this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, twig_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", false, false, true, 2), "locale", [], "any", false, false, true, 2), 2, $this->source), ["_" => "-"]), "html", null, true);
echo "\">
<head>
";
// line 4
$this->loadTemplate("layouts/layout/html-head.html.twig", "layouts/layout.html.twig", 4)->display($context);
// line 5
echo "</head>
<body>
";
// line 8
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); })()))) {
// line 9
echo " ";
$context["document"] = Pimcore\Model\Document::getById(1);
}
// line 11
echo "
";
// line 12
$this->loadTemplate("layouts/navigation/navbar.html.twig", "layouts/layout.html.twig", 12)->display($context);
// line 13
echo "
";
// line 14
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"))) {
// line 15
echo " ";
$this->loadTemplate("layouts/layout/slideshow/home-slideshow.html.twig", "layouts/layout.html.twig", 15)->display($context);
} else {
// line 17
echo " ";
$this->loadTemplate("layouts/layout/slideshow/slideshow.html.twig", "layouts/layout.html.twig", 17)->display($context);
}
// line 19
echo "
<main>
";
// line 22
echo " ";
// line 23
echo "
";
// line 25
echo "
";
// line 26
$this->displayBlock('content', $context, $blocks);
// line 28
echo "</main>
";
// line 29
$this->loadTemplate("layouts/layout/footer.html.twig", "layouts/layout.html.twig", 29)->display($context);
// line 30
echo "
";
// line 31
if ( !(isset($context["editmode"]) || array_key_exists("editmode", $context) ? $context["editmode"] : (function () { throw new RuntimeError('Variable "editmode" does not exist.', 31, $this->source); })())) {
// line 32
echo " ";
// line 33
echo " ";
}
// line 35
echo "
<script>
";
// line 38
if ( !(isset($context["editmode"]) || array_key_exists("editmode", $context) ? $context["editmode"] : (function () { throw new RuntimeError('Variable "editmode" does not exist.', 38, $this->source); })())) {
// line 39
echo " // 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;
}
});
";
}
// line 52
echo "
/* 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();
\t} );
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>";
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
}
// line 26
public function block_content($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "content"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "content"));
// line 27
echo " ";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
public function getTemplateName()
{
return "layouts/layout.html.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
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,);
}
public function getSourceContext()
{
return new Source("<!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();
\t} );
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>", "layouts/layout.html.twig", "/var/www/clients/client2/web45/web/pc/templates/layouts/layout.html.twig");
}
public function checkSecurity()
{
static $tags = array("include" => 4, "if" => 8, "set" => 9, "block" => 26);
static $filters = array("escape" => 2, "replace" => 2, "first" => 14, "last" => 14);
static $functions = array("pimcore_document" => 9, "loadJsForAction" => 14);
try {
$this->sandbox->checkSecurity(
['include', 'if', 'set', 'block'],
['escape', 'replace', 'first', 'last'],
['pimcore_document', 'loadJsForAction']
);
} catch (SecurityError $e) {
$e->setSourceContext($this->source);
if ($e instanceof SecurityNotAllowedTagError && isset($tags[$e->getTagName()])) {
$e->setTemplateLine($tags[$e->getTagName()]);
} elseif ($e instanceof SecurityNotAllowedFilterError && isset($filters[$e->getFilterName()])) {
$e->setTemplateLine($filters[$e->getFilterName()]);
} elseif ($e instanceof SecurityNotAllowedFunctionError && isset($functions[$e->getFunctionName()])) {
$e->setTemplateLine($functions[$e->getFunctionName()]);
}
throw $e;
}
}
}