<?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;
/* services/default.html.twig */
class __TwigTemplate_5e72f6a287cf5af4289c74a937f4a296 extends Template
{
private $source;
private $macros = [];
public function __construct(Environment $env)
{
parent::__construct($env);
$this->source = $this->getSourceContext();
$this->blocks = [
'content' => [$this, 'block_content'],
];
$this->sandbox = $this->env->getExtension('\Twig\Extension\SandboxExtension');
$this->checkSecurity();
}
protected function doGetParent(array $context)
{
// line 1
return $this->loadTemplate($this->extensions['App\Twig\Extension\WebsiteExtension']->getBaseLayout(), "services/default.html.twig", 1);
}
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", "services/default.html.twig"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "services/default.html.twig"));
$this->getParent($context)->display($context, array_merge($this->blocks, $blocks));
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
}
// line 3
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 4
echo "\t";
if ((isset($context["editmode"]) || array_key_exists("editmode", $context) ? $context["editmode"] : (function () { throw new RuntimeError('Variable "editmode" does not exist.', 4, $this->source); })())) {
// line 5
echo "\t\t";
if ((twig_get_attribute($this->env, $this->source, (isset($context["document"]) || array_key_exists("document", $context) ? $context["document"] : (function () { throw new RuntimeError('Variable "document" does not exist.', 5, $this->source); })()), "getKey", [], "method", false, false, true, 5) == "zeilen")) {
// line 6
echo "\t\t\t<style>
\t\t\t\t.alert-info {
\t\t\t\t\t--bs-alert-color: white;
\t\t\t\t\t--bs-alert-bg: #007ec3;
\t\t\t\t\t--bs-alert-border-color: var(--bs-info-border-subtle);
\t\t\t\t\t--bs-alert-link-color: var(--bs-info-text);
\t\t\t\t}
\t\t\t</style>
\t\t";
}
// line 15
echo "\t\t";
if ((twig_get_attribute($this->env, $this->source, (isset($context["document"]) || array_key_exists("document", $context) ? $context["document"] : (function () { throw new RuntimeError('Variable "document" does not exist.', 15, $this->source); })()), "getKey", [], "method", false, false, true, 15) == "surfen")) {
// line 16
echo "\t\t\t<style>
\t\t\t\t.alert-info {
\t\t\t\t\t--bs-alert-color: white;
\t\t\t\t\t--bs-alert-bg: #c30000;
\t\t\t\t\t--bs-alert-border-color: var(--bs-info-border-subtle);
\t\t\t\t\t--bs-alert-link-color: var(--bs-info-text);
\t\t\t\t}
\t\t\t</style>
\t\t";
}
// line 25
echo "\t\t";
if ((twig_get_attribute($this->env, $this->source, (isset($context["document"]) || array_key_exists("document", $context) ? $context["document"] : (function () { throw new RuntimeError('Variable "document" does not exist.', 25, $this->source); })()), "getKey", [], "method", false, false, true, 25) == "suppen")) {
// line 26
echo "\t\t\t<style>
\t\t\t\t.alert-info {
\t\t\t\t\t--bs-alert-color: white;
\t\t\t\t\t--bs-alert-bg: #9ad5dd;
\t\t\t\t\t--bs-alert-border-color: var(--bs-info-border-subtle);
\t\t\t\t\t--bs-alert-link-color: var(--bs-info-text);
\t\t\t\t}
\t\t\t</style>
\t\t";
}
// line 35
echo "\t";
}
// line 36
echo "
\t";
// line 37
if ((isset($context["editmode"]) || array_key_exists("editmode", $context) ? $context["editmode"] : (function () { throw new RuntimeError('Variable "editmode" does not exist.', 37, $this->source); })())) {
// line 38
echo "\t\t<div class=\"row\">
\t\t\t<div class=\"col-12\">
\t\t\t\t<p class=\"advice\">";
// line 40
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("tip: Door op het plusteken te klikken kun je kiezen welke inhoudelijke blok je kan toevoegen.", [], "admin"), "html", null, true);
echo "</p>
\t\t\t</div>
\t\t</div>
\t";
}
// line 44
echo "
\t<div class=\"row\">
\t\t<div class=\"col-12\">
\t\t\t";
// line 47
echo $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context, "areablock", "content-1");
echo "
\t\t</div>
\t</div>
\t<div class=\"container ";
// line 53
if ((twig_get_attribute($this->env, $this->source, (isset($context["document"]) || array_key_exists("document", $context) ? $context["document"] : (function () { throw new RuntimeError('Variable "document" does not exist.', 53, $this->source); })()), "getKey", [], "method", false, false, true, 53) == "zeilen")) {
echo "zeilen";
}
echo " ";
if ((twig_get_attribute($this->env, $this->source, (isset($context["document"]) || array_key_exists("document", $context) ? $context["document"] : (function () { throw new RuntimeError('Variable "document" does not exist.', 53, $this->source); })()), "getKey", [], "method", false, false, true, 53) == "surfen")) {
echo "surfen";
}
echo " ";
if ((twig_get_attribute($this->env, $this->source, (isset($context["document"]) || array_key_exists("document", $context) ? $context["document"] : (function () { throw new RuntimeError('Variable "document" does not exist.', 53, $this->source); })()), "getKey", [], "method", false, false, true, 53) == "suppen")) {
echo "suppen";
}
echo " \">
\t\t<div class=\"row\">
\t\t\t<div class=\"col\">
\t\t\t\t<h1>";
// line 56
echo $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context, "input", "title", ["placeholder" => "Headline"]);
echo "</h1>
\t\t\t</div>
\t\t</div>
\t\t<div class=\"row row-cols-1 row-cols-lg-3\">
\t\t\t";
// line 64
if (( !twig_test_empty((isset($context["Infolinks"]) || array_key_exists("Infolinks", $context) ? $context["Infolinks"] : (function () { throw new RuntimeError('Variable "Infolinks" does not exist.', 64, $this->source); })())) && array_key_exists("Infolinks", $context))) {
// line 65
echo "\t\t\t\t";
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable((isset($context["Infolinks"]) || array_key_exists("Infolinks", $context) ? $context["Infolinks"] : (function () { throw new RuntimeError('Variable "Infolinks" does not exist.', 65, $this->source); })()));
foreach ($context['_seq'] as $context["_key"] => $context["folderLink"]) {
// line 66
echo "
\t\t\t\t\t<div class=\"col\">
\t\t\t\t\t\t<ul>
\t\t\t\t\t\t\t<h2 class=\"fw-bold\">";
// line 70
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, $context["folderLink"], "name_folder", [], "any", false, false, true, 70), 70, $this->source), "html", null, true);
echo "</h2>
\t\t\t\t\t\t\t";
// line 71
if ( !twig_test_empty(twig_get_attribute($this->env, $this->source, $context["folderLink"], "links", [], "any", false, false, true, 71))) {
// line 72
echo "\t\t\t\t\t\t\t\t<div class=\"mb-5 list-group list-group-flush\">
\t\t\t\t\t\t\t\t\t";
// line 73
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env, $this->source, $context["folderLink"], "links", [], "any", false, false, true, 73));
foreach ($context['_seq'] as $context["_key"] => $context["pageLink"]) {
// line 74
echo "\t\t\t\t\t\t\t\t\t\t<a href=\"";
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, $context["pageLink"], "link_page", [], "any", false, false, true, 74), 74, $this->source), "html", null, true);
echo "\" class=\"list-group-item list-group-item-action\">";
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, $context["pageLink"], "name_page", [], "any", false, false, true, 74), 74, $this->source), "html", null, true);
echo "</a>
\t\t\t\t\t\t\t\t\t";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['pageLink'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 76
echo "\t\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t";
}
// line 78
echo "
\t\t\t\t\t\t</ul>
\t\t\t\t\t</div>
\t\t\t\t";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['folderLink'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 82
echo "
\t\t\t";
}
// line 84
echo "
\t\t</div>
\t\t";
// line 87
if ((isset($context["editmode"]) || array_key_exists("editmode", $context) ? $context["editmode"] : (function () { throw new RuntimeError('Variable "editmode" does not exist.', 87, $this->source); })())) {
// line 88
echo "\t\t\t<div class=\"row\">
\t\t\t\t<div class=\"col-12\">
\t\t\t\t\t<p class=\"advice\">";
// line 90
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("tip: Door op het plusteken te klikken kun je kiezen welke inhoudelijke blok je kan toevoegen.", [], "admin"), "html", null, true);
echo "</p>
\t\t\t\t</div>
\t\t\t</div>
\t\t";
}
// line 94
echo "
\t\t<div class=\"row\">
\t\t\t<div class=\"col-12\">
\t\t\t\t";
// line 97
echo twig_include($this->env, $context, "includes/default-content.html.twig");
echo "
\t\t\t</div>
\t\t</div>
\t</div>
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
public function getTemplateName()
{
return "services/default.html.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
return array ( 251 => 97, 246 => 94, 239 => 90, 235 => 88, 233 => 87, 228 => 84, 224 => 82, 215 => 78, 211 => 76, 200 => 74, 196 => 73, 193 => 72, 191 => 71, 187 => 70, 181 => 66, 176 => 65, 174 => 64, 163 => 56, 147 => 53, 138 => 47, 133 => 44, 126 => 40, 122 => 38, 120 => 37, 117 => 36, 114 => 35, 103 => 26, 100 => 25, 89 => 16, 86 => 15, 75 => 6, 72 => 5, 69 => 4, 59 => 3, 37 => 1,);
}
public function getSourceContext()
{
return new Source("{% extends base_layout() %}
{% block content %}
\t{% if editmode %}
\t\t{% if document.getKey() == 'zeilen' %}
\t\t\t<style>
\t\t\t\t.alert-info {
\t\t\t\t\t--bs-alert-color: white;
\t\t\t\t\t--bs-alert-bg: #007ec3;
\t\t\t\t\t--bs-alert-border-color: var(--bs-info-border-subtle);
\t\t\t\t\t--bs-alert-link-color: var(--bs-info-text);
\t\t\t\t}
\t\t\t</style>
\t\t{% endif %}
\t\t{% if document.getKey() == 'surfen' %}
\t\t\t<style>
\t\t\t\t.alert-info {
\t\t\t\t\t--bs-alert-color: white;
\t\t\t\t\t--bs-alert-bg: #c30000;
\t\t\t\t\t--bs-alert-border-color: var(--bs-info-border-subtle);
\t\t\t\t\t--bs-alert-link-color: var(--bs-info-text);
\t\t\t\t}
\t\t\t</style>
\t\t{% endif %}
\t\t{% if document.getKey() == 'suppen' %}
\t\t\t<style>
\t\t\t\t.alert-info {
\t\t\t\t\t--bs-alert-color: white;
\t\t\t\t\t--bs-alert-bg: #9ad5dd;
\t\t\t\t\t--bs-alert-border-color: var(--bs-info-border-subtle);
\t\t\t\t\t--bs-alert-link-color: var(--bs-info-text);
\t\t\t\t}
\t\t\t</style>
\t\t{% endif %}
\t{% endif %}
\t{% if editmode %}
\t\t<div class=\"row\">
\t\t\t<div class=\"col-12\">
\t\t\t\t<p class=\"advice\">{{ 'tip: Door op het plusteken te klikken kun je kiezen welke inhoudelijke blok je kan toevoegen.'|trans({}, 'admin') }}</p>
\t\t\t</div>
\t\t</div>
\t{% endif %}
\t<div class=\"row\">
\t\t<div class=\"col-12\">
\t\t\t{{ pimcore_areablock('content-1') }}
\t\t</div>
\t</div>
\t<div class=\"container {% if document.getKey() == 'zeilen' %}zeilen{% endif %} {% if document.getKey() == 'surfen' %}surfen{% endif %} {% if document.getKey() == 'suppen' %}suppen{% endif %} \">
\t\t<div class=\"row\">
\t\t\t<div class=\"col\">
\t\t\t\t<h1>{{ pimcore_input('title', {'placeholder':'Headline'}) }}</h1>
\t\t\t</div>
\t\t</div>
\t\t<div class=\"row row-cols-1 row-cols-lg-3\">
\t\t\t{% if Infolinks is not empty and Infolinks is defined %}
\t\t\t\t{% for folderLink in Infolinks %}
\t\t\t\t\t<div class=\"col\">
\t\t\t\t\t\t<ul>
\t\t\t\t\t\t\t<h2 class=\"fw-bold\">{{ folderLink.name_folder }}</h2>
\t\t\t\t\t\t\t{% if folderLink.links is not empty %}
\t\t\t\t\t\t\t\t<div class=\"mb-5 list-group list-group-flush\">
\t\t\t\t\t\t\t\t\t{% for pageLink in folderLink.links %}
\t\t\t\t\t\t\t\t\t\t<a href=\"{{ pageLink.link_page }}\" class=\"list-group-item list-group-item-action\">{{ pageLink.name_page }}</a>
\t\t\t\t\t\t\t\t\t{% endfor %}
\t\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t{% endif %}
\t\t\t\t\t\t</ul>
\t\t\t\t\t</div>
\t\t\t\t{% endfor %}
\t\t\t{% endif %}
\t\t</div>
\t\t{% if editmode %}
\t\t\t<div class=\"row\">
\t\t\t\t<div class=\"col-12\">
\t\t\t\t\t<p class=\"advice\">{{ 'tip: Door op het plusteken te klikken kun je kiezen welke inhoudelijke blok je kan toevoegen.'|trans({}, 'admin') }}</p>
\t\t\t\t</div>
\t\t\t</div>
\t\t{% endif %}
\t\t<div class=\"row\">
\t\t\t<div class=\"col-12\">
\t\t\t\t{{ include('includes/default-content.html.twig') }}
\t\t\t</div>
\t\t</div>
\t</div>
{% endblock %}
", "services/default.html.twig", "/var/www/clients/client2/web45/web/pc/templates/services/default.html.twig");
}
public function checkSecurity()
{
static $tags = array("if" => 4, "for" => 65);
static $filters = array("escape" => 40, "trans" => 40);
static $functions = array("pimcore_areablock" => 47, "pimcore_input" => 56, "include" => 97, "base_layout" => 1);
try {
$this->sandbox->checkSecurity(
['if', 'for'],
['escape', 'trans'],
['pimcore_areablock', 'pimcore_input', 'include', 'base_layout']
);
} 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;
}
}
}