<?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;
/* includes/layout/header/mainnav/mainnav.html.twig */
class __TwigTemplate_38e2f08740b310fd3b68489eb38d9d26 extends Template
{
private $source;
private $macros = [];
public function __construct(Environment $env)
{
parent::__construct($env);
$this->source = $this->getSourceContext();
$this->parent = false;
$this->blocks = [
];
$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", "includes/layout/header/mainnav/mainnav.html.twig"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "includes/layout/header/mainnav/mainnav.html.twig"));
// line 1
echo "<input type=\"checkbox\" id=\"main-nav--toggle\" class=\"main-nav--toggle\" />
<div class=\"main-nav--top\">
<label for=\"main-nav--toggle\" class=\"main-nav--burger\">
<span></span>
</label>
<div class=\"mobile-menu-top\">
<div class=\"mobile-menu--contact\">
<a href=\"tel:";
// line 10
echo twig_escape_filter($this->env, twig_replace_filter($this->extensions['Pimcore\Twig\Extension\WebsiteConfigExtension']->getWebsiteConfig("phone"), [" " => ""]), "html", null, true);
echo "\">
<i class=\"iconfont-phone\"></i>
<span>";
// line 12
echo twig_escape_filter($this->env, $this->extensions['Pimcore\Twig\Extension\WebsiteConfigExtension']->getWebsiteConfig("phone"), "html", null, true);
echo "</span>
</a>
</div>
<div class=\"mobile-menu--language\">
";
// line 16
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable($this->extensions['App\Twig\Extension\LanguageSwitcherExtension']->getLocalizedLinks((isset($context["document"]) || array_key_exists("document", $context) ? $context["document"] : (function () { throw new RuntimeError('Variable "document" does not exist.', 16, $this->source); })())));
foreach ($context['_seq'] as $context["key"] => $context["lang"]) {
// line 17
echo " ";
if ((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.', 17, $this->source); })()), "request", [], "any", false, false, true, 17), "locale", [], "any", false, false, true, 17) != $context["key"])) {
// line 18
echo " <a href=\"";
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, $context["lang"], "link", [], "any", false, false, true, 18), 18, $this->source), "html", null, true);
echo "\">";
echo twig_escape_filter($this->env, twig_upper_filter($this->env, $this->sandbox->ensureToStringAllowed($context["key"], 18, $this->source)), "html", null, true);
echo "</a>
";
}
// line 20
echo " ";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['key'], $context['lang'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 21
echo " </div>
</div>
</div>
<nav class=\"main-nav\" role=\"navigation\">
<div class=\"scroll-wrapper\">
<ul class=\"contact--first-level\">
";
// line 28
if ($this->extensions['Pimcore\Twig\Extension\WebsiteConfigExtension']->getWebsiteConfig("phone")) {
// line 29
echo " <li>
<a href=\"tel:";
// line 30
echo twig_escape_filter($this->env, twig_replace_filter($this->extensions['Pimcore\Twig\Extension\WebsiteConfigExtension']->getWebsiteConfig("phone"), [" " => ""]), "html", null, true);
echo "\">
<i class=\"iconfont-phone\"></i>
<span>";
// line 32
echo twig_escape_filter($this->env, $this->extensions['Pimcore\Twig\Extension\WebsiteConfigExtension']->getWebsiteConfig("phone"), "html", null, true);
echo "</span>
</a>
</li>
";
}
// line 36
echo " ";
if ($this->extensions['Pimcore\Twig\Extension\WebsiteConfigExtension']->getWebsiteConfig("email")) {
// line 37
echo " <li class=\"mobile-hidden\">
<a href=\"mailto:";
// line 38
echo twig_escape_filter($this->env, $this->extensions['Pimcore\Twig\Extension\WebsiteConfigExtension']->getWebsiteConfig("email"), "html", null, true);
echo "\">
<i class=\"iconfont-envelope\"></i>
<span>";
// line 40
echo twig_escape_filter($this->env, $this->extensions['Pimcore\Twig\Extension\WebsiteConfigExtension']->getWebsiteConfig("email"), "html", null, true);
echo "</span>
</a>
</li>
";
}
// line 44
echo " </ul>
";
// line 46
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.', 46, $this->source); })()))) {
// line 47
echo " ";
$context["document"] = Pimcore\Model\Document::getById(1);
// line 48
echo " ";
}
// line 49
echo " ";
$context["mainNavStartNode"] = 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.', 49, $this->source); })()), "getProperty", [0 => "mainnavStartNode"], "method", false, false, true, 49);
// line 50
echo " ";
$context["mainNav"] = $this->extensions['App\Twig\Extension\ConectoExtension']->buildMainNavigation($this->sandbox->ensureToStringAllowed((isset($context["document"]) || array_key_exists("document", $context) ? $context["document"] : (function () { throw new RuntimeError('Variable "document" does not exist.', 50, $this->source); })()), 50, $this->source), $this->sandbox->ensureToStringAllowed((isset($context["mainNavStartNode"]) || array_key_exists("mainNavStartNode", $context) ? $context["mainNavStartNode"] : (function () { throw new RuntimeError('Variable "mainNavStartNode" does not exist.', 50, $this->source); })()), 50, $this->source));
// line 51
echo " ";
$context["renderer"] = $this->env->getFunction('pimcore_nav_renderer')->getCallable()("menu");
// line 52
echo " <ul class=\"main-nav--first-level\">
";
// line 53
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable((isset($context["mainNav"]) || array_key_exists("mainNav", $context) ? $context["mainNav"] : (function () { throw new RuntimeError('Variable "mainNav" does not exist.', 53, $this->source); })()));
foreach ($context['_seq'] as $context["key"] => $context["page"]) {
// line 54
echo " ";
if ((twig_get_attribute($this->env, $this->source, $context["page"], "isVisible", [], "method", false, false, true, 54) && twig_get_attribute($this->env, $this->source, (isset($context["renderer"]) || array_key_exists("renderer", $context) ? $context["renderer"] : (function () { throw new RuntimeError('Variable "renderer" does not exist.', 54, $this->source); })()), "accept", [0 => $context["page"]], "method", false, false, true, 54))) {
// line 55
echo " ";
$context["activeClass"] = "";
// line 56
echo " ";
$context["hiddenClass"] = "";
// line 57
echo " ";
$context["buttonClass"] = "";
// line 58
echo " ";
if (twig_get_attribute($this->env, $this->source, $context["page"], "getActive", [0 => true], "method", false, false, true, 58)) {
// line 59
echo " ";
$context["activeClass"] = "main-nav--active";
// line 60
echo " ";
}
// line 61
echo " ";
if (twig_get_attribute($this->env, $this->source, $context["page"], "getCustomSetting", [0 => "menuAsButton"], "method", false, false, true, 61)) {
// line 62
echo " ";
$context["hiddenClass"] = "desktop-down-hidden";
// line 63
echo " ";
$context["buttonClass"] = "btn btn--flat btn--outline-negative";
// line 64
echo " ";
}
// line 65
echo " <li class=\"";
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed((isset($context["activeClass"]) || array_key_exists("activeClass", $context) ? $context["activeClass"] : (function () { throw new RuntimeError('Variable "activeClass" does not exist.', 65, $this->source); })()), 65, $this->source), "html", null, true);
echo " ";
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed((isset($context["hiddenClass"]) || array_key_exists("hiddenClass", $context) ? $context["hiddenClass"] : (function () { throw new RuntimeError('Variable "hiddenClass" does not exist.', 65, $this->source); })()), 65, $this->source), "html", null, true);
echo "\">
";
// line 66
if (twig_get_attribute($this->env, $this->source, $context["page"], "hasVisiblePages", [], "any", false, false, true, 66)) {
// line 67
echo " <input type=\"checkbox\" id=\"plusminus-";
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed($context["key"], 67, $this->source), "html", null, true);
echo "\" class=\"dropdown\">
";
}
// line 69
echo " <a class=\"";
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed((isset($context["buttonClass"]) || array_key_exists("buttonClass", $context) ? $context["buttonClass"] : (function () { throw new RuntimeError('Variable "buttonClass" does not exist.', 69, $this->source); })()), 69, $this->source), "html", null, true);
echo "\" href=\"";
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, $context["page"], "href", [], "any", false, false, true, 69), 69, $this->source), "html", null, true);
echo "\" target=\"";
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, $context["page"], "getTarget", [], "method", false, false, true, 69), 69, $this->source), "html", null, true);
echo "\">
";
// line 70
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, $context["page"], "label", [], "any", false, false, true, 70), 70, $this->source), "html", null, true);
echo "
</a>
";
// line 72
if (twig_get_attribute($this->env, $this->source, $context["page"], "hasVisiblePages", [], "any", false, false, true, 72)) {
// line 73
echo " <label for=\"plusminus-";
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed($context["key"], 73, $this->source), "html", null, true);
echo "\" class=\"next\"><span class=\"next--arrow\"></span></label>
<ul class=\"main-nav--sub\" aria=\"submenu\">
";
// line 75
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env, $this->source, $context["page"], "pages", [], "any", false, false, true, 75));
foreach ($context['_seq'] as $context["_key"] => $context["child"]) {
// line 76
echo " ";
if ((twig_get_attribute($this->env, $this->source, $context["child"], "isVisible", [], "method", false, false, true, 76) && twig_get_attribute($this->env, $this->source, (isset($context["renderer"]) || array_key_exists("renderer", $context) ? $context["renderer"] : (function () { throw new RuntimeError('Variable "renderer" does not exist.', 76, $this->source); })()), "accept", [0 => $context["child"]], "method", false, false, true, 76))) {
// line 77
echo " <li ";
if (twig_get_attribute($this->env, $this->source, $context["child"], "getActive", [0 => true], "method", false, false, true, 77)) {
echo " class=\"main-nav--sub-active\"";
}
echo ">
<a href=\"";
// line 78
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, $context["child"], "href", [], "any", false, false, true, 78), 78, $this->source), "html", null, true);
echo "\" target=\"";
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, $context["child"], "getTarget", [], "method", false, false, true, 78), 78, $this->source), "html", null, true);
echo "\">";
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, $context["child"], "label", [], "any", false, false, true, 78), 78, $this->source), "html", null, true);
echo "</a>
";
// line 79
if (twig_get_attribute($this->env, $this->source, $context["child"], "hasPages", [], "any", false, false, true, 79)) {
// line 80
echo " <ul class=\"main-nav--third-level\">
";
// line 81
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env, $this->source, $context["child"], "pages", [], "any", false, false, true, 81));
foreach ($context['_seq'] as $context["_key"] => $context["childPages"]) {
// line 82
echo " <li><i class=\"iconfont-arrow-right\"></i><a href=\"";
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, $context["childPages"], "href", [], "any", false, false, true, 82), 82, $this->source), "html", null, true);
echo "\" target=\"";
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, $context["childPages"], "getTarget", [], "method", false, false, true, 82), 82, $this->source), "html", null, true);
echo "\">";
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, $context["childPages"], "label", [], "any", false, false, true, 82), 82, $this->source), "html", null, true);
echo "</a></li>
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['childPages'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 84
echo " </ul>
";
}
// line 86
echo " </li>
";
}
// line 88
echo " ";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['child'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 89
echo " </ul>
";
}
// line 91
echo " </li>
";
}
// line 93
echo " ";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['key'], $context['page'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 94
echo " </ul>
<div class=\"mobile-menu-bottom\">
<ul class=\"mobile-menu-bottom--buttons\">
";
// line 98
if ($this->extensions['Pimcore\Twig\Extension\WebsiteConfigExtension']->getWebsiteConfig("anfragen")) {
// line 99
echo " <li><a href=\"";
echo twig_escape_filter($this->env, $this->extensions['Pimcore\Twig\Extension\WebsiteConfigExtension']->getWebsiteConfig("anfragen"), "html", null, true);
echo "\" class=\"btn btn--flat btn--outline-negative\">";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("mobileNav.Anfragen"), "html", null, true);
echo "</a></li>
";
}
// line 101
echo " ";
if ($this->extensions['Pimcore\Twig\Extension\WebsiteConfigExtension']->getWebsiteConfig("buchen")) {
// line 102
echo " <li><a href=\"";
echo twig_escape_filter($this->env, $this->extensions['Pimcore\Twig\Extension\WebsiteConfigExtension']->getWebsiteConfig("buchen"), "html", null, true);
echo "\" class=\"btn btn--flat btn--outline-negative--variant\">";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("mobileNav.Buchen"), "html", null, true);
echo "</a></li>
";
}
// line 104
echo " </ul>
<ul class=\"page-header--social\">
";
// line 106
echo twig_include($this->env, $context, "includes/layout/header/social-media-icons.html.twig");
echo "
</ul>
</div>
</div>
</nav>
<label class=\"main-nav--overlay\" for=\"main-nav--toggle\"></label>";
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
}
public function getTemplateName()
{
return "includes/layout/header/mainnav/mainnav.html.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
return array ( 334 => 106, 330 => 104, 322 => 102, 319 => 101, 311 => 99, 309 => 98, 303 => 94, 297 => 93, 293 => 91, 289 => 89, 283 => 88, 279 => 86, 275 => 84, 262 => 82, 258 => 81, 255 => 80, 253 => 79, 245 => 78, 238 => 77, 235 => 76, 231 => 75, 225 => 73, 223 => 72, 218 => 70, 209 => 69, 203 => 67, 201 => 66, 194 => 65, 191 => 64, 188 => 63, 185 => 62, 182 => 61, 179 => 60, 176 => 59, 173 => 58, 170 => 57, 167 => 56, 164 => 55, 161 => 54, 157 => 53, 154 => 52, 151 => 51, 148 => 50, 145 => 49, 142 => 48, 139 => 47, 137 => 46, 133 => 44, 126 => 40, 121 => 38, 118 => 37, 115 => 36, 108 => 32, 103 => 30, 100 => 29, 98 => 28, 89 => 21, 83 => 20, 75 => 18, 72 => 17, 68 => 16, 61 => 12, 56 => 10, 45 => 1,);
}
public function getSourceContext()
{
return new Source("<input type=\"checkbox\" id=\"main-nav--toggle\" class=\"main-nav--toggle\" />
<div class=\"main-nav--top\">
<label for=\"main-nav--toggle\" class=\"main-nav--burger\">
<span></span>
</label>
<div class=\"mobile-menu-top\">
<div class=\"mobile-menu--contact\">
<a href=\"tel:{{ pimcore_website_config('phone')|replace({' ': ''}) }}\">
<i class=\"iconfont-phone\"></i>
<span>{{ pimcore_website_config('phone') }}</span>
</a>
</div>
<div class=\"mobile-menu--language\">
{% for key, lang in get_localized_links(document) %}
{% if app.request.locale != key %}
<a href=\"{{ lang.link }}\">{{ key|upper }}</a>
{% endif %}
{% endfor %}
</div>
</div>
</div>
<nav class=\"main-nav\" role=\"navigation\">
<div class=\"scroll-wrapper\">
<ul class=\"contact--first-level\">
{% if pimcore_website_config('phone') %}
<li>
<a href=\"tel:{{ pimcore_website_config('phone')|replace({' ': ''}) }}\">
<i class=\"iconfont-phone\"></i>
<span>{{ pimcore_website_config('phone') }}</span>
</a>
</li>
{% endif %}
{% if pimcore_website_config('email') %}
<li class=\"mobile-hidden\">
<a href=\"mailto:{{ pimcore_website_config('email') }}\">
<i class=\"iconfont-envelope\"></i>
<span>{{ pimcore_website_config('email') }}</span>
</a>
</li>
{% endif %}
</ul>
{% if not document is defined or not document %}
{% set document = pimcore_document(1) %}
{% endif %}
{% set mainNavStartNode = document.getProperty('mainnavStartNode') %}
{% set mainNav = conecto_build_nav(document, mainNavStartNode) %}
{% set renderer = pimcore_nav_renderer('menu') %}
<ul class=\"main-nav--first-level\">
{% for key, page in mainNav %}
{% if page.isVisible() and renderer.accept(page) %}
{% set activeClass = '' %}
{% set hiddenClass = '' %}
{% set buttonClass = '' %}
{% if page.getActive(true) %}
{% set activeClass = 'main-nav--active' %}
{% endif %}
{% if page.getCustomSetting('menuAsButton') %}
{% set hiddenClass = 'desktop-down-hidden' %}
{% set buttonClass = 'btn btn--flat btn--outline-negative' %}
{% endif %}
<li class=\"{{ activeClass }} {{ hiddenClass }}\">
{% if page.hasVisiblePages %}
<input type=\"checkbox\" id=\"plusminus-{{ key }}\" class=\"dropdown\">
{% endif %}
<a class=\"{{ buttonClass }}\" href=\"{{ page.href }}\" target=\"{{ page.getTarget() }}\">
{{ page.label }}
</a>
{% if page.hasVisiblePages %}
<label for=\"plusminus-{{ key }}\" class=\"next\"><span class=\"next--arrow\"></span></label>
<ul class=\"main-nav--sub\" aria=\"submenu\">
{% for child in page.pages %}
{% if child.isVisible() and renderer.accept(child) %}
<li {% if child.getActive(true) %} class=\"main-nav--sub-active\"{% endif %}>
<a href=\"{{ child.href }}\" target=\"{{ child.getTarget() }}\">{{ child.label }}</a>
{% if child.hasPages %}
<ul class=\"main-nav--third-level\">
{% for childPages in child.pages %}
<li><i class=\"iconfont-arrow-right\"></i><a href=\"{{ childPages.href }}\" target=\"{{ childPages.getTarget() }}\">{{ childPages.label }}</a></li>
{% endfor %}
</ul>
{% endif %}
</li>
{% endif %}
{% endfor %}
</ul>
{% endif %}
</li>
{% endif %}
{% endfor %}
</ul>
<div class=\"mobile-menu-bottom\">
<ul class=\"mobile-menu-bottom--buttons\">
{% if pimcore_website_config('anfragen') %}
<li><a href=\"{{ pimcore_website_config('anfragen') }}\" class=\"btn btn--flat btn--outline-negative\">{{ 'mobileNav.Anfragen'|trans }}</a></li>
{% endif %}
{% if pimcore_website_config('buchen') %}
<li><a href=\"{{ pimcore_website_config('buchen') }}\" class=\"btn btn--flat btn--outline-negative--variant\">{{ 'mobileNav.Buchen'|trans }}</a></li>
{% endif %}
</ul>
<ul class=\"page-header--social\">
{{ include('includes/layout/header/social-media-icons.html.twig') }}
</ul>
</div>
</div>
</nav>
<label class=\"main-nav--overlay\" for=\"main-nav--toggle\"></label>", "includes/layout/header/mainnav/mainnav.html.twig", "/html/pimcore/templates/includes/layout/header/mainnav/mainnav.html.twig");
}
public function checkSecurity()
{
static $tags = array("for" => 16, "if" => 17, "set" => 47);
static $filters = array("escape" => 10, "replace" => 10, "upper" => 18, "trans" => 99);
static $functions = array("pimcore_website_config" => 10, "get_localized_links" => 16, "pimcore_document" => 47, "conecto_build_nav" => 50, "pimcore_nav_renderer" => 51, "include" => 106);
try {
$this->sandbox->checkSecurity(
['for', 'if', 'set'],
['escape', 'replace', 'upper', 'trans'],
['pimcore_website_config', 'get_localized_links', 'pimcore_document', 'conecto_build_nav', 'pimcore_nav_renderer', 'include']
);
} 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;
}
}
}