<?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;
/* contact/default.html.twig */
class __TwigTemplate_ab520674c05888eb76b454a2be142266 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(), "contact/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", "contact/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", "contact/default.html.twig"));
// line 3
if (( !(isset($context["editmode"]) || array_key_exists("editmode", $context) ? $context["editmode"] : (function () { throw new RuntimeError('Variable "editmode" does not exist.', 3, $this->source); })()) && array_key_exists("recaptcha", $context))) {
// line 4
if (((isset($context["recaptcha"]) || array_key_exists("recaptcha", $context) ? $context["recaptcha"] : (function () { throw new RuntimeError('Variable "recaptcha" does not exist.', 4, $this->source); })()) == 2)) {
// line 5
twig_get_attribute($this->env, $this->source, $this->env->getFunction('pimcore_head_script')->getCallable()(), "appendFile", [0 => "https://www.google.com/recaptcha/api.js"], "method", false, false, true, 5);
} elseif (( // line 6
(isset($context["recaptcha"]) || array_key_exists("recaptcha", $context) ? $context["recaptcha"] : (function () { throw new RuntimeError('Variable "recaptcha" does not exist.', 6, $this->source); })()) == 3)) {
// line 7
twig_get_attribute($this->env, $this->source, $this->env->getFunction('pimcore_head_script')->getCallable()(), "appendFile", [0 => ("https://www.google.com/recaptcha/api.js?render=" . (isset($context["recaptchaPublic"]) || array_key_exists("recaptchaPublic", $context) ? $context["recaptchaPublic"] : (function () { throw new RuntimeError('Variable "recaptchaPublic" does not exist.', 7, $this->source); })()))], "method", false, false, true, 7);
}
}
// line 1
$this->getParent($context)->display($context, array_merge($this->blocks, $blocks));
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
}
// line 11
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 12
echo " <div class=\"container mb-5\">
";
// line 14
echo twig_include($this->env, $context, "includes/title.html.twig");
echo "
";
// line 17
echo " ";
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable(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); })()), "flashes", [0 => [0 => "success", 1 => "warning"]], "method", false, false, true, 17));
foreach ($context['_seq'] as $context["label"] => $context["messages"]) {
// line 18
echo " ";
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable($context["messages"]);
foreach ($context['_seq'] as $context["_key"] => $context["message"]) {
// line 19
echo " <div id=\"messages\" class=\"flash-";
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed($context["label"], 19, $this->source), "html", null, true);
echo "\">
";
// line 20
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed($context["message"], 20, $this->source), "html", null, true);
echo "
</div>
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['message'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 23
echo " ";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['label'], $context['messages'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 24
echo "
<section id=\"contactcontainer\">
";
// line 26
if ( !(isset($context["success"]) || array_key_exists("success", $context) ? $context["success"] : (function () { throw new RuntimeError('Variable "success" does not exist.', 26, $this->source); })())) {
// line 27
echo "
";
// line 28
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->renderBlock($this->sandbox->ensureToStringAllowed((isset($context["form"]) || array_key_exists("form", $context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.', 28, $this->source); })()), 28, $this->source), 'form_start');
echo "
<div class=\"row mb-3\">
<div class=\"col-6\">
<div class=\"form-floating\">
";
// line 33
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, (isset($context["form"]) || array_key_exists("form", $context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.', 33, $this->source); })()), "firstname", [], "any", false, false, true, 33), 33, $this->source), 'widget', ["attr" => ["class" => "form-control", "placeholder" => twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["form"]) || array_key_exists("form", $context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.', 33, $this->source); })()), "firstname", [], "any", false, false, true, 33), "vars", [], "any", false, false, true, 33), "label", [], "any", false, false, true, 33)]]);
echo "
";
// line 34
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, (isset($context["form"]) || array_key_exists("form", $context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.', 34, $this->source); })()), "firstname", [], "any", false, false, true, 34), 34, $this->source), 'label', ["label_attr" => ["class" => "form-label"]]);
echo "</div>
<div id=\"firstnameHelp\" class=\"form-text\">";
// line 36
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, (isset($context["form"]) || array_key_exists("form", $context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.', 36, $this->source); })()), "firstname", [], "any", false, false, true, 36), 36, $this->source), 'help');
echo "</div>
<div class=\"form-error\">
";
// line 39
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, (isset($context["form"]) || array_key_exists("form", $context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.', 39, $this->source); })()), "firstname", [], "any", false, false, true, 39), 39, $this->source), 'errors');
echo "
</div>
</div>
<div class=\"col-6\">
<div class=\"form-floating\">
";
// line 45
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, (isset($context["form"]) || array_key_exists("form", $context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.', 45, $this->source); })()), "lastname", [], "any", false, false, true, 45), 45, $this->source), 'widget', ["attr" => ["class" => "form-control", "placeholder" => twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["form"]) || array_key_exists("form", $context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.', 45, $this->source); })()), "lastname", [], "any", false, false, true, 45), "vars", [], "any", false, false, true, 45), "label", [], "any", false, false, true, 45)]]);
echo "
";
// line 46
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, (isset($context["form"]) || array_key_exists("form", $context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.', 46, $this->source); })()), "lastname", [], "any", false, false, true, 46), 46, $this->source), 'label', ["label_attr" => ["class" => "form-label"]]);
echo "</div>
<div id=\"lastnameHelp\" class=\"form-text\">";
// line 48
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, (isset($context["form"]) || array_key_exists("form", $context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.', 48, $this->source); })()), "lastname", [], "any", false, false, true, 48), 48, $this->source), 'help');
echo "</div>
<div class=\"form-error\">
";
// line 51
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, (isset($context["form"]) || array_key_exists("form", $context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.', 51, $this->source); })()), "lastname", [], "any", false, false, true, 51), 51, $this->source), 'errors');
echo "
</div>
</div>
</div>
<div class=\"row mb-3\">
<div class=\"col-8 col-lg-6\">
<div class=\"form-floating\">
";
// line 60
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, (isset($context["form"]) || array_key_exists("form", $context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.', 60, $this->source); })()), "street", [], "any", false, false, true, 60), 60, $this->source), 'widget', ["attr" => ["class" => "form-control", "placeholder" => twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["form"]) || array_key_exists("form", $context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.', 60, $this->source); })()), "street", [], "any", false, false, true, 60), "vars", [], "any", false, false, true, 60), "label", [], "any", false, false, true, 60)]]);
echo "
";
// line 61
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, (isset($context["form"]) || array_key_exists("form", $context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.', 61, $this->source); })()), "street", [], "any", false, false, true, 61), 61, $this->source), 'label', ["label_attr" => ["class" => "form-label"]]);
echo "</div>
<div id=\"streetHelp\" class=\"form-text\">";
// line 63
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, (isset($context["form"]) || array_key_exists("form", $context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.', 63, $this->source); })()), "street", [], "any", false, false, true, 63), 63, $this->source), 'help');
echo "</div>
<div class=\"form-error\">
";
// line 66
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, (isset($context["form"]) || array_key_exists("form", $context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.', 66, $this->source); })()), "street", [], "any", false, false, true, 66), 66, $this->source), 'errors');
echo "
</div>
</div>
<div class=\"col-4 col-lg-6\">
<div class=\"form-floating\">
";
// line 72
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, (isset($context["form"]) || array_key_exists("form", $context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.', 72, $this->source); })()), "streetnr", [], "any", false, false, true, 72), 72, $this->source), 'widget', ["attr" => ["class" => "form-control", "placeholder" => twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["form"]) || array_key_exists("form", $context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.', 72, $this->source); })()), "streetnr", [], "any", false, false, true, 72), "vars", [], "any", false, false, true, 72), "label", [], "any", false, false, true, 72)]]);
echo "
";
// line 73
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, (isset($context["form"]) || array_key_exists("form", $context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.', 73, $this->source); })()), "streetnr", [], "any", false, false, true, 73), 73, $this->source), 'label', ["label_attr" => ["class" => "form-label"]]);
echo "</div>
<div id=\"streetnrHelp\" class=\"form-text\">";
// line 75
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, (isset($context["form"]) || array_key_exists("form", $context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.', 75, $this->source); })()), "streetnr", [], "any", false, false, true, 75), 75, $this->source), 'help');
echo "</div>
<div class=\"form-error\">
";
// line 78
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, (isset($context["form"]) || array_key_exists("form", $context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.', 78, $this->source); })()), "streetnr", [], "any", false, false, true, 78), 78, $this->source), 'errors');
echo "
</div>
</div>
</div>
<div class=\"row mb-3\">
<div class=\"col-6\">
<div class=\"form-floating\">
";
// line 87
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, (isset($context["form"]) || array_key_exists("form", $context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.', 87, $this->source); })()), "postcode", [], "any", false, false, true, 87), 87, $this->source), 'widget', ["attr" => ["class" => "form-control", "placeholder" => twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["form"]) || array_key_exists("form", $context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.', 87, $this->source); })()), "postcode", [], "any", false, false, true, 87), "vars", [], "any", false, false, true, 87), "label", [], "any", false, false, true, 87)]]);
echo "
";
// line 88
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, (isset($context["form"]) || array_key_exists("form", $context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.', 88, $this->source); })()), "postcode", [], "any", false, false, true, 88), 88, $this->source), 'label', ["label_attr" => ["class" => "form-label"]]);
echo "</div>
<div id=\"postcodeHelp\" class=\"form-text\">";
// line 90
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, (isset($context["form"]) || array_key_exists("form", $context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.', 90, $this->source); })()), "postcode", [], "any", false, false, true, 90), 90, $this->source), 'help');
echo "</div>
<div class=\"form-error\">
";
// line 93
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, (isset($context["form"]) || array_key_exists("form", $context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.', 93, $this->source); })()), "postcode", [], "any", false, false, true, 93), 93, $this->source), 'errors');
echo "
</div>
</div>
<div class=\"col-6\">
<div class=\"form-floating\">
";
// line 99
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, (isset($context["form"]) || array_key_exists("form", $context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.', 99, $this->source); })()), "city", [], "any", false, false, true, 99), 99, $this->source), 'widget', ["attr" => ["class" => "form-control", "placeholder" => twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["form"]) || array_key_exists("form", $context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.', 99, $this->source); })()), "city", [], "any", false, false, true, 99), "vars", [], "any", false, false, true, 99), "label", [], "any", false, false, true, 99)]]);
echo "
";
// line 100
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, (isset($context["form"]) || array_key_exists("form", $context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.', 100, $this->source); })()), "city", [], "any", false, false, true, 100), 100, $this->source), 'label', ["label_attr" => ["class" => "form-label"]]);
echo "</div>
<div id=\"cityeHelp\" class=\"form-text\">";
// line 102
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, (isset($context["form"]) || array_key_exists("form", $context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.', 102, $this->source); })()), "city", [], "any", false, false, true, 102), 102, $this->source), 'help');
echo "</div>
<div class=\"form-error\">
";
// line 105
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, (isset($context["form"]) || array_key_exists("form", $context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.', 105, $this->source); })()), "city", [], "any", false, false, true, 105), 105, $this->source), 'errors');
echo "
</div>
</div>
</div>
<div class=\"row mb-3\">
<div class=\"col-12\">
<div class=\"form-floating\">
";
// line 114
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, (isset($context["form"]) || array_key_exists("form", $context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.', 114, $this->source); })()), "phone", [], "any", false, false, true, 114), 114, $this->source), 'widget', ["attr" => ["class" => "form-control", "placeholder" => twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["form"]) || array_key_exists("form", $context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.', 114, $this->source); })()), "phone", [], "any", false, false, true, 114), "vars", [], "any", false, false, true, 114), "label", [], "any", false, false, true, 114)]]);
echo "
";
// line 115
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, (isset($context["form"]) || array_key_exists("form", $context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.', 115, $this->source); })()), "phone", [], "any", false, false, true, 115), 115, $this->source), 'label', ["label_attr" => ["class" => "form-label"]]);
echo "</div>
<div id=\"phoneeHelp\" class=\"form-text\">";
// line 117
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, (isset($context["form"]) || array_key_exists("form", $context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.', 117, $this->source); })()), "phone", [], "any", false, false, true, 117), 117, $this->source), 'help');
echo "</div>
<div class=\"form-error\">
";
// line 120
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, (isset($context["form"]) || array_key_exists("form", $context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.', 120, $this->source); })()), "phone", [], "any", false, false, true, 120), 120, $this->source), 'errors');
echo "
</div>
</div>
</div>
<div class=\"row mb-3\">
<div class=\"col-12\">
<div class=\"form-floating\">
";
// line 129
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, (isset($context["form"]) || array_key_exists("form", $context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.', 129, $this->source); })()), "email", [], "any", false, false, true, 129), 129, $this->source), 'widget', ["attr" => ["class" => "form-control", "placeholder" => twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["form"]) || array_key_exists("form", $context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.', 129, $this->source); })()), "email", [], "any", false, false, true, 129), "vars", [], "any", false, false, true, 129), "label", [], "any", false, false, true, 129)]]);
echo "
";
// line 130
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, (isset($context["form"]) || array_key_exists("form", $context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.', 130, $this->source); })()), "email", [], "any", false, false, true, 130), 130, $this->source), 'label', ["label_attr" => ["class" => "form-label"]]);
echo "</div>
<div id=\"emailHelp\" class=\"form-text\">";
// line 132
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, (isset($context["form"]) || array_key_exists("form", $context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.', 132, $this->source); })()), "email", [], "any", false, false, true, 132), 132, $this->source), 'help');
echo "</div>
<div class=\"form-error\">
";
// line 135
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, (isset($context["form"]) || array_key_exists("form", $context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.', 135, $this->source); })()), "email", [], "any", false, false, true, 135), 135, $this->source), 'errors');
echo "
</div>
</div>
</div>
<div class=\"col-12 mb-3\">
";
// line 143
echo " <div class=\"form-floating\">
";
// line 145
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, (isset($context["form"]) || array_key_exists("form", $context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.', 145, $this->source); })()), "message", [], "any", false, false, true, 145), 145, $this->source), 'widget', ["attr" => ["class" => "form-control"]]);
echo "
";
// line 146
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, (isset($context["form"]) || array_key_exists("form", $context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.', 146, $this->source); })()), "message", [], "any", false, false, true, 146), 146, $this->source), 'label', ["label_attr" => ["class" => "form-label"]]);
echo "</div>
<div id=\"countryHelp\" class=\"form-text\">";
// line 148
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, (isset($context["form"]) || array_key_exists("form", $context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.', 148, $this->source); })()), "message", [], "any", false, false, true, 148), 148, $this->source), 'help');
echo "</div>
<div class=\"form-error\">
";
// line 151
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, (isset($context["form"]) || array_key_exists("form", $context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.', 151, $this->source); })()), "message", [], "any", false, false, true, 151), 151, $this->source), 'errors');
echo "
</div>
</div>
";
// line 155
if (( !(isset($context["editmode"]) || array_key_exists("editmode", $context) ? $context["editmode"] : (function () { throw new RuntimeError('Variable "editmode" does not exist.', 155, $this->source); })()) && array_key_exists("recaptcha", $context))) {
// line 156
echo " ";
if (((isset($context["recaptcha"]) || array_key_exists("recaptcha", $context) ? $context["recaptcha"] : (function () { throw new RuntimeError('Variable "recaptcha" does not exist.', 156, $this->source); })()) == 2)) {
// line 157
echo " <div class=\"form-group\">
<div class=\"g-recaptcha\" data-sitekey=\"";
// line 158
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed((isset($context["recaptchaPublic"]) || array_key_exists("recaptchaPublic", $context) ? $context["recaptchaPublic"] : (function () { throw new RuntimeError('Variable "recaptchaPublic" does not exist.', 158, $this->source); })()), 158, $this->source), "html", null, true);
echo "\"></div>
</div>
";
} elseif (( // line 160
(isset($context["recaptcha"]) || array_key_exists("recaptcha", $context) ? $context["recaptcha"] : (function () { throw new RuntimeError('Variable "recaptcha" does not exist.', 160, $this->source); })()) == 3)) {
// line 161
echo " <input type=\"hidden\" name=\"gtoken\" id=\"gtoken\">
";
}
// line 163
echo " ";
}
// line 164
echo "
";
// line 166
echo " <div class=\"col-12 form-check mb-3\">
";
// line 167
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, (isset($context["form"]) || array_key_exists("form", $context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.', 167, $this->source); })()), "conditions", [], "any", false, false, true, 167), 167, $this->source), 'widget', ["attr" => ["class" => "form-check-input"]]);
echo "
";
// line 168
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, (isset($context["form"]) || array_key_exists("form", $context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.', 168, $this->source); })()), "conditions", [], "any", false, false, true, 168), 168, $this->source), 'label', ["label_attr" => ["class" => "form-check-label"]]);
echo "
<a href=\"";
// line 170
if ($this->extensions['App\Twig\Extension\CheckwebsiteSettingExtension']->getCheckWebsitesetting("privacy_document", "document")) {
echo twig_escape_filter($this->env, $this->extensions['MultilingualBundle\Twig\Extension\InotherlangExtension']->getInotherlang("LocalizedDocument", $this->extensions['Pimcore\Twig\Extension\WebsiteConfigExtension']->getWebsiteConfig("privacy_document")), "html", null, true);
}
echo "\" target=\"_blank\">
";
// line 171
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Ik ga akkoord met privacy"), "html", null, true);
echo "
</a>
<div id=\"conditionsHelp\" class=\"form-text\">";
// line 174
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, (isset($context["form"]) || array_key_exists("form", $context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.', 174, $this->source); })()), "conditions", [], "any", false, false, true, 174), 174, $this->source), 'help');
echo "</div>
<div class=\"form-error\">
";
// line 177
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, (isset($context["form"]) || array_key_exists("form", $context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.', 177, $this->source); })()), "conditions", [], "any", false, false, true, 177), 177, $this->source), 'errors');
echo "
</div>
</div>
<div class=\"col-12 text-center\">
";
// line 182
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, (isset($context["form"]) || array_key_exists("form", $context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.', 182, $this->source); })()), "submit", [], "any", false, false, true, 182), 182, $this->source), 'row', ["attr" => ["class" => "btn btn-primary btn-lg"]]);
echo "</div>
";
// line 184
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->renderBlock($this->sandbox->ensureToStringAllowed((isset($context["form"]) || array_key_exists("form", $context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.', 184, $this->source); })()), 184, $this->source), 'form_end');
echo "
";
}
// line 187
echo " </section>
</div>
";
// line 190
if (twig_get_attribute($this->env, $this->source, ($context["document"] ?? null), "property", [0 => "googlemaps"], "method", true, true, true, 190)) {
// line 191
echo " <div class=\"container-fluid p-0 mb-n5\">
<div class=\"row\">
<div class=\"col-12\">
<div class=\"embed-container maps mapgrey\">
<iframe src=\"";
// line 195
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed(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.', 195, $this->source); })()), "property", [0 => "googlemaps"], "method", false, false, true, 195), 195, $this->source), "html", null, true);
echo "\" width=\"100%\" height=\"450\" frameborder=\"0\" style=\"border:0\" allowfullscreen></iframe>
</div>
</div>
</div>
</div>
";
}
// line 201
echo "
";
// line 202
if ((( !(isset($context["editmode"]) || array_key_exists("editmode", $context) ? $context["editmode"] : (function () { throw new RuntimeError('Variable "editmode" does not exist.', 202, $this->source); })()) && ((isset($context["recaptcha"]) || array_key_exists("recaptcha", $context) ? $context["recaptcha"] : (function () { throw new RuntimeError('Variable "recaptcha" does not exist.', 202, $this->source); })()) == 3)) && (twig_test_empty(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.', 202, $this->source); })()), "flashes", [0 => [0 => "success"]], "method", false, false, true, 202), "success", [], "any", false, false, true, 202)) || twig_test_empty(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.', 202, $this->source); })()), "flashes", [0 => [0 => "warning"]], "method", false, false, true, 202), "warning", [], "any", false, false, true, 202))))) {
// line 203
echo " <script>
function getReCaptcha(){
grecaptcha.ready(function () {
grecaptcha.execute('";
// line 206
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed((isset($context["recaptchaPublic"]) || array_key_exists("recaptchaPublic", $context) ? $context["recaptchaPublic"] : (function () { throw new RuntimeError('Variable "recaptchaPublic" does not exist.', 206, $this->source); })()), 206, $this->source), "html", null, true);
echo "', { action: 'contact' }).then(function (token) {
var recaptchaResponse = document.getElementById('gtoken');
recaptchaResponse.value = token;
});
});
}
getReCaptcha(); // This is the initial call
setInterval(function(){getReCaptcha();}, 60000);
</script>
";
}
// line 216
echo "
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
public function getTemplateName()
{
return "contact/default.html.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
return array ( 488 => 216, 475 => 206, 470 => 203, 468 => 202, 465 => 201, 456 => 195, 450 => 191, 448 => 190, 443 => 187, 437 => 184, 432 => 182, 424 => 177, 418 => 174, 412 => 171, 406 => 170, 401 => 168, 397 => 167, 394 => 166, 391 => 164, 388 => 163, 384 => 161, 382 => 160, 377 => 158, 374 => 157, 371 => 156, 369 => 155, 362 => 151, 356 => 148, 351 => 146, 347 => 145, 343 => 143, 333 => 135, 327 => 132, 322 => 130, 318 => 129, 306 => 120, 300 => 117, 295 => 115, 291 => 114, 279 => 105, 273 => 102, 268 => 100, 264 => 99, 255 => 93, 249 => 90, 244 => 88, 240 => 87, 228 => 78, 222 => 75, 217 => 73, 213 => 72, 204 => 66, 198 => 63, 193 => 61, 189 => 60, 177 => 51, 171 => 48, 166 => 46, 162 => 45, 153 => 39, 147 => 36, 142 => 34, 138 => 33, 130 => 28, 127 => 27, 125 => 26, 121 => 24, 115 => 23, 106 => 20, 101 => 19, 96 => 18, 91 => 17, 86 => 14, 82 => 12, 72 => 11, 62 => 1, 58 => 7, 56 => 6, 54 => 5, 52 => 4, 50 => 3, 37 => 1,);
}
public function getSourceContext()
{
return new Source("{% extends base_layout() %}
{% if not editmode and recaptcha is defined %}
{% if recaptcha == 2 %}
{% do pimcore_head_script().appendFile('https://www.google.com/recaptcha/api.js') %}
{% elseif recaptcha == 3 %}
{% do pimcore_head_script().appendFile('https://www.google.com/recaptcha/api.js?render=' ~ recaptchaPublic) %}
{% endif %}
{% endif %}
{% block content %}
<div class=\"container mb-5\">
{{ include('includes/title.html.twig') }}
{# read and display several types of flash messages #}
{% for label, messages in app.flashes(['success', 'warning']) %}
{% for message in messages %}
<div id=\"messages\" class=\"flash-{{ label }}\">
{{ message }}
</div>
{% endfor %}
{% endfor %}
<section id=\"contactcontainer\">
{% if not success %}
{{ form_start(form) }}
<div class=\"row mb-3\">
<div class=\"col-6\">
<div class=\"form-floating\">
{{ form_widget(form.firstname, {'attr': {'class': 'form-control', 'placeholder': form.firstname.vars.label}}) }}
{{ form_label(form.firstname, null, {'label_attr': {'class': 'form-label'}}) }}</div>
<div id=\"firstnameHelp\" class=\"form-text\">{{ form_help(form.firstname) }}</div>
<div class=\"form-error\">
{{ form_errors(form.firstname) }}
</div>
</div>
<div class=\"col-6\">
<div class=\"form-floating\">
{{ form_widget(form.lastname, {'attr': {'class': 'form-control', 'placeholder': form.lastname.vars.label }}) }}
{{ form_label(form.lastname, null, {'label_attr': {'class': 'form-label'}}) }}</div>
<div id=\"lastnameHelp\" class=\"form-text\">{{ form_help(form.lastname) }}</div>
<div class=\"form-error\">
{{ form_errors(form.lastname) }}
</div>
</div>
</div>
<div class=\"row mb-3\">
<div class=\"col-8 col-lg-6\">
<div class=\"form-floating\">
{{ form_widget(form.street, {'attr': {'class': 'form-control', 'placeholder': form.street.vars.label}}) }}
{{ form_label(form.street, null, {'label_attr': {'class': 'form-label'}}) }}</div>
<div id=\"streetHelp\" class=\"form-text\">{{ form_help(form.street) }}</div>
<div class=\"form-error\">
{{ form_errors(form.street) }}
</div>
</div>
<div class=\"col-4 col-lg-6\">
<div class=\"form-floating\">
{{ form_widget(form.streetnr, {'attr': {'class': 'form-control', 'placeholder': form.streetnr.vars.label }}) }}
{{ form_label(form.streetnr, null, {'label_attr': {'class': 'form-label'}}) }}</div>
<div id=\"streetnrHelp\" class=\"form-text\">{{ form_help(form.streetnr) }}</div>
<div class=\"form-error\">
{{ form_errors(form.streetnr) }}
</div>
</div>
</div>
<div class=\"row mb-3\">
<div class=\"col-6\">
<div class=\"form-floating\">
{{ form_widget(form.postcode, {'attr': {'class': 'form-control', 'placeholder': form.postcode.vars.label}}) }}
{{ form_label(form.postcode, null, {'label_attr': {'class': 'form-label'}}) }}</div>
<div id=\"postcodeHelp\" class=\"form-text\">{{ form_help(form.postcode) }}</div>
<div class=\"form-error\">
{{ form_errors(form.postcode) }}
</div>
</div>
<div class=\"col-6\">
<div class=\"form-floating\">
{{ form_widget(form.city, {'attr': {'class': 'form-control', 'placeholder': form.city.vars.label }}) }}
{{ form_label(form.city, null, {'label_attr': {'class': 'form-label'}}) }}</div>
<div id=\"cityeHelp\" class=\"form-text\">{{ form_help(form.city) }}</div>
<div class=\"form-error\">
{{ form_errors(form.city) }}
</div>
</div>
</div>
<div class=\"row mb-3\">
<div class=\"col-12\">
<div class=\"form-floating\">
{{ form_widget(form.phone, {'attr': {'class': 'form-control', 'placeholder': form.phone.vars.label}}) }}
{{ form_label(form.phone, null, {'label_attr': {'class': 'form-label'}}) }}</div>
<div id=\"phoneeHelp\" class=\"form-text\">{{ form_help(form.phone) }}</div>
<div class=\"form-error\">
{{ form_errors(form.phone) }}
</div>
</div>
</div>
<div class=\"row mb-3\">
<div class=\"col-12\">
<div class=\"form-floating\">
{{ form_widget(form.email, {'attr': {'class': 'form-control', 'placeholder': form.email.vars.label}}) }}
{{ form_label(form.email, null, {'label_attr': {'class': 'form-label'}}) }}</div>
<div id=\"emailHelp\" class=\"form-text\">{{ form_help(form.email) }}</div>
<div class=\"form-error\">
{{ form_errors(form.email) }}
</div>
</div>
</div>
<div class=\"col-12 mb-3\">
{# {{ form_row(form.message) }}#}
<div class=\"form-floating\">
{{ form_widget(form.message, {'attr': {'class': 'form-control'}}) }}
{{ form_label(form.message, null, {'label_attr': {'class': 'form-label'}}) }}</div>
<div id=\"countryHelp\" class=\"form-text\">{{ form_help(form.message) }}</div>
<div class=\"form-error\">
{{ form_errors(form.message) }}
</div>
</div>
{% if not editmode and recaptcha is defined %}
{% if recaptcha == 2 %}
<div class=\"form-group\">
<div class=\"g-recaptcha\" data-sitekey=\"{{ recaptchaPublic }}\"></div>
</div>
{% elseif recaptcha == 3 %}
<input type=\"hidden\" name=\"gtoken\" id=\"gtoken\">
{% endif %}
{% endif %}
{# {{ form_row(form.conditions) }}#}
<div class=\"col-12 form-check mb-3\">
{{ form_widget(form.conditions, {'attr': {'class': 'form-check-input'}}) }}
{{ form_label(form.conditions, null, {'label_attr': {'class': 'form-check-label'}}) }}
<a href=\"{% if check_websitesetting('privacy_document', 'document') %}{{ inotherlang('LocalizedDocument', pimcore_website_config('privacy_document')) }}{% endif %}\" target=\"_blank\">
{{ 'Ik ga akkoord met privacy'|trans }}
</a>
<div id=\"conditionsHelp\" class=\"form-text\">{{ form_help(form.conditions) }}</div>
<div class=\"form-error\">
{{ form_errors(form.conditions) }}
</div>
</div>
<div class=\"col-12 text-center\">
{{ form_row(form.submit, {'attr': {'class': 'btn btn-primary btn-lg'}}) }}</div>
{{ form_end(form) }}
{% endif %}
</section>
</div>
{% if document.property('googlemaps') is defined %}
<div class=\"container-fluid p-0 mb-n5\">
<div class=\"row\">
<div class=\"col-12\">
<div class=\"embed-container maps mapgrey\">
<iframe src=\"{{ document.property('googlemaps') }}\" width=\"100%\" height=\"450\" frameborder=\"0\" style=\"border:0\" allowfullscreen></iframe>
</div>
</div>
</div>
</div>
{% endif %}
{% if not editmode and recaptcha == 3 and (app.flashes(['success']).success is empty or app.flashes(['warning']).warning is empty) %}
<script>
function getReCaptcha(){
grecaptcha.ready(function () {
grecaptcha.execute('{{ recaptchaPublic }}', { action: 'contact' }).then(function (token) {
var recaptchaResponse = document.getElementById('gtoken');
recaptchaResponse.value = token;
});
});
}
getReCaptcha(); // This is the initial call
setInterval(function(){getReCaptcha();}, 60000);
</script>
{% endif %}
{% endblock %}
{# read and display just one flash message type #}
{#{% for message in app.flashes('notice') %}#}
{# <div class=\"flash-notice\">#}
{# {{ message }}#}
{# </div>#}
{#{% endfor %}#}
{# read and display all flash messages #}
{#{% for label, messages in app.flashes %}#}
{# {% for message in messages %}#}
{# <div class=\"flash-{{ label }}\">#}
{# {{ message }}#}
{# </div>#}
{# {% endfor %}#}
{#{% endfor %}#}", "contact/default.html.twig", "/var/www/clients/client2/web42/web/pc/templates/contact/default.html.twig");
}
public function checkSecurity()
{
static $tags = array("if" => 3, "do" => 5, "for" => 17);
static $filters = array("escape" => 19, "trans" => 171);
static $functions = array("pimcore_head_script" => 5, "include" => 14, "form_start" => 28, "form_widget" => 33, "form_label" => 34, "form_help" => 36, "form_errors" => 39, "check_websitesetting" => 170, "inotherlang" => 170, "pimcore_website_config" => 170, "form_row" => 182, "form_end" => 184, "base_layout" => 1);
try {
$this->sandbox->checkSecurity(
['if', 'do', 'for'],
['escape', 'trans'],
['pimcore_head_script', 'include', 'form_start', 'form_widget', 'form_label', 'form_help', 'form_errors', 'check_websitesetting', 'inotherlang', 'pimcore_website_config', 'form_row', 'form_end', '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;
}
}
}