var/cache/dev/twig/1a/1a98f67a36f8896860630f6026eaed1d.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. /* calender/overview.html.twig */
  14. class __TwigTemplate_a6f790323fb6e9b6c782c71c566d15e6 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(), "calender/overview.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""calender/overview.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""calender/overview.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.     <div class=\"container\">
  57.         <div class=\"row\">
  58.             <div class=\"col-12\">
  59.                 <h1>";
  60.         // line 8
  61.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Kalender"), "html"nulltrue);
  62.         echo " ";
  63.         echo twig_escape_filter($this->env$this->sandbox->ensureToStringAllowed((isset($context["year"]) || array_key_exists("year"$context) ? $context["year"] : (function () { throw new RuntimeError('Variable "year" does not exist.'8$this->source); })()), 8$this->source), "html"nulltrue);
  64.         echo "</h1>
  65.                 ";
  66.         // line 9
  67.         if ((twig_date_format_filter($this->env"now""Y") == (isset($context["year"]) || array_key_exists("year"$context) ? $context["year"] : (function () { throw new RuntimeError('Variable "year" does not exist.'9$this->source); })()))) {
  68.             // line 10
  69.             echo "                    ";
  70.             echo $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context"link""linkNextYear", ["class" => "btn btn-outline-primary my-3 ms-lg-5 mt-3 mt-lg-0 text-uppercas"]);
  71.             echo "
  72.                 ";
  73.         }
  74.         // line 12
  75.         echo "                <h2>";
  76.         echo $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context"input""title", ["placeholder" => "Headline"]);
  77.         echo "</h2>
  78.                 ";
  79.         // line 13
  80.         echo $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context"wysiwyg""content_text", ["placeholder" => "Place content here"]);
  81.         echo "
  82.             </div>
  83.         </div>
  84.         <div class=\"row my-3\">
  85.             <div class=\"col-12\">
  86.                 ";
  87.         // line 18
  88.         $context['_parent'] = $context;
  89.         $context['_seq'] = twig_ensure_traversable((isset($context["calender"]) || array_key_exists("calender"$context) ? $context["calender"] : (function () { throw new RuntimeError('Variable "calender" does not exist.'18$this->source); })()));
  90.         foreach ($context['_seq'] as $context["_key"] => $context["cal"]) {
  91.             // line 19
  92.             echo "
  93.                     <div class=\"row\">
  94.                         <div class=\"col-lg-1 col-2 text-center\">
  95.                         </div>
  96.                         <div class=\"col\">
  97.                             <h3 class=\"text-uppercase mb-3 text-primary\">";
  98.             // line 25
  99.             echo twig_escape_filter($this->env$this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source$context["cal"], "month", [], "any"falsefalsetrue25), 25$this->source), "html"nulltrue);
  100.             echo "</h3></div>
  101.                     </div>
  102.                     <div class=\"row row-cols-lg-2 row-cols-1 g-5\">
  103.                     ";
  104.             // line 28
  105.             if (twig_get_attribute($this->env$this->source$context["cal"], "days", [], "any"truetruetrue28)) {
  106.                 // line 29
  107.                 echo "                        ";
  108.                 $context['_parent'] = $context;
  109.                 $context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env$this->source$context["cal"], "days", [], "any"falsefalsetrue29));
  110.                 foreach ($context['_seq'] as $context["_key"] => $context["day"]) {
  111.                     // line 30
  112.                     echo "                            <div class=\"col\">
  113.                             <div class=\"row mb-5\">
  114.                                 <div class=\"col-2 text-center d-flex align-items-center\">
  115.                                     <div>
  116.                                         <h1 class=\"display-4 text-black\">";
  117.                     // line 34
  118.                     echo twig_escape_filter($this->envtwig_date_format_filter($this->env$this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source$context["day"], "Datum", [], "any"falsefalsetrue34), 34$this->source), "d"), "html"nulltrue);
  119.                     echo "</h1>
  120.                                         <h2 class=\"display-6 text-black text-uppercase\">";
  121.                     // line 35
  122.                     echo twig_escape_filter($this->envtwig_date_format_filter($this->env$this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source$context["day"], "Datum", [], "any"falsefalsetrue35), 35$this->source), "M"), "html"nulltrue);
  123.                     echo "</h2>
  124.                                     </div>
  125.                                 </div>
  126.                                 <div class=\"col-10\">
  127.                                     <div class=\"bg-opacity-10 bg-primary p-4\">
  128.                                         <h3>";
  129.                     // line 40
  130.                     echo twig_escape_filter($this->env$this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source$context["day"], "dayinfo", [], "any"falsefalsetrue40), 40$this->source), "html"nulltrue);
  131.                     echo "</h3>
  132.                                         <div class=\"mb-3\">
  133.                                         <span class=\"me-3\">
  134.                                         <i class=\"fa-solid fa-calendar me-1 text-primary\"></i>";
  135.                     // line 43
  136.                     echo twig_escape_filter($this->envtwig_date_format_filter($this->env$this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source$context["day"], "Datum", [], "any"falsefalsetrue43), 43$this->source), "D"), "html"nulltrue);
  137.                     echo "</span>
  138.                                             <span class=\"me-3\">
  139.                                         <i class=\"fa-solid fa-clock me-1 text-primary\"></i>";
  140.                     // line 45
  141.                     echo twig_escape_filter($this->env$this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source$context["day"], "start_u", [], "any"falsefalsetrue45), 45$this->source), "html"nulltrue);
  142.                     echo " - ";
  143.                     echo twig_escape_filter($this->env$this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source$context["day"], "eind_u", [], "any"falsefalsetrue45), 45$this->source), "html"nulltrue);
  144.                     echo "</span>
  145.                                             <span class=\"me-3\">
  146.                                             <i class=\"fa-sharp fa-solid fa-location-arrow me-1 text-primary\"></i>
  147.                                             ";
  148.                     // line 48
  149.                     echo twig_escape_filter($this->env$this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source$context["day"], "Place", [], "any"falsefalsetrue48), 48$this->source), "html"nulltrue);
  150.                     echo "</span>
  151.                                         </div>
  152.                                         ";
  153.                     // line 52
  154.                     echo "                                        <p>";
  155.                     echo $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source$context["day"], "Datum_description", [], "any"falsefalsetrue52), 52$this->source);
  156.                     echo "</p>
  157.                                     </div>
  158.                                 </div>
  159.                             </div>
  160.                     </div>
  161.                         ";
  162.                 }
  163.                 $_parent $context['_parent'];
  164.                 unset($context['_seq'], $context['_iterated'], $context['_key'], $context['day'], $context['_parent'], $context['loop']);
  165.                 $context array_intersect_key($context$_parent) + $_parent;
  166.                 // line 60
  167.                 echo "                    ";
  168.             } else {
  169.                 // line 61
  170.                 echo "                        <div class=\"col\">
  171.                         <div class=\"row mb-5\">
  172.                             <div class=\"col-2\">
  173.                             </div>
  174.                             <div class=\"col-10\">
  175.                                 <p>";
  176.                 // line 66
  177.                 echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("geen geplande activiteiten"), "html"nulltrue);
  178.                 echo "</p>
  179.                             </div>
  180.                         </div>
  181.                         </div>
  182.                     ";
  183.             }
  184.             // line 71
  185.             echo "                    </div>
  186.                 ";
  187.         }
  188.         $_parent $context['_parent'];
  189.         unset($context['_seq'], $context['_iterated'], $context['_key'], $context['cal'], $context['_parent'], $context['loop']);
  190.         $context array_intersect_key($context$_parent) + $_parent;
  191.         // line 75
  192.         echo "
  193.                 ";
  194.         // line 76
  195.         if ((twig_date_format_filter($this->env"now""Y") == (isset($context["year"]) || array_key_exists("year"$context) ? $context["year"] : (function () { throw new RuntimeError('Variable "year" does not exist.'76$this->source); })()))) {
  196.             // line 77
  197.             echo "                    <div class=\"my-5 text-center\">
  198.                         <h2>";
  199.             // line 78
  200.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Historiek"), "html"nulltrue);
  201.             echo " ";
  202.             echo twig_escape_filter($this->env$this->sandbox->ensureToStringAllowed((isset($context["year"]) || array_key_exists("year"$context) ? $context["year"] : (function () { throw new RuntimeError('Variable "year" does not exist.'78$this->source); })()), 78$this->source), "html"nulltrue);
  203.             echo "</h2>
  204.                     </div>
  205.                     <table class=\"table table-sm\">
  206.                         <tbody>
  207.                         ";
  208.             // line 82
  209.             $context['_parent'] = $context;
  210.             $context['_seq'] = twig_ensure_traversable((isset($context["HisCalender"]) || array_key_exists("HisCalender"$context) ? $context["HisCalender"] : (function () { throw new RuntimeError('Variable "HisCalender" does not exist.'82$this->source); })()));
  211.             foreach ($context['_seq'] as $context["_key"] => $context["cal"]) {
  212.                 // line 83
  213.                 echo "
  214.                             <tr class=\"bg-primary bg-opacity-10\">
  215.                                 <td class=\"col-lg-1 col-2\"></td>
  216.                                 <td class=\"col\"><h3 class=\"text-uppercase mb-0\">";
  217.                 // line 86
  218.                 echo twig_escape_filter($this->env$this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source$context["cal"], "month", [], "any"falsefalsetrue86), 86$this->source), "html"nulltrue);
  219.                 echo "</h3></td>
  220.                             </tr>
  221.                             ";
  222.                 // line 90
  223.                 if (twig_get_attribute($this->env$this->source$context["cal"], "days", [], "any"truetruetrue90)) {
  224.                     // line 91
  225.                     echo "                                ";
  226.                     $context['_parent'] = $context;
  227.                     $context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env$this->source$context["cal"], "days", [], "any"falsefalsetrue91));
  228.                     foreach ($context['_seq'] as $context["_key"] => $context["day"]) {
  229.                         // line 92
  230.                         echo "                                    <tr>
  231.                                         <td>";
  232.                         // line 93
  233.                         echo twig_escape_filter($this->envtwig_date_format_filter($this->env$this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source$context["day"], "Datum", [], "any"falsefalsetrue93), 93$this->source), "d"), "html"nulltrue);
  234.                         echo " ";
  235.                         echo twig_escape_filter($this->envtwig_date_format_filter($this->env$this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source$context["day"], "Datum", [], "any"falsefalsetrue93), 93$this->source), "M"), "html"nulltrue);
  236.                         echo "</td>
  237.                                         <td>
  238.                                             <p class=\"fs-5 mb-0\"><strong>";
  239.                         // line 95
  240.                         echo twig_escape_filter($this->env$this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source$context["day"], "dayinfo", [], "any"falsefalsetrue95), 95$this->source), "html"nulltrue);
  241.                         echo "</strong></p>
  242.                                             ";
  243.                         // line 106
  244.                         echo "                                            <p>";
  245.                         echo $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source$context["day"], "Datum_description", [], "any"falsefalsetrue106), 106$this->source);
  246.                         echo "</p></td>
  247.                                     </tr>
  248.                                 ";
  249.                     }
  250.                     $_parent $context['_parent'];
  251.                     unset($context['_seq'], $context['_iterated'], $context['_key'], $context['day'], $context['_parent'], $context['loop']);
  252.                     $context array_intersect_key($context$_parent) + $_parent;
  253.                     // line 110
  254.                     echo "
  255.                             ";
  256.                 }
  257.                 // line 113
  258.                 echo "
  259.                         ";
  260.             }
  261.             $_parent $context['_parent'];
  262.             unset($context['_seq'], $context['_iterated'], $context['_key'], $context['cal'], $context['_parent'], $context['loop']);
  263.             $context array_intersect_key($context$_parent) + $_parent;
  264.             // line 115
  265.             echo "                        </tbody>
  266.                     </table>
  267.                 ";
  268.         }
  269.         // line 118
  270.         echo "            </div>
  271.         </div>
  272.     </div>
  273. ";
  274.         
  275.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  276.         
  277.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  278.     }
  279.     public function getTemplateName()
  280.     {
  281.         return "calender/overview.html.twig";
  282.     }
  283.     public function isTraitable()
  284.     {
  285.         return false;
  286.     }
  287.     public function getDebugInfo()
  288.     {
  289.         return array (  293 => 118,  288 => 115,  281 => 113,  276 => 110,  265 => 106,  261 => 95,  254 => 93,  251 => 92,  246 => 91,  244 => 90,  237 => 86,  232 => 83,  228 => 82,  219 => 78,  216 => 77,  214 => 76,  211 => 75,  202 => 71,  194 => 66,  187 => 61,  184 => 60,  169 => 52,  164 => 48,  156 => 45,  151 => 43,  145 => 40,  137 => 35,  133 => 34,  127 => 30,  122 => 29,  120 => 28,  114 => 25,  106 => 19,  102 => 18,  94 => 13,  89 => 12,  83 => 10,  81 => 9,  75 => 8,  69 => 4,  59 => 3,  37 => 1,);
  290.     }
  291.     public function getSourceContext()
  292.     {
  293.         return new Source("{% extends base_layout() %}
  294. {% block content %}
  295.     <div class=\"container\">
  296.         <div class=\"row\">
  297.             <div class=\"col-12\">
  298.                 <h1>{{ 'Kalender'|trans }} {{ year }}</h1>
  299.                 {% if 'now' | date('Y') == year %}
  300.                     {{ pimcore_link('linkNextYear', {'class': \"btn btn-outline-primary my-3 ms-lg-5 mt-3 mt-lg-0 text-uppercas\"}) }}
  301.                 {% endif %}
  302.                 <h2>{{ pimcore_input('title', {'placeholder':'Headline'}) }}</h2>
  303.                 {{ pimcore_wysiwyg('content_text', {'placeholder':'Place content here'}) }}
  304.             </div>
  305.         </div>
  306.         <div class=\"row my-3\">
  307.             <div class=\"col-12\">
  308.                 {% for cal in calender %}
  309.                     <div class=\"row\">
  310.                         <div class=\"col-lg-1 col-2 text-center\">
  311.                         </div>
  312.                         <div class=\"col\">
  313.                             <h3 class=\"text-uppercase mb-3 text-primary\">{{ cal.month }}</h3></div>
  314.                     </div>
  315.                     <div class=\"row row-cols-lg-2 row-cols-1 g-5\">
  316.                     {% if cal.days is defined %}
  317.                         {% for day  in cal.days %}
  318.                             <div class=\"col\">
  319.                             <div class=\"row mb-5\">
  320.                                 <div class=\"col-2 text-center d-flex align-items-center\">
  321.                                     <div>
  322.                                         <h1 class=\"display-4 text-black\">{{ day.Datum|date(\"d\") }}</h1>
  323.                                         <h2 class=\"display-6 text-black text-uppercase\">{{ day.Datum|date(\"M\") }}</h2>
  324.                                     </div>
  325.                                 </div>
  326.                                 <div class=\"col-10\">
  327.                                     <div class=\"bg-opacity-10 bg-primary p-4\">
  328.                                         <h3>{{ day.dayinfo }}</h3>
  329.                                         <div class=\"mb-3\">
  330.                                         <span class=\"me-3\">
  331.                                         <i class=\"fa-solid fa-calendar me-1 text-primary\"></i>{{ day.Datum|date(\"D\") }}</span>
  332.                                             <span class=\"me-3\">
  333.                                         <i class=\"fa-solid fa-clock me-1 text-primary\"></i>{{ day.start_u }} - {{ day.eind_u }}</span>
  334.                                             <span class=\"me-3\">
  335.                                             <i class=\"fa-sharp fa-solid fa-location-arrow me-1 text-primary\"></i>
  336.                                             {{ day.Place }}</span>
  337.                                         </div>
  338.                                         {#
  339.                                         <h3>Info:</h3> #}
  340.                                         <p>{{ day.Datum_description|raw }}</p>
  341.                                     </div>
  342.                                 </div>
  343.                             </div>
  344.                     </div>
  345.                         {% endfor %}
  346.                     {% else %}
  347.                         <div class=\"col\">
  348.                         <div class=\"row mb-5\">
  349.                             <div class=\"col-2\">
  350.                             </div>
  351.                             <div class=\"col-10\">
  352.                                 <p>{{ \"geen geplande activiteiten\"|trans }}</p>
  353.                             </div>
  354.                         </div>
  355.                         </div>
  356.                     {% endif %}
  357.                     </div>
  358.                 {% endfor %}
  359.                 {% if 'now' | date('Y') == year %}
  360.                     <div class=\"my-5 text-center\">
  361.                         <h2>{{ \"Historiek\"|trans }} {{ year }}</h2>
  362.                     </div>
  363.                     <table class=\"table table-sm\">
  364.                         <tbody>
  365.                         {% for cal in HisCalender %}
  366.                             <tr class=\"bg-primary bg-opacity-10\">
  367.                                 <td class=\"col-lg-1 col-2\"></td>
  368.                                 <td class=\"col\"><h3 class=\"text-uppercase mb-0\">{{ cal.month }}</h3></td>
  369.                             </tr>
  370.                             {% if cal.days is defined %}
  371.                                 {% for day  in cal.days %}
  372.                                     <tr>
  373.                                         <td>{{ day.Datum|date(\"d\") }} {{ day.Datum|date(\"M\") }}</td>
  374.                                         <td>
  375.                                             <p class=\"fs-5 mb-0\"><strong>{{ day.dayinfo }}</strong></p>
  376.                                             {#
  377.                                             <div class=\"mb-3\">
  378.                                                 <span class=\"me-3\">
  379.                                                 <i class=\"fa-solid fa-calendar me-1 text-primary\"></i>{{ day.Datum|date(\"D\") }}</span>
  380.                                                 <span class=\"me-3\">
  381.                                                 <i class=\"fa-solid fa-clock me-1 text-primary\"></i>{{ day.start_u }} - {{ day.eind_u }}</span>
  382.                                                 <span class=\"me-3\">
  383.                                                     <i class=\"fa-sharp fa-solid fa-location-arrow me-1 text-primary\"></i>
  384.                                                     {{ day.Place }}</span>
  385.                                             </div> #}
  386.                                             <p>{{ day.Datum_description|raw }}</p></td>
  387.                                     </tr>
  388.                                 {% endfor %}
  389.                             {% endif %}
  390.                         {% endfor %}
  391.                         </tbody>
  392.                     </table>
  393.                 {% endif %}
  394.             </div>
  395.         </div>
  396.     </div>
  397. {% endblock %}""calender/overview.html.twig""/var/www/clients/client2/web45/web/pc/templates/calender/overview.html.twig");
  398.     }
  399.     
  400.     public function checkSecurity()
  401.     {
  402.         static $tags = array("if" => 9"for" => 18);
  403.         static $filters = array("escape" => 8"trans" => 8"date" => 9"raw" => 52);
  404.         static $functions = array("pimcore_link" => 10"pimcore_input" => 12"pimcore_wysiwyg" => 13"base_layout" => 1);
  405.         try {
  406.             $this->sandbox->checkSecurity(
  407.                 ['if''for'],
  408.                 ['escape''trans''date''raw'],
  409.                 ['pimcore_link''pimcore_input''pimcore_wysiwyg''base_layout']
  410.             );
  411.         } catch (SecurityError $e) {
  412.             $e->setSourceContext($this->source);
  413.             if ($e instanceof SecurityNotAllowedTagError && isset($tags[$e->getTagName()])) {
  414.                 $e->setTemplateLine($tags[$e->getTagName()]);
  415.             } elseif ($e instanceof SecurityNotAllowedFilterError && isset($filters[$e->getFilterName()])) {
  416.                 $e->setTemplateLine($filters[$e->getFilterName()]);
  417.             } elseif ($e instanceof SecurityNotAllowedFunctionError && isset($functions[$e->getFunctionName()])) {
  418.                 $e->setTemplateLine($functions[$e->getFunctionName()]);
  419.             }
  420.             throw $e;
  421.         }
  422.     }
  423. }