var/cache/dev/twig/c3/c332eee6a1f57f79accd0fa9a5dc2fad.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_956ae73be34f0fb2f49069aed94bd888 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\">
  69.         <div class=\"row\">
  70.             <div class=\"col-12\">
  71.                 <h1>";
  72.         // line 15
  73.         echo $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context"input""title", ["placeholder" => "Headline"]);
  74.         echo "</h1>
  75.                 ";
  76.         // line 17
  77.         echo $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context"wysiwyg""content_text", ["placeholder" => "Place content here"]);
  78.         echo "
  79.             </div>
  80.         </div>
  81.         ";
  82.         // line 22
  83.         echo "        ";
  84.         $context['_parent'] = $context;
  85.         $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.'22$this->source); })()), "flashes", [=> [=> "success"=> "warning"]], "method"falsefalsetrue22));
  86.         foreach ($context['_seq'] as $context["label"] => $context["messages"]) {
  87.             // line 23
  88.             echo "            ";
  89.             $context['_parent'] = $context;
  90.             $context['_seq'] = twig_ensure_traversable($context["messages"]);
  91.             foreach ($context['_seq'] as $context["_key"] => $context["message"]) {
  92.                 // line 24
  93.                 echo "                <div id=\"messages\" class=\"flash-";
  94.                 echo twig_escape_filter($this->env$this->sandbox->ensureToStringAllowed($context["label"], 24$this->source), "html"nulltrue);
  95.                 echo "\">
  96.                     ";
  97.                 // line 25
  98.                 echo twig_escape_filter($this->env$this->sandbox->ensureToStringAllowed($context["message"], 25$this->source), "html"nulltrue);
  99.                 echo "
  100.                 </div>
  101.             ";
  102.             }
  103.             $_parent $context['_parent'];
  104.             unset($context['_seq'], $context['_iterated'], $context['_key'], $context['message'], $context['_parent'], $context['loop']);
  105.             $context array_intersect_key($context$_parent) + $_parent;
  106.             // line 28
  107.             echo "        ";
  108.         }
  109.         $_parent $context['_parent'];
  110.         unset($context['_seq'], $context['_iterated'], $context['label'], $context['messages'], $context['_parent'], $context['loop']);
  111.         $context array_intersect_key($context$_parent) + $_parent;
  112.         // line 29
  113.         echo "        ";
  114.         if ( !(isset($context["success"]) || array_key_exists("success"$context) ? $context["success"] : (function () { throw new RuntimeError('Variable "success" does not exist.'29$this->source); })())) {
  115.             // line 30
  116.             echo "        <section id=\"contactcontainer mb-5\">
  117.             <div class=\"bg-secondary rounded-2 p-3\">
  118.                     ";
  119.             // line 33
  120.             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.'33$this->source); })()), 33$this->source), 'form_start');
  121.             echo "
  122.                     <div class=\"row mb-3\">
  123.                         <div class=\"col-6\">
  124.                             ";
  125.             // line 37
  126.             echo "                            ";
  127.             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.'37$this->source); })()), "firstname", [], "any"falsefalsetrue37), 37$this->source), 'label', ["label_attr" => ["class" => "form-label"]]);
  128.             echo "
  129.                             ";
  130.             // line 38
  131.             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.'38$this->source); })()), "firstname", [], "any"falsefalsetrue38), 38$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.'38$this->source); })()), "firstname", [], "any"falsefalsetrue38), "vars", [], "any"falsefalsetrue38), "label", [], "any"falsefalsetrue38)]]);
  132.             echo "
  133.                             <div id=\"firstnameHelp\" class=\"form-text\">";
  134.             // line 40
  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.'40$this->source); })()), "firstname", [], "any"falsefalsetrue40), 40$this->source), 'help');
  136.             echo "</div>
  137.                             <div class=\"form-error\">
  138.                                 ";
  139.             // line 43
  140.             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.'43$this->source); })()), "firstname", [], "any"falsefalsetrue43), 43$this->source), 'errors');
  141.             echo "
  142.                             </div>
  143.                         </div>
  144.                         <div class=\"col-6\">
  145.                             ";
  146.             // line 48
  147.             echo "                            ";
  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.'48$this->source); })()), "lastname", [], "any"falsefalsetrue48), 48$this->source), 'label', ["label_attr" => ["class" => "form-label"]]);
  149.             echo "
  150.                             ";
  151.             // line 49
  152.             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.'49$this->source); })()), "lastname", [], "any"falsefalsetrue49), 49$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.'49$this->source); })()), "lastname", [], "any"falsefalsetrue49), "vars", [], "any"falsefalsetrue49), "label", [], "any"falsefalsetrue49)]]);
  153.             echo "
  154.                             <div id=\"lastnameHelp\" class=\"form-text\">";
  155.             // line 51
  156.             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), 'help');
  157.             echo "</div>
  158.                             <div class=\"form-error\">
  159.                                 ";
  160.             // line 54
  161.             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.'54$this->source); })()), "lastname", [], "any"falsefalsetrue54), 54$this->source), 'errors');
  162.             echo "
  163.                             </div>
  164.                         </div>
  165.                     </div>
  166.                     <div class=\"row mb-3\">
  167.                         <div class=\"col-6\">
  168.                             ";
  169.             // line 61
  170.             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); })()), "email", [], "any"falsefalsetrue61), 61$this->source), 'label', ["label_attr" => ["class" => "form-label"]]);
  171.             echo "
  172.                             ";
  173.             // line 62
  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.'62$this->source); })()), "email", [], "any"falsefalsetrue62), 62$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.'62$this->source); })()), "email", [], "any"falsefalsetrue62), "vars", [], "any"falsefalsetrue62), "label", [], "any"falsefalsetrue62)]]);
  175.             echo "
  176.                             <div id=\"emailHelp\" class=\"form-text\">";
  177.             // line 64
  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.'64$this->source); })()), "email", [], "any"falsefalsetrue64), 64$this->source), 'help');
  179.             echo "</div>
  180.                             <div class=\"form-error\">
  181.                                 ";
  182.             // line 67
  183.             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.'67$this->source); })()), "email", [], "any"falsefalsetrue67), 67$this->source), 'errors');
  184.             echo "
  185.                             </div>
  186.                         </div>
  187.                         <div class=\"col-6\">
  188.                             ";
  189.             // line 72
  190.             echo "                            ";
  191.             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); })()), "country", [], "any"falsefalsetrue72), 72$this->source), 'label', ["label_attr" => ["class" => "form-label"]]);
  192.             echo "
  193.                             ";
  194.             // line 73
  195.             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); })()), "country", [], "any"falsefalsetrue73), 73$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.'73$this->source); })()), "country", [], "any"falsefalsetrue73), "vars", [], "any"falsefalsetrue73), "label", [], "any"falsefalsetrue73)]]);
  196.             echo "
  197.                             <div id=\"countryHelp\" class=\"form-text\">";
  198.             // line 75
  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.'75$this->source); })()), "country", [], "any"falsefalsetrue75), 75$this->source), 'help');
  200.             echo "</div>
  201.                             <div class=\"form-error\">
  202.                                 ";
  203.             // line 78
  204.             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); })()), "country", [], "any"falsefalsetrue78), 78$this->source), 'errors');
  205.             echo "
  206.                             </div>
  207.                         </div>
  208.                         <div class=\"col-6\">
  209.                             ";
  210.             // line 83
  211.             echo "                            ";
  212.             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.'83$this->source); })()), "about", [], "any"falsefalsetrue83), 83$this->source), 'label', ["label_attr" => ["class" => "form-label"]]);
  213.             echo "
  214.                             ";
  215.             // line 84
  216.             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.'84$this->source); })()), "about", [], "any"falsefalsetrue84), 84$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.'84$this->source); })()), "about", [], "any"falsefalsetrue84), "vars", [], "any"falsefalsetrue84), "label", [], "any"falsefalsetrue84)]]);
  217.             echo "
  218.                             <div id=\"aboutHelp\" class=\"form-text\">";
  219.             // line 86
  220.             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.'86$this->source); })()), "about", [], "any"falsefalsetrue86), 86$this->source), 'help');
  221.             echo "</div>
  222.                             <div class=\"form-error\">
  223.                                 ";
  224.             // line 89
  225.             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.'89$this->source); })()), "about", [], "any"falsefalsetrue89), 89$this->source), 'errors');
  226.             echo "
  227.                             </div>
  228.                         </div>
  229.                     </div>
  230.                     <div class=\"col-12\">
  231.                         ";
  232.             // line 97
  233.             echo "                        ";
  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.'97$this->source); })()), "message", [], "any"falsefalsetrue97), 97$this->source), 'label', ["label_attr" => ["class" => "form-label"]]);
  235.             echo "
  236.                         ";
  237.             // line 98
  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.'98$this->source); })()), "message", [], "any"falsefalsetrue98), 98$this->source), 'widget', ["attr" => ["class" => "form-control"]]);
  239.             echo "
  240.                         <div id=\"countryHelp\" class=\"form-text\">";
  241.             // line 100
  242.             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); })()), "message", [], "any"falsefalsetrue100), 100$this->source), 'help');
  243.             echo "</div>
  244.                         <div class=\"form-error\">
  245.                             ";
  246.             // line 103
  247.             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.'103$this->source); })()), "message", [], "any"falsefalsetrue103), 103$this->source), 'errors');
  248.             echo "
  249.                         </div>
  250.                     </div>
  251.                     ";
  252.             // line 107
  253.             if (( !(isset($context["editmode"]) || array_key_exists("editmode"$context) ? $context["editmode"] : (function () { throw new RuntimeError('Variable "editmode" does not exist.'107$this->source); })()) && array_key_exists("recaptcha"$context))) {
  254.                 // line 108
  255.                 echo "                        ";
  256.                 if (((isset($context["recaptcha"]) || array_key_exists("recaptcha"$context) ? $context["recaptcha"] : (function () { throw new RuntimeError('Variable "recaptcha" does not exist.'108$this->source); })()) == 2)) {
  257.                     // line 109
  258.                     echo "                            <div class=\"form-group\">
  259.                                 <div class=\"g-recaptcha\" data-sitekey=\"";
  260.                     // line 110
  261.                     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.'110$this->source); })()), 110$this->source), "html"nulltrue);
  262.                     echo "\"></div>
  263.                             </div>
  264.                         ";
  265.                 } elseif ((                // line 112
  266. (isset($context["recaptcha"]) || array_key_exists("recaptcha"$context) ? $context["recaptcha"] : (function () { throw new RuntimeError('Variable "recaptcha" does not exist.'112$this->source); })()) == 3)) {
  267.                     // line 113
  268.                     echo "                            <input type=\"hidden\" name=\"gtoken\" id=\"gtoken\">
  269.                         ";
  270.                 }
  271.                 // line 115
  272.                 echo "                    ";
  273.             }
  274.             // line 116
  275.             echo "
  276.                     ";
  277.             // line 118
  278.             echo "                    <div class=\"col-12 form-check\">
  279.                         ";
  280.             // line 119
  281.             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.'119$this->source); })()), "conditions", [], "any"falsefalsetrue119), 119$this->source), 'widget', ["attr" => ["class" => "form-check-input"]]);
  282.             echo "
  283.                         ";
  284.             // line 120
  285.             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); })()), "conditions", [], "any"falsefalsetrue120), 120$this->source), 'label', ["label_attr" => ["class" => "form-check-label"]]);
  286.             echo "
  287.                         <a href=\"";
  288.             // line 122
  289.             if ($this->extensions['App\Twig\Extension\CheckwebsiteSettingExtension']->getCheckWebsitesetting("privacy_document""document")) {
  290.                 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);
  291.             }
  292.             echo "\"
  293.                            target=\"_blank\">
  294.                             ";
  295.             // line 124
  296.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Ik ga akkoord met privacy"), "html"nulltrue);
  297.             echo "
  298.                         </a>
  299.                         <div id=\"conditionsHelp\" class=\"form-text\">";
  300.             // line 127
  301.             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.'127$this->source); })()), "conditions", [], "any"falsefalsetrue127), 127$this->source), 'help');
  302.             echo "</div>
  303.                         <div class=\"form-error\">
  304.                             ";
  305.             // line 130
  306.             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); })()), "conditions", [], "any"falsefalsetrue130), 130$this->source), 'errors');
  307.             echo "
  308.                         </div>
  309.                     </div>
  310.                     ";
  311.             // line 134
  312.             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.'134$this->source); })()), "submit", [], "any"falsefalsetrue134), 134$this->source), 'row', ["attr" => ["class" => "btn btn-primary mt-3"]]);
  313.             echo "
  314.                     ";
  315.             // line 136
  316.             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.'136$this->source); })()), 136$this->source), 'form_end');
  317.             echo "
  318.             </div>
  319.         </section>
  320.         ";
  321.         }
  322.         // line 142
  323.         echo "    </div>
  324.     ";
  325.         // line 144
  326.         if (twig_get_attribute($this->env$this->source, ($context["document"] ?? null), "property", [=> "googlemaps"], "method"truetruetrue144)) {
  327.             // line 145
  328.             echo "        <div class=\"container-fluid mt-5 mb-n5 p-0\">
  329.             <div class=\"row\">
  330.                 <div class=\"col-12\">
  331.                     <div class=\"embed-container maps mapgrey\">
  332.                         <iframe src=\"";
  333.             // line 149
  334.             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.'149$this->source); })()), "property", [=> "googlemaps"], "method"falsefalsetrue149), 149$this->source), "html"nulltrue);
  335.             echo "\" width=\"100%\" height=\"650\" frameborder=\"0\"
  336.                                 style=\"border:0\" allowfullscreen></iframe>
  337.                     </div>
  338.                 </div>
  339.             </div>
  340.         </div>
  341.     ";
  342.         }
  343.         // line 156
  344.         echo "
  345.     ";
  346.         // line 157
  347.         if ((( !(isset($context["editmode"]) || array_key_exists("editmode"$context) ? $context["editmode"] : (function () { throw new RuntimeError('Variable "editmode" does not exist.'157$this->source); })()) && ((isset($context["recaptcha"]) || array_key_exists("recaptcha"$context) ? $context["recaptcha"] : (function () { throw new RuntimeError('Variable "recaptcha" does not exist.'157$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.'157$this->source); })()), "flashes", [=> [=> "success"]], "method"falsefalsetrue157), "success", [], "any"falsefalsetrue157)) || 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.'157$this->source); })()), "flashes", [=> [=> "warning"]], "method"falsefalsetrue157), "warning", [], "any"falsefalsetrue157))))) {
  348.             // line 158
  349.             echo "        <script>
  350.             function getReCaptcha() {
  351.                 grecaptcha.ready(function () {
  352.                     grecaptcha.execute('";
  353.             // line 161
  354.             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.'161$this->source); })()), 161$this->source), "html"nulltrue);
  355.             echo "', {action: 'contact'}).then(function (token) {
  356.                         var recaptchaResponse = document.getElementById('gtoken');
  357.                         recaptchaResponse.value = token;
  358.                     });
  359.                 });
  360.             }
  361.             getReCaptcha();  // This is the initial call
  362.             setInterval(function () {
  363.                 getReCaptcha();
  364.             }, 60000);
  365.         </script>
  366.     ";
  367.         }
  368.         // line 174
  369.         echo "
  370. ";
  371.         
  372.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  373.         
  374.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  375.     }
  376.     public function getTemplateName()
  377.     {
  378.         return "contact/default.html.twig";
  379.     }
  380.     public function isTraitable()
  381.     {
  382.         return false;
  383.     }
  384.     public function getDebugInfo()
  385.     {
  386.         return array (  411 => 174,  395 => 161,  390 => 158,  388 => 157,  385 => 156,  375 => 149,  369 => 145,  367 => 144,  363 => 142,  354 => 136,  349 => 134,  342 => 130,  336 => 127,  330 => 124,  323 => 122,  318 => 120,  314 => 119,  311 => 118,  308 => 116,  305 => 115,  301 => 113,  299 => 112,  294 => 110,  291 => 109,  288 => 108,  286 => 107,  279 => 103,  273 => 100,  268 => 98,  263 => 97,  253 => 89,  247 => 86,  242 => 84,  237 => 83,  230 => 78,  224 => 75,  219 => 73,  214 => 72,  207 => 67,  201 => 64,  196 => 62,  192 => 61,  182 => 54,  176 => 51,  171 => 49,  166 => 48,  159 => 43,  153 => 40,  148 => 38,  143 => 37,  137 => 33,  132 => 30,  129 => 29,  123 => 28,  114 => 25,  109 => 24,  104 => 23,  99 => 22,  92 => 17,  87 => 15,  82 => 12,  72 => 11,  62 => 1,  58 => 7,  56 => 6,  54 => 5,  52 => 4,  50 => 3,  37 => 1,);
  387.     }
  388.     public function getSourceContext()
  389.     {
  390.         return new Source("{% extends base_layout() %}
  391. {% if not editmode and recaptcha is defined %}
  392.     {% if recaptcha == 2 %}
  393.         {% do pimcore_head_script().appendFile('https://www.google.com/recaptcha/api.js') %}
  394.     {% elseif recaptcha == 3 %}
  395.         {% do pimcore_head_script().appendFile('https://www.google.com/recaptcha/api.js?render=' ~ recaptchaPublic) %}
  396.     {% endif %}
  397. {% endif %}
  398. {% block content %}
  399.     <div class=\"container\">
  400.         <div class=\"row\">
  401.             <div class=\"col-12\">
  402.                 <h1>{{ pimcore_input('title', {'placeholder':'Headline'}) }}</h1>
  403.                 {{ pimcore_wysiwyg('content_text', {'placeholder':'Place content here'}) }}
  404.             </div>
  405.         </div>
  406.         {# read and display several types of flash messages #}
  407.         {% for label, messages in app.flashes(['success', 'warning']) %}
  408.             {% for message in messages %}
  409.                 <div id=\"messages\" class=\"flash-{{ label }}\">
  410.                     {{ message }}
  411.                 </div>
  412.             {% endfor %}
  413.         {% endfor %}
  414.         {% if not success %}
  415.         <section id=\"contactcontainer mb-5\">
  416.             <div class=\"bg-secondary rounded-2 p-3\">
  417.                     {{ form_start(form) }}
  418.                     <div class=\"row mb-3\">
  419.                         <div class=\"col-6\">
  420.                             {# {{ form_row(form.firstname) }} #}
  421.                             {{ form_label(form.firstname, null, {'label_attr': {'class': 'form-label'}}) }}
  422.                             {{ form_widget(form.firstname, {'attr': {'class': 'form-control', 'placeholder': form.firstname.vars.label}}) }}
  423.                             <div id=\"firstnameHelp\" class=\"form-text\">{{ form_help(form.firstname) }}</div>
  424.                             <div class=\"form-error\">
  425.                                 {{ form_errors(form.firstname) }}
  426.                             </div>
  427.                         </div>
  428.                         <div class=\"col-6\">
  429.                             {# {{ form_row(form.lastname) }} #}
  430.                             {{ form_label(form.lastname, null, {'label_attr': {'class': 'form-label'}}) }}
  431.                             {{ form_widget(form.lastname, {'attr': {'class': 'form-control', 'placeholder': form.lastname.vars.label }}) }}
  432.                             <div id=\"lastnameHelp\" class=\"form-text\">{{ form_help(form.lastname) }}</div>
  433.                             <div class=\"form-error\">
  434.                                 {{ form_errors(form.lastname) }}
  435.                             </div>
  436.                         </div>
  437.                     </div>
  438.                     <div class=\"row mb-3\">
  439.                         <div class=\"col-6\">
  440.                             {{ form_label(form.email, null, {'label_attr': {'class': 'form-label'}}) }}
  441.                             {{ form_widget(form.email, {'attr': {'class': 'form-control', 'placeholder': form.email.vars.label}}) }}
  442.                             <div id=\"emailHelp\" class=\"form-text\">{{ form_help(form.email) }}</div>
  443.                             <div class=\"form-error\">
  444.                                 {{ form_errors(form.email) }}
  445.                             </div>
  446.                         </div>
  447.                         <div class=\"col-6\">
  448.                             {#  {{ form_row(form.country) }} #}
  449.                             {{ form_label(form.country, null, {'label_attr': {'class': 'form-label'}}) }}
  450.                             {{ form_widget(form.country, {'attr': {'class': 'form-control', 'placeholder': form.country.vars.label}}) }}
  451.                             <div id=\"countryHelp\" class=\"form-text\">{{ form_help(form.country) }}</div>
  452.                             <div class=\"form-error\">
  453.                                 {{ form_errors(form.country) }}
  454.                             </div>
  455.                         </div>
  456.                         <div class=\"col-6\">
  457.                             {#  {{ form_row(form.country) }} #}
  458.                             {{ form_label(form.about, null, {'label_attr': {'class': 'form-label'}}) }}
  459.                             {{ form_widget(form.about, {'attr': {'class': 'form-control', 'placeholder': form.about.vars.label}}) }}
  460.                             <div id=\"aboutHelp\" class=\"form-text\">{{ form_help(form.about) }}</div>
  461.                             <div class=\"form-error\">
  462.                                 {{ form_errors(form.about) }}
  463.                             </div>
  464.                         </div>
  465.                     </div>
  466.                     <div class=\"col-12\">
  467.                         {# {{ form_row(form.message) }} #}
  468.                         {{ form_label(form.message, null, {'label_attr': {'class': 'form-label'}}) }}
  469.                         {{ form_widget(form.message, {'attr': {'class': 'form-control'}}) }}
  470.                         <div id=\"countryHelp\" class=\"form-text\">{{ form_help(form.message) }}</div>
  471.                         <div class=\"form-error\">
  472.                             {{ form_errors(form.message) }}
  473.                         </div>
  474.                     </div>
  475.                     {% if not editmode and recaptcha is defined %}
  476.                         {% if recaptcha == 2 %}
  477.                             <div class=\"form-group\">
  478.                                 <div class=\"g-recaptcha\" data-sitekey=\"{{ recaptchaPublic }}\"></div>
  479.                             </div>
  480.                         {% elseif recaptcha == 3 %}
  481.                             <input type=\"hidden\" name=\"gtoken\" id=\"gtoken\">
  482.                         {% endif %}
  483.                     {% endif %}
  484.                     {#                {{ form_row(form.conditions) }} #}
  485.                     <div class=\"col-12 form-check\">
  486.                         {{ form_widget(form.conditions, {'attr': {'class': 'form-check-input'}}) }}
  487.                         {{ form_label(form.conditions, null, {'label_attr': {'class': 'form-check-label'}}) }}
  488.                         <a href=\"{% if check_websitesetting('privacy_document', 'document') %}{{ inotherlang('LocalizedDocument', pimcore_website_config('privacy_document')) }}{% endif %}\"
  489.                            target=\"_blank\">
  490.                             {{ 'Ik ga akkoord met privacy'|trans }}
  491.                         </a>
  492.                         <div id=\"conditionsHelp\" class=\"form-text\">{{ form_help(form.conditions) }}</div>
  493.                         <div class=\"form-error\">
  494.                             {{ form_errors(form.conditions) }}
  495.                         </div>
  496.                     </div>
  497.                     {{ form_row(form.submit, {'attr': {'class': 'btn btn-primary mt-3'}}) }}
  498.                     {{ form_end(form) }}
  499.             </div>
  500.         </section>
  501.         {% endif %}
  502.     </div>
  503.     {% if document.property('googlemaps') is defined %}
  504.         <div class=\"container-fluid mt-5 mb-n5 p-0\">
  505.             <div class=\"row\">
  506.                 <div class=\"col-12\">
  507.                     <div class=\"embed-container maps mapgrey\">
  508.                         <iframe src=\"{{ document.property('googlemaps') }}\" width=\"100%\" height=\"650\" frameborder=\"0\"
  509.                                 style=\"border:0\" allowfullscreen></iframe>
  510.                     </div>
  511.                 </div>
  512.             </div>
  513.         </div>
  514.     {% endif %}
  515.     {% if not editmode and recaptcha == 3 and (app.flashes(['success']).success is empty or app.flashes(['warning']).warning is empty) %}
  516.         <script>
  517.             function getReCaptcha() {
  518.                 grecaptcha.ready(function () {
  519.                     grecaptcha.execute('{{ recaptchaPublic }}', {action: 'contact'}).then(function (token) {
  520.                         var recaptchaResponse = document.getElementById('gtoken');
  521.                         recaptchaResponse.value = token;
  522.                     });
  523.                 });
  524.             }
  525.             getReCaptcha();  // This is the initial call
  526.             setInterval(function () {
  527.                 getReCaptcha();
  528.             }, 60000);
  529.         </script>
  530.     {% endif %}
  531. {% endblock %}
  532. {# read and display just one flash message type #}
  533. {# {% for message in app.flashes('notice') %} #}
  534. {#    <div class=\"flash-notice\"> #}
  535. {#        {{ message }} #}
  536. {#    </div> #}
  537. {# {% endfor %} #}
  538. {# read and display all flash messages #}
  539. {# {% for label, messages in app.flashes %} #}
  540. {#    {% for message in messages %} #}
  541. {#        <div class=\"flash-{{ label }}\"> #}
  542. {#            {{ message }} #}
  543. {#        </div> #}
  544. {#    {% endfor %} #}
  545. {# {% endfor %} #}""contact/default.html.twig""/var/www/clients/client2/web45/web/pc/templates/contact/default.html.twig");
  546.     }
  547.     
  548.     public function checkSecurity()
  549.     {
  550.         static $tags = array("if" => 3"do" => 5"for" => 22);
  551.         static $filters = array("escape" => 24"trans" => 124);
  552.         static $functions = array("pimcore_head_script" => 5"pimcore_input" => 15"pimcore_wysiwyg" => 17"form_start" => 33"form_label" => 37"form_widget" => 38"form_help" => 40"form_errors" => 43"check_websitesetting" => 122"inotherlang" => 122"pimcore_website_config" => 122"form_row" => 134"form_end" => 136"base_layout" => 1);
  553.         try {
  554.             $this->sandbox->checkSecurity(
  555.                 ['if''do''for'],
  556.                 ['escape''trans'],
  557.                 ['pimcore_head_script''pimcore_input''pimcore_wysiwyg''form_start''form_label''form_widget''form_help''form_errors''check_websitesetting''inotherlang''pimcore_website_config''form_row''form_end''base_layout']
  558.             );
  559.         } catch (SecurityError $e) {
  560.             $e->setSourceContext($this->source);
  561.             if ($e instanceof SecurityNotAllowedTagError && isset($tags[$e->getTagName()])) {
  562.                 $e->setTemplateLine($tags[$e->getTagName()]);
  563.             } elseif ($e instanceof SecurityNotAllowedFilterError && isset($filters[$e->getFilterName()])) {
  564.                 $e->setTemplateLine($filters[$e->getFilterName()]);
  565.             } elseif ($e instanceof SecurityNotAllowedFunctionError && isset($functions[$e->getFunctionName()])) {
  566.                 $e->setTemplateLine($functions[$e->getFunctionName()]);
  567.             }
  568.             throw $e;
  569.         }
  570.     }
  571. }