var/cache/dev/twig/da/da45f688379fc52e14d03f667e302576.php line 40

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. /* services/default.html.twig */
  14. class __TwigTemplate_5e72f6a287cf5af4289c74a937f4a296 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->blocks = [
  23.             'content' => [$this'block_content'],
  24.         ];
  25.         $this->sandbox $this->env->getExtension('\Twig\Extension\SandboxExtension');
  26.         $this->checkSecurity();
  27.     }
  28.     protected function doGetParent(array $context)
  29.     {
  30.         // line 1
  31.         return $this->loadTemplate($this->extensions['App\Twig\Extension\WebsiteExtension']->getBaseLayout(), "services/default.html.twig"1);
  32.     }
  33.     protected function doDisplay(array $context, array $blocks = [])
  34.     {
  35.         $macros $this->macros;
  36.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  37.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""services/default.html.twig"));
  38.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  39.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""services/default.html.twig"));
  40.         $this->getParent($context)->display($contextarray_merge($this->blocks$blocks));
  41.         
  42.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  43.         
  44.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  45.     }
  46.     // line 3
  47.     public function block_content($context, array $blocks = [])
  48.     {
  49.         $macros $this->macros;
  50.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  51.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""content"));
  52.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  53.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""content"));
  54.         // line 4
  55.         echo "\t";
  56.         if ((isset($context["editmode"]) || array_key_exists("editmode"$context) ? $context["editmode"] : (function () { throw new RuntimeError('Variable "editmode" does not exist.'4$this->source); })())) {
  57.             // line 5
  58.             echo "\t\t";
  59.             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"falsefalsetrue5) == "zeilen")) {
  60.                 // line 6
  61.                 echo "\t\t\t<style>
  62. \t\t\t\t.alert-info {
  63. \t\t\t\t\t--bs-alert-color: white;
  64. \t\t\t\t\t--bs-alert-bg: #007ec3;
  65. \t\t\t\t\t--bs-alert-border-color: var(--bs-info-border-subtle);
  66. \t\t\t\t\t--bs-alert-link-color: var(--bs-info-text);
  67. \t\t\t\t}
  68. \t\t\t</style>
  69. \t\t";
  70.             }
  71.             // line 15
  72.             echo "\t\t";
  73.             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"falsefalsetrue15) == "surfen")) {
  74.                 // line 16
  75.                 echo "\t\t\t<style>
  76. \t\t\t\t.alert-info {
  77. \t\t\t\t\t--bs-alert-color: white;
  78. \t\t\t\t\t--bs-alert-bg: #c30000;
  79. \t\t\t\t\t--bs-alert-border-color: var(--bs-info-border-subtle);
  80. \t\t\t\t\t--bs-alert-link-color: var(--bs-info-text);
  81. \t\t\t\t}
  82. \t\t\t</style>
  83. \t\t";
  84.             }
  85.             // line 25
  86.             echo "\t\t";
  87.             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"falsefalsetrue25) == "suppen")) {
  88.                 // line 26
  89.                 echo "\t\t\t<style>
  90. \t\t\t\t.alert-info {
  91. \t\t\t\t\t--bs-alert-color: white;
  92. \t\t\t\t\t--bs-alert-bg: #9ad5dd;
  93. \t\t\t\t\t--bs-alert-border-color: var(--bs-info-border-subtle);
  94. \t\t\t\t\t--bs-alert-link-color: var(--bs-info-text);
  95. \t\t\t\t}
  96. \t\t\t</style>
  97. \t\t";
  98.             }
  99.             // line 35
  100.             echo "\t";
  101.         }
  102.         // line 36
  103.         echo "
  104. \t";
  105.         // line 37
  106.         if ((isset($context["editmode"]) || array_key_exists("editmode"$context) ? $context["editmode"] : (function () { throw new RuntimeError('Variable "editmode" does not exist.'37$this->source); })())) {
  107.             // line 38
  108.             echo "\t\t<div class=\"row\">
  109. \t\t\t<div class=\"col-12\">
  110. \t\t\t\t<p class=\"advice\">";
  111.             // line 40
  112.             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"nulltrue);
  113.             echo "</p>
  114. \t\t\t</div>
  115. \t\t</div>
  116. \t";
  117.         }
  118.         // line 44
  119.         echo "
  120. \t<div class=\"row\">
  121. \t\t<div class=\"col-12\">
  122. \t\t\t";
  123.         // line 47
  124.         echo $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context"areablock""content-1");
  125.         echo "
  126. \t\t</div>
  127. \t</div>
  128. \t<div class=\"container ";
  129.         // line 53
  130.         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"falsefalsetrue53) == "zeilen")) {
  131.             echo "zeilen";
  132.         }
  133.         echo " ";
  134.         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"falsefalsetrue53) == "surfen")) {
  135.             echo "surfen";
  136.         }
  137.         echo " ";
  138.         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"falsefalsetrue53) == "suppen")) {
  139.             echo "suppen";
  140.         }
  141.         echo " \">
  142. \t\t<div class=\"row\">
  143. \t\t\t<div class=\"col\">
  144. \t\t\t\t<h1>";
  145.         // line 56
  146.         echo $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context"input""title", ["placeholder" => "Headline"]);
  147.         echo "</h1>
  148. \t\t\t</div>
  149. \t\t</div>
  150. \t\t<div class=\"row row-cols-1 row-cols-lg-3\">
  151. \t\t\t";
  152.         // line 64
  153.         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))) {
  154.             // line 65
  155.             echo "\t\t\t\t";
  156.             $context['_parent'] = $context;
  157.             $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); })()));
  158.             foreach ($context['_seq'] as $context["_key"] => $context["folderLink"]) {
  159.                 // line 66
  160.                 echo "
  161. \t\t\t\t\t<div class=\"col\">
  162. \t\t\t\t\t\t<ul>
  163. \t\t\t\t\t\t\t<h2 class=\"fw-bold\">";
  164.                 // line 70
  165.                 echo twig_escape_filter($this->env$this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source$context["folderLink"], "name_folder", [], "any"falsefalsetrue70), 70$this->source), "html"nulltrue);
  166.                 echo "</h2>
  167. \t\t\t\t\t\t\t";
  168.                 // line 71
  169.                 if ( !twig_test_empty(twig_get_attribute($this->env$this->source$context["folderLink"], "links", [], "any"falsefalsetrue71))) {
  170.                     // line 72
  171.                     echo "\t\t\t\t\t\t\t\t<div class=\"mb-5 list-group list-group-flush\">
  172. \t\t\t\t\t\t\t\t\t";
  173.                     // line 73
  174.                     $context['_parent'] = $context;
  175.                     $context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env$this->source$context["folderLink"], "links", [], "any"falsefalsetrue73));
  176.                     foreach ($context['_seq'] as $context["_key"] => $context["pageLink"]) {
  177.                         // line 74
  178.                         echo "\t\t\t\t\t\t\t\t\t\t<a href=\"";
  179.                         echo twig_escape_filter($this->env$this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source$context["pageLink"], "link_page", [], "any"falsefalsetrue74), 74$this->source), "html"nulltrue);
  180.                         echo "\" class=\"list-group-item list-group-item-action\">";
  181.                         echo twig_escape_filter($this->env$this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source$context["pageLink"], "name_page", [], "any"falsefalsetrue74), 74$this->source), "html"nulltrue);
  182.                         echo "</a>
  183. \t\t\t\t\t\t\t\t\t";
  184.                     }
  185.                     $_parent $context['_parent'];
  186.                     unset($context['_seq'], $context['_iterated'], $context['_key'], $context['pageLink'], $context['_parent'], $context['loop']);
  187.                     $context array_intersect_key($context$_parent) + $_parent;
  188.                     // line 76
  189.                     echo "\t\t\t\t\t\t\t\t</div>
  190. \t\t\t\t\t\t\t";
  191.                 }
  192.                 // line 78
  193.                 echo "
  194. \t\t\t\t\t\t</ul>
  195. \t\t\t\t\t</div>
  196. \t\t\t\t";
  197.             }
  198.             $_parent $context['_parent'];
  199.             unset($context['_seq'], $context['_iterated'], $context['_key'], $context['folderLink'], $context['_parent'], $context['loop']);
  200.             $context array_intersect_key($context$_parent) + $_parent;
  201.             // line 82
  202.             echo "
  203. \t\t\t";
  204.         }
  205.         // line 84
  206.         echo "
  207. \t\t</div>
  208. \t\t";
  209.         // line 87
  210.         if ((isset($context["editmode"]) || array_key_exists("editmode"$context) ? $context["editmode"] : (function () { throw new RuntimeError('Variable "editmode" does not exist.'87$this->source); })())) {
  211.             // line 88
  212.             echo "\t\t\t<div class=\"row\">
  213. \t\t\t\t<div class=\"col-12\">
  214. \t\t\t\t\t<p class=\"advice\">";
  215.             // line 90
  216.             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"nulltrue);
  217.             echo "</p>
  218. \t\t\t\t</div>
  219. \t\t\t</div>
  220. \t\t";
  221.         }
  222.         // line 94
  223.         echo "
  224. \t\t<div class=\"row\">
  225. \t\t\t<div class=\"col-12\">
  226. \t\t\t\t";
  227.         // line 97
  228.         echo twig_include($this->env$context"includes/default-content.html.twig");
  229.         echo "
  230. \t\t\t</div>
  231. \t\t</div>
  232. \t</div>
  233. ";
  234.         
  235.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  236.         
  237.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  238.     }
  239.     public function getTemplateName()
  240.     {
  241.         return "services/default.html.twig";
  242.     }
  243.     public function isTraitable()
  244.     {
  245.         return false;
  246.     }
  247.     public function getDebugInfo()
  248.     {
  249.         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,);
  250.     }
  251.     public function getSourceContext()
  252.     {
  253.         return new Source("{% extends base_layout() %}
  254. {% block content %}
  255. \t{% if editmode %}
  256. \t\t{% if document.getKey()  == 'zeilen' %}
  257. \t\t\t<style>
  258. \t\t\t\t.alert-info {
  259. \t\t\t\t\t--bs-alert-color: white;
  260. \t\t\t\t\t--bs-alert-bg: #007ec3;
  261. \t\t\t\t\t--bs-alert-border-color: var(--bs-info-border-subtle);
  262. \t\t\t\t\t--bs-alert-link-color: var(--bs-info-text);
  263. \t\t\t\t}
  264. \t\t\t</style>
  265. \t\t{% endif %}
  266. \t\t{% if document.getKey()  == 'surfen' %}
  267. \t\t\t<style>
  268. \t\t\t\t.alert-info {
  269. \t\t\t\t\t--bs-alert-color: white;
  270. \t\t\t\t\t--bs-alert-bg: #c30000;
  271. \t\t\t\t\t--bs-alert-border-color: var(--bs-info-border-subtle);
  272. \t\t\t\t\t--bs-alert-link-color: var(--bs-info-text);
  273. \t\t\t\t}
  274. \t\t\t</style>
  275. \t\t{% endif %}
  276. \t\t{% if document.getKey()  == 'suppen' %}
  277. \t\t\t<style>
  278. \t\t\t\t.alert-info {
  279. \t\t\t\t\t--bs-alert-color: white;
  280. \t\t\t\t\t--bs-alert-bg: #9ad5dd;
  281. \t\t\t\t\t--bs-alert-border-color: var(--bs-info-border-subtle);
  282. \t\t\t\t\t--bs-alert-link-color: var(--bs-info-text);
  283. \t\t\t\t}
  284. \t\t\t</style>
  285. \t\t{% endif %}
  286. \t{% endif %}
  287. \t{% if editmode %}
  288. \t\t<div class=\"row\">
  289. \t\t\t<div class=\"col-12\">
  290. \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>
  291. \t\t\t</div>
  292. \t\t</div>
  293. \t{% endif %}
  294. \t<div class=\"row\">
  295. \t\t<div class=\"col-12\">
  296. \t\t\t{{ pimcore_areablock('content-1') }}
  297. \t\t</div>
  298. \t</div>
  299. \t<div class=\"container {% if document.getKey()  == 'zeilen' %}zeilen{% endif %} {% if document.getKey()  == 'surfen' %}surfen{% endif %} {% if document.getKey()  == 'suppen' %}suppen{% endif %} \">
  300. \t\t<div class=\"row\">
  301. \t\t\t<div class=\"col\">
  302. \t\t\t\t<h1>{{ pimcore_input('title', {'placeholder':'Headline'}) }}</h1>
  303. \t\t\t</div>
  304. \t\t</div>
  305. \t\t<div class=\"row row-cols-1 row-cols-lg-3\">
  306. \t\t\t{% if Infolinks is not empty and Infolinks is defined %}
  307. \t\t\t\t{% for folderLink in Infolinks %}
  308. \t\t\t\t\t<div class=\"col\">
  309. \t\t\t\t\t\t<ul>
  310. \t\t\t\t\t\t\t<h2 class=\"fw-bold\">{{ folderLink.name_folder }}</h2>
  311. \t\t\t\t\t\t\t{% if folderLink.links is not empty %}
  312. \t\t\t\t\t\t\t\t<div class=\"mb-5 list-group list-group-flush\">
  313. \t\t\t\t\t\t\t\t\t{% for pageLink in folderLink.links %}
  314. \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>
  315. \t\t\t\t\t\t\t\t\t{% endfor %}
  316. \t\t\t\t\t\t\t\t</div>
  317. \t\t\t\t\t\t\t{% endif %}
  318. \t\t\t\t\t\t</ul>
  319. \t\t\t\t\t</div>
  320. \t\t\t\t{% endfor %}
  321. \t\t\t{% endif %}
  322. \t\t</div>
  323. \t\t{% if editmode %}
  324. \t\t\t<div class=\"row\">
  325. \t\t\t\t<div class=\"col-12\">
  326. \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>
  327. \t\t\t\t</div>
  328. \t\t\t</div>
  329. \t\t{% endif %}
  330. \t\t<div class=\"row\">
  331. \t\t\t<div class=\"col-12\">
  332. \t\t\t\t{{ include('includes/default-content.html.twig') }}
  333. \t\t\t</div>
  334. \t\t</div>
  335. \t</div>
  336. {% endblock %}
  337. ""services/default.html.twig""/var/www/clients/client2/web45/web/pc/templates/services/default.html.twig");
  338.     }
  339.     
  340.     public function checkSecurity()
  341.     {
  342.         static $tags = array("if" => 4"for" => 65);
  343.         static $filters = array("escape" => 40"trans" => 40);
  344.         static $functions = array("pimcore_areablock" => 47"pimcore_input" => 56"include" => 97"base_layout" => 1);
  345.         try {
  346.             $this->sandbox->checkSecurity(
  347.                 ['if''for'],
  348.                 ['escape''trans'],
  349.                 ['pimcore_areablock''pimcore_input''include''base_layout']
  350.             );
  351.         } catch (SecurityError $e) {
  352.             $e->setSourceContext($this->source);
  353.             if ($e instanceof SecurityNotAllowedTagError && isset($tags[$e->getTagName()])) {
  354.                 $e->setTemplateLine($tags[$e->getTagName()]);
  355.             } elseif ($e instanceof SecurityNotAllowedFilterError && isset($filters[$e->getFilterName()])) {
  356.                 $e->setTemplateLine($filters[$e->getFilterName()]);
  357.             } elseif ($e instanceof SecurityNotAllowedFunctionError && isset($functions[$e->getFunctionName()])) {
  358.                 $e->setTemplateLine($functions[$e->getFunctionName()]);
  359.             }
  360.             throw $e;
  361.         }
  362.     }
  363. }