<?php
use Twig\Environment;
use Twig\Error\LoaderError;
use Twig\Error\RuntimeError;
use Twig\Extension\SandboxExtension;
use Twig\Markup;
use Twig\Sandbox\SecurityError;
use Twig\Sandbox\SecurityNotAllowedTagError;
use Twig\Sandbox\SecurityNotAllowedFilterError;
use Twig\Sandbox\SecurityNotAllowedFunctionError;
use Twig\Source;
use Twig\Template;
/* contact/default.html.twig */
class __TwigTemplate_956ae73be34f0fb2f49069aed94bd888 extends Template
{
private $source;
private $macros = [];
public function __construct(Environment $env)
{
parent::__construct($env);
$this->source = $this->getSourceContext();
$this->blocks = [
'content' => [$this, 'block_content'],
];
$this->sandbox = $this->env->getExtension('\Twig\Extension\SandboxExtension');
$this->checkSecurity();
}
protected function doGetParent(array $context)
{
// line 1
return $this->loadTemplate($this->extensions['App\Twig\Extension\WebsiteExtension']->getBaseLayout(), "contact/default.html.twig", 1);
}
protected function doDisplay(array $context, array $blocks = [])
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "contact/default.html.twig"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "contact/default.html.twig"));
// line 3
if (( !(isset($context["editmode"]) || array_key_exists("editmode", $context) ? $context["editmode"] : (function () { throw new RuntimeError('Variable "editmode" does not exist.', 3, $this->source); })()) && array_key_exists("recaptcha", $context))) {
// line 4
if (((isset($context["recaptcha"]) || array_key_exists("recaptcha", $context) ? $context["recaptcha"] : (function () { throw new RuntimeError('Variable "recaptcha" does not exist.', 4, $this->source); })()) == 2)) {
// line 5
twig_get_attribute($this->env, $this->source, $this->env->getFunction('pimcore_head_script')->getCallable()(), "appendFile", [0 => "https://www.google.com/recaptcha/api.js"], "method", false, false, true, 5);
} elseif (( // line 6
(isset($context["recaptcha"]) || array_key_exists("recaptcha", $context) ? $context["recaptcha"] : (function () { throw new RuntimeError('Variable "recaptcha" does not exist.', 6, $this->source); })()) == 3)) {
// line 7
twig_get_attribute($this->env, $this->source, $this->env->getFunction('pimcore_head_script')->getCallable()(), "appendFile", [0 => ("https://www.google.com/recaptcha/api.js?render=" . (isset($context["recaptchaPublic"]) || array_key_exists("recaptchaPublic", $context) ? $context["recaptchaPublic"] : (function () { throw new RuntimeError('Variable "recaptchaPublic" does not exist.', 7, $this->source); })()))], "method", false, false, true, 7);
}
}
// line 1
$this->getParent($context)->display($context, array_merge($this->blocks, $blocks));
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
}
// line 11
public function block_content($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "content"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "content"));
// line 12
echo " <div class=\"container\">
<div class=\"row\">
<div class=\"col-12\">
<h1>";
// line 15
echo $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context, "input", "title", ["placeholder" => "Headline"]);
echo "</h1>
";
// line 17
echo $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context, "wysiwyg", "content_text", ["placeholder" => "Place content here"]);
echo "
</div>
</div>
";
// line 22
echo " ";
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 22, $this->source); })()), "flashes", [0 => [0 => "success", 1 => "warning"]], "method", false, false, true, 22));
foreach ($context['_seq'] as $context["label"] => $context["messages"]) {
// line 23
echo " ";
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable($context["messages"]);
foreach ($context['_seq'] as $context["_key"] => $context["message"]) {
// line 24
echo " <div id=\"messages\" class=\"flash-";
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed($context["label"], 24, $this->source), "html", null, true);
echo "\">
";
// line 25
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed($context["message"], 25, $this->source), "html", null, true);
echo "
</div>
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['message'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 28
echo " ";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['label'], $context['messages'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 29
echo " ";
if ( !(isset($context["success"]) || array_key_exists("success", $context) ? $context["success"] : (function () { throw new RuntimeError('Variable "success" does not exist.', 29, $this->source); })())) {
// line 30
echo " <section id=\"contactcontainer mb-5\">
<div class=\"bg-secondary rounded-2 p-3\">
";
// line 33
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');
echo "
<div class=\"row mb-3\">
<div class=\"col-6\">
";
// line 37
echo " ";
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", false, false, true, 37), 37, $this->source), 'label', ["label_attr" => ["class" => "form-label"]]);
echo "
";
// line 38
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", false, false, true, 38), 38, $this->source), 'widget', ["attr" => ["class" => "form-control", "placeholder" => twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["form"]) || array_key_exists("form", $context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.', 38, $this->source); })()), "firstname", [], "any", false, false, true, 38), "vars", [], "any", false, false, true, 38), "label", [], "any", false, false, true, 38)]]);
echo "
<div id=\"firstnameHelp\" class=\"form-text\">";
// line 40
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", false, false, true, 40), 40, $this->source), 'help');
echo "</div>
<div class=\"form-error\">
";
// line 43
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", false, false, true, 43), 43, $this->source), 'errors');
echo "
</div>
</div>
<div class=\"col-6\">
";
// line 48
echo " ";
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, (isset($context["form"]) || array_key_exists("form", $context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.', 48, $this->source); })()), "lastname", [], "any", false, false, true, 48), 48, $this->source), 'label', ["label_attr" => ["class" => "form-label"]]);
echo "
";
// line 49
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", false, false, true, 49), 49, $this->source), 'widget', ["attr" => ["class" => "form-control", "placeholder" => twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["form"]) || array_key_exists("form", $context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.', 49, $this->source); })()), "lastname", [], "any", false, false, true, 49), "vars", [], "any", false, false, true, 49), "label", [], "any", false, false, true, 49)]]);
echo "
<div id=\"lastnameHelp\" class=\"form-text\">";
// line 51
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, (isset($context["form"]) || array_key_exists("form", $context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.', 51, $this->source); })()), "lastname", [], "any", false, false, true, 51), 51, $this->source), 'help');
echo "</div>
<div class=\"form-error\">
";
// line 54
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", false, false, true, 54), 54, $this->source), 'errors');
echo "
</div>
</div>
</div>
<div class=\"row mb-3\">
<div class=\"col-6\">
";
// line 61
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, (isset($context["form"]) || array_key_exists("form", $context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.', 61, $this->source); })()), "email", [], "any", false, false, true, 61), 61, $this->source), 'label', ["label_attr" => ["class" => "form-label"]]);
echo "
";
// line 62
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", false, false, true, 62), 62, $this->source), 'widget', ["attr" => ["class" => "form-control", "placeholder" => twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["form"]) || array_key_exists("form", $context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.', 62, $this->source); })()), "email", [], "any", false, false, true, 62), "vars", [], "any", false, false, true, 62), "label", [], "any", false, false, true, 62)]]);
echo "
<div id=\"emailHelp\" class=\"form-text\">";
// line 64
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", false, false, true, 64), 64, $this->source), 'help');
echo "</div>
<div class=\"form-error\">
";
// line 67
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", false, false, true, 67), 67, $this->source), 'errors');
echo "
</div>
</div>
<div class=\"col-6\">
";
// line 72
echo " ";
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", false, false, true, 72), 72, $this->source), 'label', ["label_attr" => ["class" => "form-label"]]);
echo "
";
// line 73
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, (isset($context["form"]) || array_key_exists("form", $context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.', 73, $this->source); })()), "country", [], "any", false, false, true, 73), 73, $this->source), 'widget', ["attr" => ["class" => "form-control", "placeholder" => twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["form"]) || array_key_exists("form", $context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.', 73, $this->source); })()), "country", [], "any", false, false, true, 73), "vars", [], "any", false, false, true, 73), "label", [], "any", false, false, true, 73)]]);
echo "
<div id=\"countryHelp\" class=\"form-text\">";
// line 75
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, (isset($context["form"]) || array_key_exists("form", $context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.', 75, $this->source); })()), "country", [], "any", false, false, true, 75), 75, $this->source), 'help');
echo "</div>
<div class=\"form-error\">
";
// line 78
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, (isset($context["form"]) || array_key_exists("form", $context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.', 78, $this->source); })()), "country", [], "any", false, false, true, 78), 78, $this->source), 'errors');
echo "
</div>
</div>
<div class=\"col-6\">
";
// line 83
echo " ";
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", false, false, true, 83), 83, $this->source), 'label', ["label_attr" => ["class" => "form-label"]]);
echo "
";
// line 84
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", false, false, true, 84), 84, $this->source), 'widget', ["attr" => ["class" => "form-control", "placeholder" => twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["form"]) || array_key_exists("form", $context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.', 84, $this->source); })()), "about", [], "any", false, false, true, 84), "vars", [], "any", false, false, true, 84), "label", [], "any", false, false, true, 84)]]);
echo "
<div id=\"aboutHelp\" class=\"form-text\">";
// line 86
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", false, false, true, 86), 86, $this->source), 'help');
echo "</div>
<div class=\"form-error\">
";
// line 89
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", false, false, true, 89), 89, $this->source), 'errors');
echo "
</div>
</div>
</div>
<div class=\"col-12\">
";
// line 97
echo " ";
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", false, false, true, 97), 97, $this->source), 'label', ["label_attr" => ["class" => "form-label"]]);
echo "
";
// line 98
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", false, false, true, 98), 98, $this->source), 'widget', ["attr" => ["class" => "form-control"]]);
echo "
<div id=\"countryHelp\" class=\"form-text\">";
// line 100
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, (isset($context["form"]) || array_key_exists("form", $context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.', 100, $this->source); })()), "message", [], "any", false, false, true, 100), 100, $this->source), 'help');
echo "</div>
<div class=\"form-error\">
";
// line 103
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", false, false, true, 103), 103, $this->source), 'errors');
echo "
</div>
</div>
";
// line 107
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))) {
// line 108
echo " ";
if (((isset($context["recaptcha"]) || array_key_exists("recaptcha", $context) ? $context["recaptcha"] : (function () { throw new RuntimeError('Variable "recaptcha" does not exist.', 108, $this->source); })()) == 2)) {
// line 109
echo " <div class=\"form-group\">
<div class=\"g-recaptcha\" data-sitekey=\"";
// line 110
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", null, true);
echo "\"></div>
</div>
";
} elseif (( // line 112
(isset($context["recaptcha"]) || array_key_exists("recaptcha", $context) ? $context["recaptcha"] : (function () { throw new RuntimeError('Variable "recaptcha" does not exist.', 112, $this->source); })()) == 3)) {
// line 113
echo " <input type=\"hidden\" name=\"gtoken\" id=\"gtoken\">
";
}
// line 115
echo " ";
}
// line 116
echo "
";
// line 118
echo " <div class=\"col-12 form-check\">
";
// line 119
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", false, false, true, 119), 119, $this->source), 'widget', ["attr" => ["class" => "form-check-input"]]);
echo "
";
// line 120
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, (isset($context["form"]) || array_key_exists("form", $context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.', 120, $this->source); })()), "conditions", [], "any", false, false, true, 120), 120, $this->source), 'label', ["label_attr" => ["class" => "form-check-label"]]);
echo "
<a href=\"";
// line 122
if ($this->extensions['App\Twig\Extension\CheckwebsiteSettingExtension']->getCheckWebsitesetting("privacy_document", "document")) {
echo twig_escape_filter($this->env, $this->extensions['MultilingualBundle\Twig\Extension\InotherlangExtension']->getInotherlang("LocalizedDocument", $this->extensions['Pimcore\Twig\Extension\WebsiteConfigExtension']->getWebsiteConfig("privacy_document")), "html", null, true);
}
echo "\"
target=\"_blank\">
";
// line 124
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Ik ga akkoord met privacy"), "html", null, true);
echo "
</a>
<div id=\"conditionsHelp\" class=\"form-text\">";
// line 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.', 127, $this->source); })()), "conditions", [], "any", false, false, true, 127), 127, $this->source), 'help');
echo "</div>
<div class=\"form-error\">
";
// line 130
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, (isset($context["form"]) || array_key_exists("form", $context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.', 130, $this->source); })()), "conditions", [], "any", false, false, true, 130), 130, $this->source), 'errors');
echo "
</div>
</div>
";
// line 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.', 134, $this->source); })()), "submit", [], "any", false, false, true, 134), 134, $this->source), 'row', ["attr" => ["class" => "btn btn-primary mt-3"]]);
echo "
";
// line 136
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');
echo "
</div>
</section>
";
}
// line 142
echo " </div>
";
// line 144
if (twig_get_attribute($this->env, $this->source, ($context["document"] ?? null), "property", [0 => "googlemaps"], "method", true, true, true, 144)) {
// line 145
echo " <div class=\"container-fluid mt-5 mb-n5 p-0\">
<div class=\"row\">
<div class=\"col-12\">
<div class=\"embed-container maps mapgrey\">
<iframe src=\"";
// line 149
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", [0 => "googlemaps"], "method", false, false, true, 149), 149, $this->source), "html", null, true);
echo "\" width=\"100%\" height=\"650\" frameborder=\"0\"
style=\"border:0\" allowfullscreen></iframe>
</div>
</div>
</div>
</div>
";
}
// line 156
echo "
";
// line 157
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->source, twig_get_attribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 157, $this->source); })()), "flashes", [0 => [0 => "success"]], "method", false, false, true, 157), "success", [], "any", false, false, true, 157)) || twig_test_empty(twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 157, $this->source); })()), "flashes", [0 => [0 => "warning"]], "method", false, false, true, 157), "warning", [], "any", false, false, true, 157))))) {
// line 158
echo " <script>
function getReCaptcha() {
grecaptcha.ready(function () {
grecaptcha.execute('";
// line 161
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", null, true);
echo "', {action: 'contact'}).then(function (token) {
var recaptchaResponse = document.getElementById('gtoken');
recaptchaResponse.value = token;
});
});
}
getReCaptcha(); // This is the initial call
setInterval(function () {
getReCaptcha();
}, 60000);
</script>
";
}
// line 174
echo "
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
public function getTemplateName()
{
return "contact/default.html.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
return array ( 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,);
}
public function getSourceContext()
{
return new Source("{% extends base_layout() %}
{% if not editmode and recaptcha is defined %}
{% if recaptcha == 2 %}
{% do pimcore_head_script().appendFile('https://www.google.com/recaptcha/api.js') %}
{% elseif recaptcha == 3 %}
{% do pimcore_head_script().appendFile('https://www.google.com/recaptcha/api.js?render=' ~ recaptchaPublic) %}
{% endif %}
{% endif %}
{% block content %}
<div class=\"container\">
<div class=\"row\">
<div class=\"col-12\">
<h1>{{ pimcore_input('title', {'placeholder':'Headline'}) }}</h1>
{{ pimcore_wysiwyg('content_text', {'placeholder':'Place content here'}) }}
</div>
</div>
{# read and display several types of flash messages #}
{% for label, messages in app.flashes(['success', 'warning']) %}
{% for message in messages %}
<div id=\"messages\" class=\"flash-{{ label }}\">
{{ message }}
</div>
{% endfor %}
{% endfor %}
{% if not success %}
<section id=\"contactcontainer mb-5\">
<div class=\"bg-secondary rounded-2 p-3\">
{{ form_start(form) }}
<div class=\"row mb-3\">
<div class=\"col-6\">
{# {{ form_row(form.firstname) }} #}
{{ form_label(form.firstname, null, {'label_attr': {'class': 'form-label'}}) }}
{{ form_widget(form.firstname, {'attr': {'class': 'form-control', 'placeholder': form.firstname.vars.label}}) }}
<div id=\"firstnameHelp\" class=\"form-text\">{{ form_help(form.firstname) }}</div>
<div class=\"form-error\">
{{ form_errors(form.firstname) }}
</div>
</div>
<div class=\"col-6\">
{# {{ form_row(form.lastname) }} #}
{{ form_label(form.lastname, null, {'label_attr': {'class': 'form-label'}}) }}
{{ form_widget(form.lastname, {'attr': {'class': 'form-control', 'placeholder': form.lastname.vars.label }}) }}
<div id=\"lastnameHelp\" class=\"form-text\">{{ form_help(form.lastname) }}</div>
<div class=\"form-error\">
{{ form_errors(form.lastname) }}
</div>
</div>
</div>
<div class=\"row mb-3\">
<div class=\"col-6\">
{{ form_label(form.email, null, {'label_attr': {'class': 'form-label'}}) }}
{{ form_widget(form.email, {'attr': {'class': 'form-control', 'placeholder': form.email.vars.label}}) }}
<div id=\"emailHelp\" class=\"form-text\">{{ form_help(form.email) }}</div>
<div class=\"form-error\">
{{ form_errors(form.email) }}
</div>
</div>
<div class=\"col-6\">
{# {{ form_row(form.country) }} #}
{{ form_label(form.country, null, {'label_attr': {'class': 'form-label'}}) }}
{{ form_widget(form.country, {'attr': {'class': 'form-control', 'placeholder': form.country.vars.label}}) }}
<div id=\"countryHelp\" class=\"form-text\">{{ form_help(form.country) }}</div>
<div class=\"form-error\">
{{ form_errors(form.country) }}
</div>
</div>
<div class=\"col-6\">
{# {{ form_row(form.country) }} #}
{{ form_label(form.about, null, {'label_attr': {'class': 'form-label'}}) }}
{{ form_widget(form.about, {'attr': {'class': 'form-control', 'placeholder': form.about.vars.label}}) }}
<div id=\"aboutHelp\" class=\"form-text\">{{ form_help(form.about) }}</div>
<div class=\"form-error\">
{{ form_errors(form.about) }}
</div>
</div>
</div>
<div class=\"col-12\">
{# {{ form_row(form.message) }} #}
{{ form_label(form.message, null, {'label_attr': {'class': 'form-label'}}) }}
{{ form_widget(form.message, {'attr': {'class': 'form-control'}}) }}
<div id=\"countryHelp\" class=\"form-text\">{{ form_help(form.message) }}</div>
<div class=\"form-error\">
{{ form_errors(form.message) }}
</div>
</div>
{% if not editmode and recaptcha is defined %}
{% if recaptcha == 2 %}
<div class=\"form-group\">
<div class=\"g-recaptcha\" data-sitekey=\"{{ recaptchaPublic }}\"></div>
</div>
{% elseif recaptcha == 3 %}
<input type=\"hidden\" name=\"gtoken\" id=\"gtoken\">
{% endif %}
{% endif %}
{# {{ form_row(form.conditions) }} #}
<div class=\"col-12 form-check\">
{{ form_widget(form.conditions, {'attr': {'class': 'form-check-input'}}) }}
{{ form_label(form.conditions, null, {'label_attr': {'class': 'form-check-label'}}) }}
<a href=\"{% if check_websitesetting('privacy_document', 'document') %}{{ inotherlang('LocalizedDocument', pimcore_website_config('privacy_document')) }}{% endif %}\"
target=\"_blank\">
{{ 'Ik ga akkoord met privacy'|trans }}
</a>
<div id=\"conditionsHelp\" class=\"form-text\">{{ form_help(form.conditions) }}</div>
<div class=\"form-error\">
{{ form_errors(form.conditions) }}
</div>
</div>
{{ form_row(form.submit, {'attr': {'class': 'btn btn-primary mt-3'}}) }}
{{ form_end(form) }}
</div>
</section>
{% endif %}
</div>
{% if document.property('googlemaps') is defined %}
<div class=\"container-fluid mt-5 mb-n5 p-0\">
<div class=\"row\">
<div class=\"col-12\">
<div class=\"embed-container maps mapgrey\">
<iframe src=\"{{ document.property('googlemaps') }}\" width=\"100%\" height=\"650\" frameborder=\"0\"
style=\"border:0\" allowfullscreen></iframe>
</div>
</div>
</div>
</div>
{% endif %}
{% if not editmode and recaptcha == 3 and (app.flashes(['success']).success is empty or app.flashes(['warning']).warning is empty) %}
<script>
function getReCaptcha() {
grecaptcha.ready(function () {
grecaptcha.execute('{{ recaptchaPublic }}', {action: 'contact'}).then(function (token) {
var recaptchaResponse = document.getElementById('gtoken');
recaptchaResponse.value = token;
});
});
}
getReCaptcha(); // This is the initial call
setInterval(function () {
getReCaptcha();
}, 60000);
</script>
{% endif %}
{% endblock %}
{# read and display just one flash message type #}
{# {% for message in app.flashes('notice') %} #}
{# <div class=\"flash-notice\"> #}
{# {{ message }} #}
{# </div> #}
{# {% endfor %} #}
{# read and display all flash messages #}
{# {% for label, messages in app.flashes %} #}
{# {% for message in messages %} #}
{# <div class=\"flash-{{ label }}\"> #}
{# {{ message }} #}
{# </div> #}
{# {% endfor %} #}
{# {% endfor %} #}", "contact/default.html.twig", "/var/www/clients/client2/web45/web/pc/templates/contact/default.html.twig");
}
public function checkSecurity()
{
static $tags = array("if" => 3, "do" => 5, "for" => 22);
static $filters = array("escape" => 24, "trans" => 124);
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);
try {
$this->sandbox->checkSecurity(
['if', 'do', 'for'],
['escape', 'trans'],
['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']
);
} catch (SecurityError $e) {
$e->setSourceContext($this->source);
if ($e instanceof SecurityNotAllowedTagError && isset($tags[$e->getTagName()])) {
$e->setTemplateLine($tags[$e->getTagName()]);
} elseif ($e instanceof SecurityNotAllowedFilterError && isset($filters[$e->getFilterName()])) {
$e->setTemplateLine($filters[$e->getFilterName()]);
} elseif ($e instanceof SecurityNotAllowedFunctionError && isset($functions[$e->getFunctionName()])) {
$e->setTemplateLine($functions[$e->getFunctionName()]);
}
throw $e;
}
}
}