var/cache/dev/twig/4f/4fe14258405bb9016260c1258d37e3ea.php line 62

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. /* contact/default.html.twig */
  14. class __TwigTemplate_ab520674c05888eb76b454a2be142266 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(), "contact/default.html.twig"1);
  32.     }
  33.     protected function doDisplay(array $context, array $blocks = [])
  34.     {
  35.         $macros $this->macros;
  36.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  37.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""contact/default.html.twig"));
  38.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  39.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""contact/default.html.twig"));
  40.         // line 3
  41.         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))) {
  42.             // line 4
  43.             if (((isset($context["recaptcha"]) || array_key_exists("recaptcha"$context) ? $context["recaptcha"] : (function () { throw new RuntimeError('Variable "recaptcha" does not exist.'4$this->source); })()) == 2)) {
  44.                 // line 5
  45.                 twig_get_attribute($this->env$this->source$this->env->getFunction('pimcore_head_script')->getCallable()(), "appendFile", [=> "https://www.google.com/recaptcha/api.js"], "method"falsefalsetrue5);
  46.             } elseif ((            // line 6
  47. (isset($context["recaptcha"]) || array_key_exists("recaptcha"$context) ? $context["recaptcha"] : (function () { throw new RuntimeError('Variable "recaptcha" does not exist.'6$this->source); })()) == 3)) {
  48.                 // line 7
  49.                 twig_get_attribute($this->env$this->source$this->env->getFunction('pimcore_head_script')->getCallable()(), "appendFile", [=> ("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"falsefalsetrue7);
  50.             }
  51.         }
  52.         // line 1
  53.         $this->getParent($context)->display($contextarray_merge($this->blocks$blocks));
  54.         
  55.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  56.         
  57.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  58.     }
  59.     // line 11
  60.     public function block_content($context, array $blocks = [])
  61.     {
  62.         $macros $this->macros;
  63.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  64.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""content"));
  65.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  66.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""content"));
  67.         // line 12
  68.         echo "    <div class=\"container mb-5\">
  69.         ";
  70.         // line 14
  71.         echo twig_include($this->env$context"includes/title.html.twig");
  72.         echo "
  73.         ";
  74.         // line 17
  75.         echo "        ";
  76.         $context['_parent'] = $context;
  77.         $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", [=> [=> "success"=> "warning"]], "method"falsefalsetrue17));
  78.         foreach ($context['_seq'] as $context["label"] => $context["messages"]) {
  79.             // line 18
  80.             echo "            ";
  81.             $context['_parent'] = $context;
  82.             $context['_seq'] = twig_ensure_traversable($context["messages"]);
  83.             foreach ($context['_seq'] as $context["_key"] => $context["message"]) {
  84.                 // line 19
  85.                 echo "                <div id=\"messages\"  class=\"flash-";
  86.                 echo twig_escape_filter($this->env$this->sandbox->ensureToStringAllowed($context["label"], 19$this->source), "html"nulltrue);
  87.                 echo "\">
  88.                     ";
  89.                 // line 20
  90.                 echo twig_escape_filter($this->env$this->sandbox->ensureToStringAllowed($context["message"], 20$this->source), "html"nulltrue);
  91.                 echo "
  92.                 </div>
  93.             ";
  94.             }
  95.             $_parent $context['_parent'];
  96.             unset($context['_seq'], $context['_iterated'], $context['_key'], $context['message'], $context['_parent'], $context['loop']);
  97.             $context array_intersect_key($context$_parent) + $_parent;
  98.             // line 23
  99.             echo "        ";
  100.         }
  101.         $_parent $context['_parent'];
  102.         unset($context['_seq'], $context['_iterated'], $context['label'], $context['messages'], $context['_parent'], $context['loop']);
  103.         $context array_intersect_key($context$_parent) + $_parent;
  104.         // line 24
  105.         echo "
  106.         <section id=\"contactcontainer\">
  107.             ";
  108.         // line 26
  109.         if ( !(isset($context["success"]) || array_key_exists("success"$context) ? $context["success"] : (function () { throw new RuntimeError('Variable "success" does not exist.'26$this->source); })())) {
  110.             // line 27
  111.             echo "
  112.                     ";
  113.             // line 28
  114.             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');
  115.             echo "
  116.                     <div class=\"row mb-3\">
  117.                         <div class=\"col-6\">
  118.                             <div class=\"form-floating\">
  119.                                 ";
  120.             // line 33
  121.             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"falsefalsetrue33), 33$this->source), 'widget', ["attr" => ["class" => "form-control""placeholder" => twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_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"falsefalsetrue33), "vars", [], "any"falsefalsetrue33), "label", [], "any"falsefalsetrue33)]]);
  122.             echo "
  123.                                 ";
  124.             // line 34
  125.             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"falsefalsetrue34), 34$this->source), 'label', ["label_attr" => ["class" => "form-label"]]);
  126.             echo "</div>
  127.                             <div id=\"firstnameHelp\" class=\"form-text\">";
  128.             // line 36
  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.'36$this->source); })()), "firstname", [], "any"falsefalsetrue36), 36$this->source), 'help');
  130.             echo "</div>
  131.                             <div class=\"form-error\">
  132.                                 ";
  133.             // line 39
  134.             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"falsefalsetrue39), 39$this->source), 'errors');
  135.             echo "
  136.                             </div>
  137.                         </div>
  138.                         <div class=\"col-6\">
  139.                             <div class=\"form-floating\">
  140.                                 ";
  141.             // line 45
  142.             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"falsefalsetrue45), 45$this->source), 'widget', ["attr" => ["class" => "form-control""placeholder" => twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_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"falsefalsetrue45), "vars", [], "any"falsefalsetrue45), "label", [], "any"falsefalsetrue45)]]);
  143.             echo "
  144.                                 ";
  145.             // line 46
  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.'46$this->source); })()), "lastname", [], "any"falsefalsetrue46), 46$this->source), 'label', ["label_attr" => ["class" => "form-label"]]);
  147.             echo "</div>
  148.                             <div id=\"lastnameHelp\" class=\"form-text\">";
  149.             // line 48
  150.             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"falsefalsetrue48), 48$this->source), 'help');
  151.             echo "</div>
  152.                             <div class=\"form-error\">
  153.                                 ";
  154.             // line 51
  155.             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"falsefalsetrue51), 51$this->source), 'errors');
  156.             echo "
  157.                             </div>
  158.                         </div>
  159.                     </div>
  160.                     <div class=\"row mb-3\">
  161.                         <div class=\"col-8 col-lg-6\">
  162.                             <div class=\"form-floating\">
  163.                                 ";
  164.             // line 60
  165.             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"falsefalsetrue60), 60$this->source), 'widget', ["attr" => ["class" => "form-control""placeholder" => twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_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"falsefalsetrue60), "vars", [], "any"falsefalsetrue60), "label", [], "any"falsefalsetrue60)]]);
  166.             echo "
  167.                                 ";
  168.             // line 61
  169.             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"falsefalsetrue61), 61$this->source), 'label', ["label_attr" => ["class" => "form-label"]]);
  170.             echo "</div>
  171.                             <div id=\"streetHelp\" class=\"form-text\">";
  172.             // line 63
  173.             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"falsefalsetrue63), 63$this->source), 'help');
  174.             echo "</div>
  175.                             <div class=\"form-error\">
  176.                                 ";
  177.             // line 66
  178.             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"falsefalsetrue66), 66$this->source), 'errors');
  179.             echo "
  180.                             </div>
  181.                         </div>
  182.                         <div class=\"col-4 col-lg-6\">
  183.                             <div class=\"form-floating\">
  184.                                 ";
  185.             // line 72
  186.             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"falsefalsetrue72), 72$this->source), 'widget', ["attr" => ["class" => "form-control""placeholder" => twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_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"falsefalsetrue72), "vars", [], "any"falsefalsetrue72), "label", [], "any"falsefalsetrue72)]]);
  187.             echo "
  188.                                 ";
  189.             // line 73
  190.             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"falsefalsetrue73), 73$this->source), 'label', ["label_attr" => ["class" => "form-label"]]);
  191.             echo "</div>
  192.                             <div id=\"streetnrHelp\" class=\"form-text\">";
  193.             // line 75
  194.             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"falsefalsetrue75), 75$this->source), 'help');
  195.             echo "</div>
  196.                             <div class=\"form-error\">
  197.                                 ";
  198.             // line 78
  199.             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"falsefalsetrue78), 78$this->source), 'errors');
  200.             echo "
  201.                             </div>
  202.                         </div>
  203.                     </div>
  204.                     <div class=\"row mb-3\">
  205.                         <div class=\"col-6\">
  206.                             <div class=\"form-floating\">
  207.                                 ";
  208.             // line 87
  209.             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"falsefalsetrue87), 87$this->source), 'widget', ["attr" => ["class" => "form-control""placeholder" => twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_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"falsefalsetrue87), "vars", [], "any"falsefalsetrue87), "label", [], "any"falsefalsetrue87)]]);
  210.             echo "
  211.                                 ";
  212.             // line 88
  213.             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"falsefalsetrue88), 88$this->source), 'label', ["label_attr" => ["class" => "form-label"]]);
  214.             echo "</div>
  215.                             <div id=\"postcodeHelp\" class=\"form-text\">";
  216.             // line 90
  217.             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"falsefalsetrue90), 90$this->source), 'help');
  218.             echo "</div>
  219.                             <div class=\"form-error\">
  220.                                 ";
  221.             // line 93
  222.             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"falsefalsetrue93), 93$this->source), 'errors');
  223.             echo "
  224.                             </div>
  225.                         </div>
  226.                         <div class=\"col-6\">
  227.                             <div class=\"form-floating\">
  228.                                 ";
  229.             // line 99
  230.             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"falsefalsetrue99), 99$this->source), 'widget', ["attr" => ["class" => "form-control""placeholder" => twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_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"falsefalsetrue99), "vars", [], "any"falsefalsetrue99), "label", [], "any"falsefalsetrue99)]]);
  231.             echo "
  232.                                 ";
  233.             // line 100
  234.             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"falsefalsetrue100), 100$this->source), 'label', ["label_attr" => ["class" => "form-label"]]);
  235.             echo "</div>
  236.                             <div id=\"cityeHelp\" class=\"form-text\">";
  237.             // line 102
  238.             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"falsefalsetrue102), 102$this->source), 'help');
  239.             echo "</div>
  240.                             <div class=\"form-error\">
  241.                                 ";
  242.             // line 105
  243.             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"falsefalsetrue105), 105$this->source), 'errors');
  244.             echo "
  245.                             </div>
  246.                         </div>
  247.                     </div>
  248.                     <div class=\"row mb-3\">
  249.                         <div class=\"col-12\">
  250.                             <div class=\"form-floating\">
  251.                                 ";
  252.             // line 114
  253.             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"falsefalsetrue114), 114$this->source), 'widget', ["attr" => ["class" => "form-control""placeholder" => twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_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"falsefalsetrue114), "vars", [], "any"falsefalsetrue114), "label", [], "any"falsefalsetrue114)]]);
  254.             echo "
  255.                                 ";
  256.             // line 115
  257.             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"falsefalsetrue115), 115$this->source), 'label', ["label_attr" => ["class" => "form-label"]]);
  258.             echo "</div>
  259.                             <div id=\"phoneeHelp\" class=\"form-text\">";
  260.             // line 117
  261.             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"falsefalsetrue117), 117$this->source), 'help');
  262.             echo "</div>
  263.                             <div class=\"form-error\">
  264.                                 ";
  265.             // line 120
  266.             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"falsefalsetrue120), 120$this->source), 'errors');
  267.             echo "
  268.                             </div>
  269.                         </div>
  270.                     </div>
  271.                     <div class=\"row mb-3\">
  272.                         <div class=\"col-12\">
  273.                             <div class=\"form-floating\">
  274.                                 ";
  275.             // line 129
  276.             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"falsefalsetrue129), 129$this->source), 'widget', ["attr" => ["class" => "form-control""placeholder" => twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_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"falsefalsetrue129), "vars", [], "any"falsefalsetrue129), "label", [], "any"falsefalsetrue129)]]);
  277.             echo "
  278.                                 ";
  279.             // line 130
  280.             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"falsefalsetrue130), 130$this->source), 'label', ["label_attr" => ["class" => "form-label"]]);
  281.             echo "</div>
  282.                             <div id=\"emailHelp\" class=\"form-text\">";
  283.             // line 132
  284.             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"falsefalsetrue132), 132$this->source), 'help');
  285.             echo "</div>
  286.                             <div class=\"form-error\">
  287.                                 ";
  288.             // line 135
  289.             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"falsefalsetrue135), 135$this->source), 'errors');
  290.             echo "
  291.                             </div>
  292.                         </div>
  293.                     </div>
  294.                     <div class=\"col-12 mb-3\">
  295.                         ";
  296.             // line 143
  297.             echo "                        <div class=\"form-floating\">
  298.                             ";
  299.             // line 145
  300.             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"falsefalsetrue145), 145$this->source), 'widget', ["attr" => ["class" => "form-control"]]);
  301.             echo "
  302.                             ";
  303.             // line 146
  304.             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"falsefalsetrue146), 146$this->source), 'label', ["label_attr" => ["class" => "form-label"]]);
  305.             echo "</div>
  306.                         <div id=\"countryHelp\" class=\"form-text\">";
  307.             // line 148
  308.             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"falsefalsetrue148), 148$this->source), 'help');
  309.             echo "</div>
  310.                         <div class=\"form-error\">
  311.                             ";
  312.             // line 151
  313.             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"falsefalsetrue151), 151$this->source), 'errors');
  314.             echo "
  315.                         </div>
  316.                     </div>
  317.                     ";
  318.             // line 155
  319.             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))) {
  320.                 // line 156
  321.                 echo "                        ";
  322.                 if (((isset($context["recaptcha"]) || array_key_exists("recaptcha"$context) ? $context["recaptcha"] : (function () { throw new RuntimeError('Variable "recaptcha" does not exist.'156$this->source); })()) == 2)) {
  323.                     // line 157
  324.                     echo "                            <div class=\"form-group\">
  325.                                 <div class=\"g-recaptcha\" data-sitekey=\"";
  326.                     // line 158
  327.                     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"nulltrue);
  328.                     echo "\"></div>
  329.                             </div>
  330.                         ";
  331.                 } elseif ((                // line 160
  332. (isset($context["recaptcha"]) || array_key_exists("recaptcha"$context) ? $context["recaptcha"] : (function () { throw new RuntimeError('Variable "recaptcha" does not exist.'160$this->source); })()) == 3)) {
  333.                     // line 161
  334.                     echo "                            <input type=\"hidden\" name=\"gtoken\" id=\"gtoken\">
  335.                         ";
  336.                 }
  337.                 // line 163
  338.                 echo "                    ";
  339.             }
  340.             // line 164
  341.             echo "
  342.                     ";
  343.             // line 166
  344.             echo "                    <div class=\"col-12 form-check mb-3\">
  345.                         ";
  346.             // line 167
  347.             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"falsefalsetrue167), 167$this->source), 'widget', ["attr" => ["class" => "form-check-input"]]);
  348.             echo "
  349.                         ";
  350.             // line 168
  351.             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"falsefalsetrue168), 168$this->source), 'label', ["label_attr" => ["class" => "form-check-label"]]);
  352.             echo "
  353.                         <a href=\"";
  354.             // line 170
  355.             if ($this->extensions['App\Twig\Extension\CheckwebsiteSettingExtension']->getCheckWebsitesetting("privacy_document""document")) {
  356.                 echo twig_escape_filter($this->env$this->extensions['MultilingualBundle\Twig\Extension\InotherlangExtension']->getInotherlang("LocalizedDocument"$this->extensions['Pimcore\Twig\Extension\WebsiteConfigExtension']->getWebsiteConfig("privacy_document")), "html"nulltrue);
  357.             }
  358.             echo "\" target=\"_blank\">
  359.                             ";
  360.             // line 171
  361.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Ik ga akkoord met privacy"), "html"nulltrue);
  362.             echo "
  363.                         </a>
  364.                         <div id=\"conditionsHelp\" class=\"form-text\">";
  365.             // line 174
  366.             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"falsefalsetrue174), 174$this->source), 'help');
  367.             echo "</div>
  368.                         <div class=\"form-error\">
  369.                             ";
  370.             // line 177
  371.             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"falsefalsetrue177), 177$this->source), 'errors');
  372.             echo "
  373.                         </div>
  374.                     </div>
  375.                 <div class=\"col-12 text-center\">
  376.                     ";
  377.             // line 182
  378.             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"falsefalsetrue182), 182$this->source), 'row', ["attr" => ["class" => "btn btn-primary btn-lg"]]);
  379.             echo "</div>
  380.                     ";
  381.             // line 184
  382.             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');
  383.             echo "
  384.             ";
  385.         }
  386.         // line 187
  387.         echo "        </section>
  388.     </div>
  389.     ";
  390.         // line 190
  391.         if (twig_get_attribute($this->env$this->source, ($context["document"] ?? null), "property", [=> "googlemaps"], "method"truetruetrue190)) {
  392.             // line 191
  393.             echo "        <div class=\"container-fluid p-0 mb-n5\">
  394.             <div class=\"row\">
  395.                 <div class=\"col-12\">
  396.                     <div class=\"embed-container maps mapgrey\">
  397.                         <iframe src=\"";
  398.             // line 195
  399.             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", [=> "googlemaps"], "method"falsefalsetrue195), 195$this->source), "html"nulltrue);
  400.             echo "\" width=\"100%\" height=\"450\" frameborder=\"0\" style=\"border:0\" allowfullscreen></iframe>
  401.                     </div>
  402.                 </div>
  403.             </div>
  404.         </div>
  405.     ";
  406.         }
  407.         // line 201
  408.         echo "
  409.     ";
  410.         // line 202
  411.         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->sourcetwig_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", [=> [=> "success"]], "method"falsefalsetrue202), "success", [], "any"falsefalsetrue202)) || twig_test_empty(twig_get_attribute($this->env$this->sourcetwig_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", [=> [=> "warning"]], "method"falsefalsetrue202), "warning", [], "any"falsefalsetrue202))))) {
  412.             // line 203
  413.             echo "        <script>
  414.             function getReCaptcha(){
  415.                 grecaptcha.ready(function () {
  416.                     grecaptcha.execute('";
  417.             // line 206
  418.             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"nulltrue);
  419.             echo "', { action: 'contact' }).then(function (token) {
  420.                         var recaptchaResponse = document.getElementById('gtoken');
  421.                         recaptchaResponse.value = token;
  422.                     });
  423.                 });
  424.             }
  425.             getReCaptcha();  // This is the initial call
  426.             setInterval(function(){getReCaptcha();}, 60000);
  427.         </script>
  428.     ";
  429.         }
  430.         // line 216
  431.         echo "
  432. ";
  433.         
  434.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  435.         
  436.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  437.     }
  438.     public function getTemplateName()
  439.     {
  440.         return "contact/default.html.twig";
  441.     }
  442.     public function isTraitable()
  443.     {
  444.         return false;
  445.     }
  446.     public function getDebugInfo()
  447.     {
  448.         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,);
  449.     }
  450.     public function getSourceContext()
  451.     {
  452.         return new Source("{% extends base_layout() %}
  453. {% if not editmode and recaptcha is defined %}
  454.     {% if recaptcha == 2 %}
  455.         {% do pimcore_head_script().appendFile('https://www.google.com/recaptcha/api.js') %}
  456.     {% elseif recaptcha == 3 %}
  457.         {% do pimcore_head_script().appendFile('https://www.google.com/recaptcha/api.js?render=' ~ recaptchaPublic) %}
  458.     {% endif %}
  459. {% endif %}
  460. {% block content %}
  461.     <div class=\"container mb-5\">
  462.         {{ include('includes/title.html.twig') }}
  463.         {# read and display several types of flash messages #}
  464.         {% for label, messages in app.flashes(['success', 'warning']) %}
  465.             {% for message in messages %}
  466.                 <div id=\"messages\"  class=\"flash-{{ label }}\">
  467.                     {{ message }}
  468.                 </div>
  469.             {% endfor %}
  470.         {% endfor %}
  471.         <section id=\"contactcontainer\">
  472.             {% if not success %}
  473.                     {{ form_start(form) }}
  474.                     <div class=\"row mb-3\">
  475.                         <div class=\"col-6\">
  476.                             <div class=\"form-floating\">
  477.                                 {{ form_widget(form.firstname, {'attr': {'class': 'form-control', 'placeholder': form.firstname.vars.label}}) }}
  478.                                 {{ form_label(form.firstname, null, {'label_attr': {'class': 'form-label'}}) }}</div>
  479.                             <div id=\"firstnameHelp\" class=\"form-text\">{{ form_help(form.firstname) }}</div>
  480.                             <div class=\"form-error\">
  481.                                 {{ form_errors(form.firstname) }}
  482.                             </div>
  483.                         </div>
  484.                         <div class=\"col-6\">
  485.                             <div class=\"form-floating\">
  486.                                 {{ form_widget(form.lastname, {'attr': {'class': 'form-control', 'placeholder': form.lastname.vars.label }}) }}
  487.                                 {{ form_label(form.lastname, null, {'label_attr': {'class': 'form-label'}}) }}</div>
  488.                             <div id=\"lastnameHelp\" class=\"form-text\">{{ form_help(form.lastname) }}</div>
  489.                             <div class=\"form-error\">
  490.                                 {{ form_errors(form.lastname) }}
  491.                             </div>
  492.                         </div>
  493.                     </div>
  494.                     <div class=\"row mb-3\">
  495.                         <div class=\"col-8 col-lg-6\">
  496.                             <div class=\"form-floating\">
  497.                                 {{ form_widget(form.street, {'attr': {'class': 'form-control', 'placeholder': form.street.vars.label}}) }}
  498.                                 {{ form_label(form.street, null, {'label_attr': {'class': 'form-label'}}) }}</div>
  499.                             <div id=\"streetHelp\" class=\"form-text\">{{ form_help(form.street) }}</div>
  500.                             <div class=\"form-error\">
  501.                                 {{ form_errors(form.street) }}
  502.                             </div>
  503.                         </div>
  504.                         <div class=\"col-4 col-lg-6\">
  505.                             <div class=\"form-floating\">
  506.                                 {{ form_widget(form.streetnr, {'attr': {'class': 'form-control', 'placeholder': form.streetnr.vars.label }}) }}
  507.                                 {{ form_label(form.streetnr, null, {'label_attr': {'class': 'form-label'}}) }}</div>
  508.                             <div id=\"streetnrHelp\" class=\"form-text\">{{ form_help(form.streetnr) }}</div>
  509.                             <div class=\"form-error\">
  510.                                 {{ form_errors(form.streetnr) }}
  511.                             </div>
  512.                         </div>
  513.                     </div>
  514.                     <div class=\"row mb-3\">
  515.                         <div class=\"col-6\">
  516.                             <div class=\"form-floating\">
  517.                                 {{ form_widget(form.postcode, {'attr': {'class': 'form-control', 'placeholder': form.postcode.vars.label}}) }}
  518.                                 {{ form_label(form.postcode, null, {'label_attr': {'class': 'form-label'}}) }}</div>
  519.                             <div id=\"postcodeHelp\" class=\"form-text\">{{ form_help(form.postcode) }}</div>
  520.                             <div class=\"form-error\">
  521.                                 {{ form_errors(form.postcode) }}
  522.                             </div>
  523.                         </div>
  524.                         <div class=\"col-6\">
  525.                             <div class=\"form-floating\">
  526.                                 {{ form_widget(form.city, {'attr': {'class': 'form-control', 'placeholder': form.city.vars.label }}) }}
  527.                                 {{ form_label(form.city, null, {'label_attr': {'class': 'form-label'}}) }}</div>
  528.                             <div id=\"cityeHelp\" class=\"form-text\">{{ form_help(form.city) }}</div>
  529.                             <div class=\"form-error\">
  530.                                 {{ form_errors(form.city) }}
  531.                             </div>
  532.                         </div>
  533.                     </div>
  534.                     <div class=\"row mb-3\">
  535.                         <div class=\"col-12\">
  536.                             <div class=\"form-floating\">
  537.                                 {{ form_widget(form.phone, {'attr': {'class': 'form-control', 'placeholder': form.phone.vars.label}}) }}
  538.                                 {{ form_label(form.phone, null, {'label_attr': {'class': 'form-label'}}) }}</div>
  539.                             <div id=\"phoneeHelp\" class=\"form-text\">{{ form_help(form.phone) }}</div>
  540.                             <div class=\"form-error\">
  541.                                 {{ form_errors(form.phone) }}
  542.                             </div>
  543.                         </div>
  544.                     </div>
  545.                     <div class=\"row mb-3\">
  546.                         <div class=\"col-12\">
  547.                             <div class=\"form-floating\">
  548.                                 {{ form_widget(form.email, {'attr': {'class': 'form-control', 'placeholder': form.email.vars.label}}) }}
  549.                                 {{ form_label(form.email, null, {'label_attr': {'class': 'form-label'}}) }}</div>
  550.                             <div id=\"emailHelp\" class=\"form-text\">{{ form_help(form.email) }}</div>
  551.                             <div class=\"form-error\">
  552.                                 {{ form_errors(form.email) }}
  553.                             </div>
  554.                         </div>
  555.                     </div>
  556.                     <div class=\"col-12 mb-3\">
  557.                         {# {{ form_row(form.message) }}#}
  558.                         <div class=\"form-floating\">
  559.                             {{ form_widget(form.message, {'attr': {'class': 'form-control'}}) }}
  560.                             {{ form_label(form.message, null, {'label_attr': {'class': 'form-label'}}) }}</div>
  561.                         <div id=\"countryHelp\" class=\"form-text\">{{ form_help(form.message) }}</div>
  562.                         <div class=\"form-error\">
  563.                             {{ form_errors(form.message) }}
  564.                         </div>
  565.                     </div>
  566.                     {% if not editmode and recaptcha is defined %}
  567.                         {% if recaptcha == 2 %}
  568.                             <div class=\"form-group\">
  569.                                 <div class=\"g-recaptcha\" data-sitekey=\"{{ recaptchaPublic }}\"></div>
  570.                             </div>
  571.                         {% elseif recaptcha == 3 %}
  572.                             <input type=\"hidden\" name=\"gtoken\" id=\"gtoken\">
  573.                         {% endif %}
  574.                     {% endif %}
  575.                     {#                {{ form_row(form.conditions) }}#}
  576.                     <div class=\"col-12 form-check mb-3\">
  577.                         {{ form_widget(form.conditions, {'attr': {'class': 'form-check-input'}}) }}
  578.                         {{ form_label(form.conditions, null, {'label_attr': {'class': 'form-check-label'}}) }}
  579.                         <a href=\"{% if check_websitesetting('privacy_document', 'document') %}{{ inotherlang('LocalizedDocument', pimcore_website_config('privacy_document')) }}{% endif %}\" target=\"_blank\">
  580.                             {{ 'Ik ga akkoord met privacy'|trans }}
  581.                         </a>
  582.                         <div id=\"conditionsHelp\" class=\"form-text\">{{ form_help(form.conditions) }}</div>
  583.                         <div class=\"form-error\">
  584.                             {{ form_errors(form.conditions) }}
  585.                         </div>
  586.                     </div>
  587.                 <div class=\"col-12 text-center\">
  588.                     {{ form_row(form.submit, {'attr': {'class': 'btn btn-primary btn-lg'}}) }}</div>
  589.                     {{ form_end(form) }}
  590.             {% endif %}
  591.         </section>
  592.     </div>
  593.     {% if document.property('googlemaps') is defined %}
  594.         <div class=\"container-fluid p-0 mb-n5\">
  595.             <div class=\"row\">
  596.                 <div class=\"col-12\">
  597.                     <div class=\"embed-container maps mapgrey\">
  598.                         <iframe src=\"{{ document.property('googlemaps') }}\" width=\"100%\" height=\"450\" frameborder=\"0\" style=\"border:0\" allowfullscreen></iframe>
  599.                     </div>
  600.                 </div>
  601.             </div>
  602.         </div>
  603.     {% endif %}
  604.     {% if not editmode and recaptcha == 3 and (app.flashes(['success']).success is empty or app.flashes(['warning']).warning is empty) %}
  605.         <script>
  606.             function getReCaptcha(){
  607.                 grecaptcha.ready(function () {
  608.                     grecaptcha.execute('{{ recaptchaPublic }}', { action: 'contact' }).then(function (token) {
  609.                         var recaptchaResponse = document.getElementById('gtoken');
  610.                         recaptchaResponse.value = token;
  611.                     });
  612.                 });
  613.             }
  614.             getReCaptcha();  // This is the initial call
  615.             setInterval(function(){getReCaptcha();}, 60000);
  616.         </script>
  617.     {% endif %}
  618. {% endblock %}
  619. {# read and display just one flash message type #}
  620. {#{% for message in app.flashes('notice') %}#}
  621. {#    <div class=\"flash-notice\">#}
  622. {#        {{ message }}#}
  623. {#    </div>#}
  624. {#{% endfor %}#}
  625. {# read and display all flash messages #}
  626. {#{% for label, messages in app.flashes %}#}
  627. {#    {% for message in messages %}#}
  628. {#        <div class=\"flash-{{ label }}\">#}
  629. {#            {{ message }}#}
  630. {#        </div>#}
  631. {#    {% endfor %}#}
  632. {#{% endfor %}#}""contact/default.html.twig""/var/www/clients/client2/web42/web/pc/templates/contact/default.html.twig");
  633.     }
  634.     
  635.     public function checkSecurity()
  636.     {
  637.         static $tags = array("if" => 3"do" => 5"for" => 17);
  638.         static $filters = array("escape" => 19"trans" => 171);
  639.         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);
  640.         try {
  641.             $this->sandbox->checkSecurity(
  642.                 ['if''do''for'],
  643.                 ['escape''trans'],
  644.                 ['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']
  645.             );
  646.         } catch (SecurityError $e) {
  647.             $e->setSourceContext($this->source);
  648.             if ($e instanceof SecurityNotAllowedTagError && isset($tags[$e->getTagName()])) {
  649.                 $e->setTemplateLine($tags[$e->getTagName()]);
  650.             } elseif ($e instanceof SecurityNotAllowedFilterError && isset($filters[$e->getFilterName()])) {
  651.                 $e->setTemplateLine($filters[$e->getFilterName()]);
  652.             } elseif ($e instanceof SecurityNotAllowedFunctionError && isset($functions[$e->getFunctionName()])) {
  653.                 $e->setTemplateLine($functions[$e->getFunctionName()]);
  654.             }
  655.             throw $e;
  656.         }
  657.     }
  658. }