var/cache/dev/twig/3e/3e57f11b9d3438293bcc11d63614ef66.php line 49

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. /* content/default.html.twig */
  14. class __TwigTemplate_5ad6e05a736b1a383411a04be99395cb 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(), "content/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""content/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""content/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 "    ";
  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 "        ";
  59.             if ((twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_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); })()), "getParent", [], "method"falsefalsetrue5), "getParent", [], "method"falsefalsetrue5), "getKey", [], "method"falsefalsetrue5) == "zeilen")) {
  60.                 // line 6
  61.                 echo "            <style>
  62.                 .alert-info {
  63.                     --bs-alert-color: white;
  64.                     --bs-alert-bg: #007ec3;
  65.                     --bs-alert-border-color: var(--bs-info-border-subtle);
  66.                     --bs-alert-link-color: var(--bs-info-text);
  67.                 }
  68.             </style>
  69.         ";
  70.             }
  71.             // line 15
  72.             echo "        ";
  73.             if ((twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_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); })()), "getParent", [], "method"falsefalsetrue15), "getParent", [], "method"falsefalsetrue15), "getKey", [], "method"falsefalsetrue15) == "surfen")) {
  74.                 // line 16
  75.                 echo "            <style>
  76.                 .alert-info {
  77.                     --bs-alert-color: white;
  78.                     --bs-alert-bg: #c30000;
  79.                     --bs-alert-border-color: var(--bs-info-border-subtle);
  80.                     --bs-alert-link-color: var(--bs-info-text);
  81.                 }
  82.             </style>
  83.         ";
  84.             }
  85.             // line 25
  86.             echo "        ";
  87.             if ((twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_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); })()), "getParent", [], "method"falsefalsetrue25), "getParent", [], "method"falsefalsetrue25), "getKey", [], "method"falsefalsetrue25) == "suppen")) {
  88.                 // line 26
  89.                 echo "            <style>
  90.                 .alert-info {
  91.                     --bs-alert-color: white;
  92.                     --bs-alert-bg: #9ad5dd;
  93.                     --bs-alert-border-color: var(--bs-info-border-subtle);
  94.                     --bs-alert-link-color: var(--bs-info-text);
  95.                 }
  96.             </style>
  97.         ";
  98.             }
  99.             // line 35
  100.             echo "    ";
  101.         }
  102.         // line 36
  103.         echo "    
  104.     <div class=\"container\">
  105.         <div class=\"row\">
  106.             <div class=\"col-12\">
  107.                 <h1>";
  108.         // line 40
  109.         echo $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context"input""title", ["placeholder" => "Headline"]);
  110.         echo "</h1>
  111.                 ";
  112.         // line 42
  113.         echo $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context"wysiwyg""content_text", ["placeholder" => "Place content here"]);
  114.         echo "
  115.             </div>
  116.         </div>
  117.         ";
  118.         // line 46
  119.         if ((isset($context["editmode"]) || array_key_exists("editmode"$context) ? $context["editmode"] : (function () { throw new RuntimeError('Variable "editmode" does not exist.'46$this->source); })())) {
  120.             // line 47
  121.             echo "            <div class=\"row\">
  122.                 <div class=\"col-12\">
  123.                     <p class=\"advice\">";
  124.             // line 49
  125.             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);
  126.             echo "</p>
  127.                 </div>
  128.             </div>
  129.         ";
  130.         }
  131.         // line 53
  132.         echo "
  133.         <div class=\"row\">
  134.             <div class=\"col-12\">
  135.                 ";
  136.         // line 56
  137.         echo twig_include($this->env$context"includes/default-content.html.twig");
  138.         echo "
  139.             </div>
  140.         </div>
  141.     </div>
  142. ";
  143.         
  144.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  145.         
  146.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  147.     }
  148.     public function getTemplateName()
  149.     {
  150.         return "content/default.html.twig";
  151.     }
  152.     public function isTraitable()
  153.     {
  154.         return false;
  155.     }
  156.     public function getDebugInfo()
  157.     {
  158.         return array (  153 => 56,  148 => 53,  141 => 49,  137 => 47,  135 => 46,  128 => 42,  123 => 40,  117 => 36,  114 => 35,  103 => 26,  100 => 25,  89 => 16,  86 => 15,  75 => 6,  72 => 5,  69 => 4,  59 => 3,  37 => 1,);
  159.     }
  160.     public function getSourceContext()
  161.     {
  162.         return new Source("{% extends base_layout() %}
  163. {% block content %}
  164.     {% if editmode %}
  165.         {% if document.getParent().getParent().getKey()  == 'zeilen' %}
  166.             <style>
  167.                 .alert-info {
  168.                     --bs-alert-color: white;
  169.                     --bs-alert-bg: #007ec3;
  170.                     --bs-alert-border-color: var(--bs-info-border-subtle);
  171.                     --bs-alert-link-color: var(--bs-info-text);
  172.                 }
  173.             </style>
  174.         {% endif %}
  175.         {% if document.getParent().getParent().getKey() == 'surfen' %}
  176.             <style>
  177.                 .alert-info {
  178.                     --bs-alert-color: white;
  179.                     --bs-alert-bg: #c30000;
  180.                     --bs-alert-border-color: var(--bs-info-border-subtle);
  181.                     --bs-alert-link-color: var(--bs-info-text);
  182.                 }
  183.             </style>
  184.         {% endif %}
  185.         {% if document.getParent().getParent().getKey()  == 'suppen' %}
  186.             <style>
  187.                 .alert-info {
  188.                     --bs-alert-color: white;
  189.                     --bs-alert-bg: #9ad5dd;
  190.                     --bs-alert-border-color: var(--bs-info-border-subtle);
  191.                     --bs-alert-link-color: var(--bs-info-text);
  192.                 }
  193.             </style>
  194.         {% endif %}
  195.     {% endif %}
  196.     
  197.     <div class=\"container\">
  198.         <div class=\"row\">
  199.             <div class=\"col-12\">
  200.                 <h1>{{ pimcore_input('title', {'placeholder':'Headline'}) }}</h1>
  201.                 {{ pimcore_wysiwyg('content_text', {'placeholder':'Place content here'}) }}
  202.             </div>
  203.         </div>
  204.         {% if editmode %}
  205.             <div class=\"row\">
  206.                 <div class=\"col-12\">
  207.                     <p class=\"advice\">{{ 'tip: Door op het plusteken te klikken kun je kiezen welke inhoudelijke blok je kan toevoegen.'|trans({}, 'admin') }}</p>
  208.                 </div>
  209.             </div>
  210.         {% endif %}
  211.         <div class=\"row\">
  212.             <div class=\"col-12\">
  213.                 {{ include('includes/default-content.html.twig') }}
  214.             </div>
  215.         </div>
  216.     </div>
  217. {% endblock %}""content/default.html.twig""/var/www/clients/client2/web45/web/pc/templates/content/default.html.twig");
  218.     }
  219.     
  220.     public function checkSecurity()
  221.     {
  222.         static $tags = array("if" => 4);
  223.         static $filters = array("escape" => 49"trans" => 49);
  224.         static $functions = array("pimcore_input" => 40"pimcore_wysiwyg" => 42"include" => 56"base_layout" => 1);
  225.         try {
  226.             $this->sandbox->checkSecurity(
  227.                 ['if'],
  228.                 ['escape''trans'],
  229.                 ['pimcore_input''pimcore_wysiwyg''include''base_layout']
  230.             );
  231.         } catch (SecurityError $e) {
  232.             $e->setSourceContext($this->source);
  233.             if ($e instanceof SecurityNotAllowedTagError && isset($tags[$e->getTagName()])) {
  234.                 $e->setTemplateLine($tags[$e->getTagName()]);
  235.             } elseif ($e instanceof SecurityNotAllowedFilterError && isset($filters[$e->getFilterName()])) {
  236.                 $e->setTemplateLine($filters[$e->getFilterName()]);
  237.             } elseif ($e instanceof SecurityNotAllowedFunctionError && isset($functions[$e->getFunctionName()])) {
  238.                 $e->setTemplateLine($functions[$e->getFunctionName()]);
  239.             }
  240.             throw $e;
  241.         }
  242.     }
  243. }