<?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;
/* default/concours.html.twig */
class __TwigTemplate_b3f5a83316cbdd407854ffa97f189dc6 extends Template
{
private $source;
private $macros = [];
public function __construct(Environment $env)
{
parent::__construct($env);
$this->source = $this->getSourceContext();
$this->blocks = [
'content' => [$this, 'block_content'],
'inlinescripts' => [$this, 'block_inlinescripts'],
];
}
protected function doGetParent(array $context)
{
// line 1
return "layout.html.twig";
}
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", "default/concours.html.twig"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "default/concours.html.twig"));
$this->parent = $this->loadTemplate("layout.html.twig", "default/concours.html.twig", 1);
$this->parent->display($context, array_merge($this->blocks, $blocks));
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
}
// line 8
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 9
echo "
";
// line 10
echo $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context, "areablock", "myAreablock");
echo "
";
// line 11
echo $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context, "areablock", "contentTop");
echo "
<!-- #main -->
<main id=\"main\" role=\"main\">
";
// line 16
if ((isset($context["editmode"]) || array_key_exists("editmode", $context) ? $context["editmode"] : (function () { throw new RuntimeError('Variable "editmode" does not exist.', 16, $this->source); })())) {
// line 17
echo " <div class=\"editmode-img\">
<div class=\"uk-margin-xlarge-top\">
";
// line 19
echo $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context, "image", "facebook-image");
echo "
";
// line 20
echo $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context, "image", "instagram-image");
echo "
</div>
";
// line 23
echo $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context, "image", "reseaux-forme");
echo "
</br>
<div>Type de heading pour le titre ?</div>
";
// line 27
echo $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context, "select", "content-heading", ["store" => [0 => [0 => "span", 1 => "span"], 1 => [0 => "h1", 1 => "Heading 1"], 2 => [0 => "h2", 1 => "Heading 2"], 3 => [0 => "h3", 1 => "Heading 3"], 4 => [0 => "h4", 1 => "Heading 4"], 5 => [0 => "h5", 1 => "Heading 5"], 6 => [0 => "h6", 1 => "Heading 6"]], "defaultValue" => "h2"]);
// line 38
echo "
<div><strong>Style</strong> du heading pour le titre ?</div>
";
// line 40
echo $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context, "select", "content-heading-style", ["store" => [0 => [0 => "h1", 1 => "Heading 1"], 1 => [0 => "h2", 1 => "Heading 2"], 2 => [0 => "h3", 1 => "Heading 3"], 3 => [0 => "h4", 1 => "Heading 4"], 4 => [0 => "h5", 1 => "Heading 5"], 5 => [0 => "h6", 1 => "Heading 6"]], "defaultValue" => "h2"]);
// line 50
echo "
<h2 class=\"\">";
// line 53
echo $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context, "textarea", "content-title", ["nl2br" => true]);
echo "</h2>
<div>Type de heading pour le sous-titre ?</div>
";
// line 56
echo $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context, "select", "subtitle-heading", ["store" => [0 => [0 => "span", 1 => "span"], 1 => [0 => "h1", 1 => "Heading 1"], 2 => [0 => "h2", 1 => "Heading 2"], 3 => [0 => "h3", 1 => "Heading 3"], 4 => [0 => "h4", 1 => "Heading 4"], 5 => [0 => "h5", 1 => "Heading 5"], 6 => [0 => "h6", 1 => "Heading 6"]], "defaultValue" => "h2"]);
// line 67
echo "
<div><strong>Style</strong> du heading pour le sous-titre ?</div>
";
// line 69
echo $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context, "select", "subtitle-style", ["store" => [0 => [0 => "h1", 1 => "Heading 1"], 1 => [0 => "h2", 1 => "Heading 2"], 2 => [0 => "h3", 1 => "Heading 3"], 3 => [0 => "h4", 1 => "Heading 4"], 4 => [0 => "h5", 1 => "Heading 5"], 5 => [0 => "h6", 1 => "Heading 6"]], "defaultValue" => "h2"]);
// line 79
echo "
<h2 class=\"\">";
// line 80
echo $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context, "textarea", "content-subtitle", ["nl2br" => true]);
echo "</h2>
";
// line 82
echo $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context, "image", "forme-image");
echo "
<div>
";
// line 84
echo $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context, "textarea", "content");
echo "
";
// line 85
echo $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context, "image", "logo-image");
echo "
</div>
";
// line 87
echo $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context, "link", "link-logo");
echo "
";
// line 88
echo $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context, "image", "logo-right");
echo "
</div>
";
// line 90
echo $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context, "image", "background-image");
echo "
";
} else {
// line 93
echo " <div class=\"div-fond-concours\" uk-height-match=\"target: changed\">
<div class=\"div-fond-concours-cropped uk-cover-container apk-height-match\" >
";
// line 95
echo twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context, "image", "background-image"), "thumbnail", [0 => "concours-thumb"], "method", false, false, false, 95), "html", [0 => ["imgAttributes" => ["uk-cover" => null]]], "method", false, false, false, 95);
echo "
</div>
<div class=\"div-fond-blanc\" uk-grid>
<div class=\"uk-width-1-3@m apk-height-match\">
<div class=\"div-text-concours\">
<div class=\"polygone uk-visible@m\">
";
// line 102
echo $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context, "image", "reseaux-forme");
echo "
<div class=\"reseaux uk-flex\">
";
// line 105
if (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.', 105, $this->source); })()), "property", [0 => "facebookUrl"], "method", false, false, false, 105)) {
// line 106
echo " <a href=\"";
echo twig_escape_filter($this->env, 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.', 106, $this->source); })()), "property", [0 => "facebookUrl"], "method", false, false, false, 106), "html", null, true);
echo "\" target=\"_blank\"><img
src=\"";
// line 107
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context, "image", "facebook-image"), "thumbnail", [0 => "reseaux"], "method", false, false, false, 107), "html", null, true);
echo "\"></a>
";
}
// line 109
echo " ";
if (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.', 109, $this->source); })()), "property", [0 => "instagramUrl"], "method", false, false, false, 109)) {
// line 110
echo " <a href=\"";
echo twig_escape_filter($this->env, 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.', 110, $this->source); })()), "property", [0 => "instagramUrl"], "method", false, false, false, 110), "html", null, true);
echo "\" target=\"_blank\"><img
src=\"";
// line 111
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context, "image", "instagram-image"), "thumbnail", [0 => "reseaux"], "method", false, false, false, 111), "html", null, true);
echo "\"></a>
";
}
// line 113
echo " </div>
</div>
<div class=\"uk-margin-xlarge-top\">
";
// line 117
if ( !twig_get_attribute($this->env, $this->source, $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context, "textarea", "content-title"), "isEmpty", [], "any", false, false, false, 117)) {
// line 118
echo " ";
if ((twig_get_attribute($this->env, $this->source, $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context, "select", "content-heading"), "data", [], "any", false, false, false, 118) == "span")) {
// line 119
echo "
<span class=\"uk-";
// line 120
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context, "select", "content-heading-style"), "getData", [], "method", false, false, false, 120), "html", null, true);
echo "\">";
echo $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context, "textarea", "content-title", ["nl2br" => true]);
echo "</span>
";
} else {
// line 123
echo " ";
$context["content_heading"] = twig_get_attribute($this->env, $this->source, $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context, "select", "content-heading"), "getData", [], "method", false, false, false, 123);
// line 124
echo " <";
echo twig_escape_filter($this->env, (isset($context["content_heading"]) || array_key_exists("content_heading", $context) ? $context["content_heading"] : (function () { throw new RuntimeError('Variable "content_heading" does not exist.', 124, $this->source); })()), "html", null, true);
echo " class=\"uk-";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context, "select", "content-heading-style"), "getData", [], "method", false, false, false, 124), "html", null, true);
echo "
\">
";
// line 126
echo $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context, "textarea", "content-title", ["nl2br" => true]);
// line 127
echo "
</";
// line 128
echo twig_escape_filter($this->env, (isset($context["content_heading"]) || array_key_exists("content_heading", $context) ? $context["content_heading"] : (function () { throw new RuntimeError('Variable "content_heading" does not exist.', 128, $this->source); })()), "html", null, true);
echo ">
";
}
// line 130
echo " ";
}
// line 131
echo " </div>
<p class=\"content-textarea-concours\">";
// line 133
echo $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context, "textarea", "content");
echo "</p>
<div class=\"forme-concours\">";
// line 135
echo $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context, "image", "forme-image");
echo "</div>
</div>
</div>
<div class=\"uk-width-1-3@m div-form\">
<div>
<div class=\"uk-text-center\">
";
// line 142
echo $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context, "image", "logo-image", ["thumbnail" => "logo-concours-thumb"]);
echo "
</div>
";
// line 145
if ( !twig_get_attribute($this->env, $this->source, $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context, "textarea", "content-subtitle"), "isEmpty", [], "any", false, false, false, 145)) {
// line 146
echo " ";
if ((twig_get_attribute($this->env, $this->source, $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context, "select", "subtitle-heading"), "data", [], "any", false, false, false, 146) == "span")) {
// line 147
echo "
<span class=\"uk-";
// line 148
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context, "select", "subtitle-style"), "getData", [], "method", false, false, false, 148), "html", null, true);
echo "\">";
echo $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context, "textarea", "content-subtitle", ["nl2br" => true]);
echo "</span>
";
} else {
// line 151
echo " ";
$context["content_heading"] = twig_get_attribute($this->env, $this->source, $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context, "select", "subtitle-heading"), "getData", [], "method", false, false, false, 151);
// line 152
echo " <";
echo twig_escape_filter($this->env, (isset($context["content_heading"]) || array_key_exists("content_heading", $context) ? $context["content_heading"] : (function () { throw new RuntimeError('Variable "content_heading" does not exist.', 152, $this->source); })()), "html", null, true);
echo " class=\"uk-";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context, "select", "subtitle-style"), "getData", [], "method", false, false, false, 152), "html", null, true);
echo "\">
";
// line 153
echo $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context, "textarea", "content-subtitle", ["nl2br" => true]);
echo "
</";
// line 154
echo twig_escape_filter($this->env, (isset($context["content_heading"]) || array_key_exists("content_heading", $context) ? $context["content_heading"] : (function () { throw new RuntimeError('Variable "content_heading" does not exist.', 154, $this->source); })()), "html", null, true);
echo ">
";
}
// line 156
echo " ";
}
// line 157
echo "
";
// line 159
if (((isset($context["formStatus"]) || array_key_exists("formStatus", $context) ? $context["formStatus"] : (function () { throw new RuntimeError('Variable "formStatus" does not exist.', 159, $this->source); })()) == "robot")) {
// line 160
echo " <div class=\"uk-alert-warning\" uk-alert>
<p>";
// line 161
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Une erreur recaptcha est survenue, merci de réessayer."), "html", null, true);
echo "</p>
</div>
";
} elseif (( // line 163
(isset($context["formStatus"]) || array_key_exists("formStatus", $context) ? $context["formStatus"] : (function () { throw new RuntimeError('Variable "formStatus" does not exist.', 163, $this->source); })()) == "invalid")) {
// line 164
echo " <div class=\"uk-alert-warning\" uk-alert>
<p>";
// line 165
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Vous n'avez pas remplis tout les champs, merci de réessayer."), "html", null, true);
echo "</p>
</div>
";
} elseif (( // line 167
(isset($context["formStatus"]) || array_key_exists("formStatus", $context) ? $context["formStatus"] : (function () { throw new RuntimeError('Variable "formStatus" does not exist.', 167, $this->source); })()) == "alreadyPlayed")) {
// line 168
echo " <div class=\"uk-alert-warning\" uk-alert>
<p>";
// line 169
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Vous avez déjà participé à ce concours"), "html", null, true);
echo "</p>
</div>
";
} elseif (( // line 171
(isset($context["formStatus"]) || array_key_exists("formStatus", $context) ? $context["formStatus"] : (function () { throw new RuntimeError('Variable "formStatus" does not exist.', 171, $this->source); })()) == "not-filled")) {
// line 172
echo " <div class=\"uk-alert-warning\" uk-alert>
<p>";
// line 173
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Veuillez remplir tout les champs"), "html", null, true);
echo "</p>
</div>
";
}
// line 176
echo "
";
// line 177
if (((isset($context["formStatus"]) || array_key_exists("formStatus", $context) ? $context["formStatus"] : (function () { throw new RuntimeError('Variable "formStatus" does not exist.', 177, $this->source); })()) != "success")) {
// line 178
echo "
";
// line 179
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->renderBlock((isset($context["form"]) || array_key_exists("form", $context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.', 179, $this->source); })()), 'form_start', ["attr" => ["id" => "contact-form", "enctype" => "multipart/form-data"]]);
echo "
<div class=\"uk-grid-small form-concours-grid\" uk-grid>
<div class=\"uk-width-1-1\">
<label class=\"uk-form-label required apk-label-is-linked-to-field\"
for=\"form-stacked-text\"> ";
// line 184
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(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.', 184, $this->source); })()), "choixmultiple", [], "any", false, false, false, 184), 'label');
echo " </label>
";
// line 185
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(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.', 185, $this->source); })()), "choixmultiple", [], "any", false, false, false, 185), 'widget');
echo "
</div>
<div class=\"uk-width-1-1\">
<label class=\"uk-form-label\"
for=\"form-stacked-text\"> ";
// line 189
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(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.', 189, $this->source); })()), "message", [], "any", false, false, false, 189), 'label');
echo " </label>
";
// line 190
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(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.', 190, $this->source); })()), "message", [], "any", false, false, false, 190), 'widget');
echo "
</div>
<div class=\"uk-width-1-2\">
<label class=\"uk-form-label\"
for=\"form-stacked-text\"> ";
// line 194
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(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.', 194, $this->source); })()), "lastname", [], "any", false, false, false, 194), 'label');
echo " </label>
";
// line 195
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(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.', 195, $this->source); })()), "lastname", [], "any", false, false, false, 195), 'widget');
echo "
</div>
<div class=\"uk-width-1-2\">
<label class=\"uk-form-label\"
for=\"form-stacked-text\"> ";
// line 199
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(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.', 199, $this->source); })()), "firstname", [], "any", false, false, false, 199), 'label');
echo " </label>
";
// line 200
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(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.', 200, $this->source); })()), "firstname", [], "any", false, false, false, 200), 'widget');
echo "
</div>
<div class=\"uk-width-1-1\">
<label class=\"uk-form-label\" for=\"form-stacked-text\"> ";
// line 203
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(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.', 203, $this->source); })()), "email", [], "any", false, false, false, 203), 'label');
echo " </label>
";
// line 204
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(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.', 204, $this->source); })()), "email", [], "any", false, false, false, 204), 'widget');
echo "
</div>
<div class=\"uk-width-1-1\">
<label class=\"uk-form-label\" for=\"form-stacked-text\"> ";
// line 207
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(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.', 207, $this->source); })()), "preuvePaiement", [], "any", false, false, false, 207), 'label');
echo " </label>
";
// line 208
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(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.', 208, $this->source); })()), "preuvePaiement", [], "any", false, false, false, 208), 'widget');
echo "
</div>
<div>
";
// line 211
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(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.', 211, $this->source); })()), "gdpr", [], "any", false, false, false, 211), 'widget');
echo "
<label for=\"contact_form_gdpr\" id=\"accept-condition\" class=\"uk-padding-remove\">
";
// line 213
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("J’accepte la politique de confidentialité, le traitement de mes données par Magnecaps"), "html", null, true);
echo "
</label>
</div>
<div class=\"uk-margin-small-top uk-margin-small-bottom\">
";
// line 217
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(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.', 217, $this->source); })()), "reglement", [], "any", false, false, false, 217), 'widget');
echo "
<label for=\"contact_form_reglement\" id=\"accept-reglement\" class=\"uk-padding-remove\">
";
// line 219
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("J’accepte le règlement de ce concours"), "html", null, true);
echo "
<a href=\"#modal-reglement\" uk-toggle>
<img uk-svg width=\"20\" height=\"20\" src=\"/static/img/pictos/information.svg\" alt=\"reglement\">
</a>
</label>
</div>
<div class=\"div-submit\">
";
// line 226
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(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.', 226, $this->source); })()), "recaptcha", [], "any", false, false, false, 226), 'widget');
echo "
";
// line 227
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(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.', 227, $this->source); })()), "submit", [], "any", false, false, false, 227), 'widget');
echo "
</div>
</div>
";
// line 231
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->renderBlock((isset($context["form"]) || array_key_exists("form", $context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.', 231, $this->source); })()), 'form_end');
echo "
";
}
// line 234
echo " </div>
</div>
<div class=\"uk-width-1-3@m\">
";
// line 237
echo $this->extensions['App\Twig\Extension\Apik']->getLanguageSwitcherHtml((isset($context["document"]) || array_key_exists("document", $context) ? $context["document"] : (function () { throw new RuntimeError('Variable "document" does not exist.', 237, $this->source); })()), "dropdown", "code");
echo "
<div class=\"logo-right\">
<a href=\"";
// line 240
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context, "link", "link-logo"), "href", [], "any", false, false, false, 240), "html", null, true);
echo "\" target=\"_blank\"><img
src=\"";
// line 241
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context, "image", "logo-right"), "thumbnail", [0 => ""], "method", false, false, false, 241), "html", null, true);
echo "\"></a>
</div>
</div>
";
}
// line 245
echo " ";
if ((isset($context["editmode"]) || array_key_exists("editmode", $context) ? $context["editmode"] : (function () { throw new RuntimeError('Variable "editmode" does not exist.', 245, $this->source); })())) {
// line 246
echo " <div class=\"uk-alert uk-alert-primary\" uk-alert>
<h2 class=\"uk-h2\">Modal du réglement du concours</h2>
";
// line 248
echo $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context, "wysiwyg", "reglement");
echo "
</div>
";
} else {
// line 251
echo "
<div id=\"modal-reglement\" class=\"uk-flex-top\" uk-modal>
<div class=\"uk-modal-dialog uk-margin-auto-vertical\">
<button class=\"uk-modal-close-full uk-close-large\" type=\"button\" uk-close></button>
<div class=\"uk-modal-body\" uk-overflow-auto>
";
// line 256
echo $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context, "wysiwyg", "reglement");
echo "
</div>
<div class=\"uk-modal-footer uk-text-right\">
<button class=\"uk-button uk-button-default uk-modal-close\" type=\"button\">";
// line 259
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Fermer"), "html", null, true);
echo "</button>
</div>
</div>
</div>
";
}
// line 264
echo "
<div class=\"area-concours\">";
// line 265
echo $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context, "areablock", "contentBottom");
echo "</div>
</main><!-- end #main -->
";
// line 268
twig_get_attribute($this->env, $this->source, call_user_func_array($this->env->getFunction('pimcore_head_link')->getCallable(), []), "appendStylesheet", [0 => $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("/static/framework/dropify/css/dropify.min.css")], "method", false, false, false, 268);
// line 269
echo " ";
twig_get_attribute($this->env, $this->source, call_user_func_array($this->env->getFunction('pimcore_head_script')->getCallable(), []), "appendFile", [0 => $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("/static/framework/heic2any/heic2any.js")], "method", false, false, false, 269);
// line 270
echo " ";
twig_get_attribute($this->env, $this->source, call_user_func_array($this->env->getFunction('pimcore_head_script')->getCallable(), []), "appendFile", [0 => $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("/static/framework/dropify/js/dropify.js")], "method", false, false, false, 270);
// line 271
echo "
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
// line 274
public function block_inlinescripts($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", "inlinescripts"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "inlinescripts"));
// line 275
echo "
";
// line 276
$context["recaptchaKeyPublic"] = $this->extensions['Pimcore\Twig\Extension\WebsiteConfigExtension']->getWebsiteConfig("recaptchaKeyPublic");
// line 277
echo "
<script src=\"https://www.google.com/recaptcha/api.js?onload=onloadRecaptchaCallback&render=";
// line 278
echo twig_escape_filter($this->env, (isset($context["recaptchaKeyPublic"]) || array_key_exists("recaptchaKeyPublic", $context) ? $context["recaptchaKeyPublic"] : (function () { throw new RuntimeError('Variable "recaptchaKeyPublic" does not exist.', 278, $this->source); })()), "html", null, true);
echo "\"></script>
<script>
function onloadRecaptchaCallback(){
grecaptcha.ready(function() {
grecaptcha.execute('";
// line 283
echo twig_escape_filter($this->env, (isset($context["recaptchaKeyPublic"]) || array_key_exists("recaptchaKeyPublic", $context) ? $context["recaptchaKeyPublic"] : (function () { throw new RuntimeError('Variable "recaptchaKeyPublic" does not exist.', 283, $this->source); })()), "html", null, true);
echo "', {action: 'contact'}).then(function(token) {
//alert('recaptcha is loaded');
var recaptcha = document.getElementById('contact_form_recaptcha');
recaptcha.value = token;
});
});
}
</script>
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
public function getTemplateName()
{
return "default/concours.html.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
return array ( 603 => 283, 595 => 278, 592 => 277, 590 => 276, 587 => 275, 577 => 274, 566 => 271, 563 => 270, 560 => 269, 558 => 268, 552 => 265, 549 => 264, 541 => 259, 535 => 256, 528 => 251, 522 => 248, 518 => 246, 515 => 245, 508 => 241, 504 => 240, 498 => 237, 493 => 234, 487 => 231, 480 => 227, 476 => 226, 466 => 219, 461 => 217, 454 => 213, 449 => 211, 443 => 208, 439 => 207, 433 => 204, 429 => 203, 423 => 200, 419 => 199, 412 => 195, 408 => 194, 401 => 190, 397 => 189, 390 => 185, 386 => 184, 378 => 179, 375 => 178, 373 => 177, 370 => 176, 364 => 173, 361 => 172, 359 => 171, 354 => 169, 351 => 168, 349 => 167, 344 => 165, 341 => 164, 339 => 163, 334 => 161, 331 => 160, 329 => 159, 325 => 157, 322 => 156, 317 => 154, 313 => 153, 306 => 152, 303 => 151, 295 => 148, 292 => 147, 289 => 146, 287 => 145, 281 => 142, 271 => 135, 266 => 133, 262 => 131, 259 => 130, 254 => 128, 251 => 127, 249 => 126, 241 => 124, 238 => 123, 230 => 120, 227 => 119, 224 => 118, 222 => 117, 216 => 113, 211 => 111, 206 => 110, 203 => 109, 198 => 107, 193 => 106, 191 => 105, 185 => 102, 175 => 95, 171 => 93, 165 => 90, 160 => 88, 156 => 87, 151 => 85, 147 => 84, 142 => 82, 137 => 80, 134 => 79, 132 => 69, 128 => 67, 126 => 56, 120 => 53, 115 => 50, 113 => 40, 109 => 38, 107 => 27, 100 => 23, 94 => 20, 90 => 19, 86 => 17, 84 => 16, 76 => 11, 72 => 10, 69 => 9, 59 => 8, 36 => 1,);
}
public function getSourceContext()
{
return new Source("{% extends \"layout.html.twig\" %}
{#
{% use AppBundle/Helper/Apik %}
#}
{% block content %}
{{ pimcore_areablock(\"myAreablock\") }}
{{ pimcore_areablock('contentTop') }}
<!-- #main -->
<main id=\"main\" role=\"main\">
{% if editmode %}
<div class=\"editmode-img\">
<div class=\"uk-margin-xlarge-top\">
{{ pimcore_image(\"facebook-image\") }}
{{ pimcore_image(\"instagram-image\") }}
</div>
{{ pimcore_image('reseaux-forme') }}
</br>
<div>Type de heading pour le titre ?</div>
{{ pimcore_select(\"content-heading\", {
\"store\" : [
['span', 'span'],
['h1', 'Heading 1'],
['h2', 'Heading 2'],
['h3', 'Heading 3'],
['h4', 'Heading 4'],
['h5', 'Heading 5'],
['h6', 'Heading 6']
],
\"defaultValue\" : \"h2\"
}) }}
<div><strong>Style</strong> du heading pour le titre ?</div>
{{ pimcore_select(\"content-heading-style\", {
\"store\" : [
['h1', 'Heading 1'],
['h2', 'Heading 2'],
['h3', 'Heading 3'],
['h4', 'Heading 4'],
['h5', 'Heading 5'],
['h6', 'Heading 6']
],
\"defaultValue\" : \"h2\"
}) }}
<h2 class=\"\">{{ pimcore_textarea('content-title', {'nl2br' : true}) }}</h2>
<div>Type de heading pour le sous-titre ?</div>
{{ pimcore_select(\"subtitle-heading\", {
\"store\" : [
['span', 'span'],
['h1', 'Heading 1'],
['h2', 'Heading 2'],
['h3', 'Heading 3'],
['h4', 'Heading 4'],
['h5', 'Heading 5'],
['h6', 'Heading 6']
],
\"defaultValue\" : \"h2\"
}) }}
<div><strong>Style</strong> du heading pour le sous-titre ?</div>
{{ pimcore_select(\"subtitle-style\", {
\"store\" : [
['h1', 'Heading 1'],
['h2', 'Heading 2'],
['h3', 'Heading 3'],
['h4', 'Heading 4'],
['h5', 'Heading 5'],
['h6', 'Heading 6']
],
\"defaultValue\" : \"h2\"
}) }}
<h2 class=\"\">{{ pimcore_textarea('content-subtitle', {'nl2br' : true}) }}</h2>
{{ pimcore_image(\"forme-image\") }}
<div>
{{ pimcore_textarea(\"content\") }}
{{ pimcore_image(\"logo-image\") }}
</div>
{{ pimcore_link(\"link-logo\") }}
{{ pimcore_image(\"logo-right\") }}
</div>
{{ pimcore_image('background-image') }}
{% else %}
<div class=\"div-fond-concours\" uk-height-match=\"target: changed\">
<div class=\"div-fond-concours-cropped uk-cover-container apk-height-match\" >
{{ pimcore_image('background-image').thumbnail('concours-thumb').html({'imgAttributes' : {'uk-cover' : null}})|raw }}
</div>
<div class=\"div-fond-blanc\" uk-grid>
<div class=\"uk-width-1-3@m apk-height-match\">
<div class=\"div-text-concours\">
<div class=\"polygone uk-visible@m\">
{{ pimcore_image('reseaux-forme') }}
<div class=\"reseaux uk-flex\">
{% if document.property('facebookUrl') %}
<a href=\"{{ document.property('facebookUrl') }}\" target=\"_blank\"><img
src=\"{{ pimcore_image('facebook-image').thumbnail('reseaux') }}\"></a>
{% endif %}
{% if document.property('instagramUrl') %}
<a href=\"{{ document.property('instagramUrl') }}\" target=\"_blank\"><img
src=\"{{ pimcore_image('instagram-image').thumbnail('reseaux') }}\"></a>
{% endif %}
</div>
</div>
<div class=\"uk-margin-xlarge-top\">
{% if not pimcore_textarea(\"content-title\").isEmpty %}
{% if pimcore_select(\"content-heading\").data == \"span\" %}
<span class=\"uk-{{ pimcore_select(\"content-heading-style\").getData() }}\">{{ pimcore_textarea('content-title', {'nl2br' : true}) }}</span>
{% else %}
{% set content_heading = pimcore_select(\"content-heading\").getData() %}
<{{ content_heading }} class=\"uk-{{ pimcore_select(\"content-heading-style\").getData() }}
\">
{{ pimcore_textarea(\"content-title\", {
\"nl2br\" : true})|raw }}
</{{ content_heading }}>
{% endif %}
{% endif %}
</div>
<p class=\"content-textarea-concours\">{{ pimcore_textarea(\"content\") }}</p>
<div class=\"forme-concours\">{{ pimcore_image(\"forme-image\") }}</div>
</div>
</div>
<div class=\"uk-width-1-3@m div-form\">
<div>
<div class=\"uk-text-center\">
{{ pimcore_image(\"logo-image\", {\"thumbnail\": \"logo-concours-thumb\"}) }}
</div>
{% if not pimcore_textarea(\"content-subtitle\").isEmpty %}
{% if pimcore_select(\"subtitle-heading\").data == \"span\" %}
<span class=\"uk-{{ pimcore_select(\"subtitle-style\").getData() }}\">{{ pimcore_textarea('content-subtitle', {'nl2br' : true}) }}</span>
{% else %}
{% set content_heading = pimcore_select(\"subtitle-heading\").getData() %}
<{{ content_heading }} class=\"uk-{{ pimcore_select(\"subtitle-style\").getData() }}\">
{{ pimcore_textarea(\"content-subtitle\", {\"nl2br\" : true})|raw }}
</{{ content_heading }}>
{% endif %}
{% endif %}
{% if formStatus == 'robot' %}
<div class=\"uk-alert-warning\" uk-alert>
<p>{{ \"Une erreur recaptcha est survenue, merci de réessayer.\"|trans }}</p>
</div>
{% elseif formStatus == 'invalid' %}
<div class=\"uk-alert-warning\" uk-alert>
<p>{{ \"Vous n'avez pas remplis tout les champs, merci de réessayer.\"|trans }}</p>
</div>
{% elseif formStatus == 'alreadyPlayed' %}
<div class=\"uk-alert-warning\" uk-alert>
<p>{{ \"Vous avez déjà participé à ce concours\"|trans }}</p>
</div>
{% elseif formStatus == 'not-filled' %}
<div class=\"uk-alert-warning\" uk-alert>
<p>{{ \"Veuillez remplir tout les champs\"|trans }}</p>
</div>
{% endif %}
{% if formStatus != 'success' %}
{{ form_start(form,{'attr': {'id': 'contact-form', 'enctype' : 'multipart/form-data'}}) }}
<div class=\"uk-grid-small form-concours-grid\" uk-grid>
<div class=\"uk-width-1-1\">
<label class=\"uk-form-label required apk-label-is-linked-to-field\"
for=\"form-stacked-text\"> {{ form_label(form.choixmultiple) }} </label>
{{ form_widget(form.choixmultiple) }}
</div>
<div class=\"uk-width-1-1\">
<label class=\"uk-form-label\"
for=\"form-stacked-text\"> {{ form_label(form.message) }} </label>
{{ form_widget(form.message) }}
</div>
<div class=\"uk-width-1-2\">
<label class=\"uk-form-label\"
for=\"form-stacked-text\"> {{ form_label(form.lastname) }} </label>
{{ form_widget(form.lastname) }}
</div>
<div class=\"uk-width-1-2\">
<label class=\"uk-form-label\"
for=\"form-stacked-text\"> {{ form_label(form.firstname) }} </label>
{{ form_widget(form.firstname) }}
</div>
<div class=\"uk-width-1-1\">
<label class=\"uk-form-label\" for=\"form-stacked-text\"> {{ form_label(form.email) }} </label>
{{ form_widget(form.email) }}
</div>
<div class=\"uk-width-1-1\">
<label class=\"uk-form-label\" for=\"form-stacked-text\"> {{ form_label(form.preuvePaiement) }} </label>
{{ form_widget(form.preuvePaiement) }}
</div>
<div>
{{ form_widget(form.gdpr) }}
<label for=\"contact_form_gdpr\" id=\"accept-condition\" class=\"uk-padding-remove\">
{{ \"J’accepte la politique de confidentialité, le traitement de mes données par Magnecaps\"|trans }}
</label>
</div>
<div class=\"uk-margin-small-top uk-margin-small-bottom\">
{{ form_widget(form.reglement) }}
<label for=\"contact_form_reglement\" id=\"accept-reglement\" class=\"uk-padding-remove\">
{{ \"J’accepte le règlement de ce concours\"|trans }}
<a href=\"#modal-reglement\" uk-toggle>
<img uk-svg width=\"20\" height=\"20\" src=\"/static/img/pictos/information.svg\" alt=\"reglement\">
</a>
</label>
</div>
<div class=\"div-submit\">
{{ form_widget(form.recaptcha) }}
{{ form_widget(form.submit) }}
</div>
</div>
{{ form_end(form) }}
{% endif %}
</div>
</div>
<div class=\"uk-width-1-3@m\">
{{ get_language_switcher_html(document, 'dropdown', 'code')|raw }}
<div class=\"logo-right\">
<a href=\"{{ pimcore_link(\"link-logo\").href }}\" target=\"_blank\"><img
src=\"{{ pimcore_image('logo-right').thumbnail('') }}\"></a>
</div>
</div>
{% endif %}
{% if editmode %}
<div class=\"uk-alert uk-alert-primary\" uk-alert>
<h2 class=\"uk-h2\">Modal du réglement du concours</h2>
{{ pimcore_wysiwyg('reglement') }}
</div>
{% else %}
<div id=\"modal-reglement\" class=\"uk-flex-top\" uk-modal>
<div class=\"uk-modal-dialog uk-margin-auto-vertical\">
<button class=\"uk-modal-close-full uk-close-large\" type=\"button\" uk-close></button>
<div class=\"uk-modal-body\" uk-overflow-auto>
{{ pimcore_wysiwyg('reglement') }}
</div>
<div class=\"uk-modal-footer uk-text-right\">
<button class=\"uk-button uk-button-default uk-modal-close\" type=\"button\">{{ \"Fermer\"|trans }}</button>
</div>
</div>
</div>
{% endif %}
<div class=\"area-concours\">{{ pimcore_areablock('contentBottom') }}</div>
</main><!-- end #main -->
{% do pimcore_head_link().appendStylesheet(asset('/static/framework/dropify/css/dropify.min.css')) %}
{% do pimcore_head_script().appendFile(asset('/static/framework/heic2any/heic2any.js')) %}
{% do pimcore_head_script().appendFile(asset('/static/framework/dropify/js/dropify.js')) %}
{% endblock %}
{% block inlinescripts %}
{% set recaptchaKeyPublic = pimcore_website_config('recaptchaKeyPublic') %}
<script src=\"https://www.google.com/recaptcha/api.js?onload=onloadRecaptchaCallback&render={{ recaptchaKeyPublic }}\"></script>
<script>
function onloadRecaptchaCallback(){
grecaptcha.ready(function() {
grecaptcha.execute('{{ recaptchaKeyPublic }}', {action: 'contact'}).then(function(token) {
//alert('recaptcha is loaded');
var recaptcha = document.getElementById('contact_form_recaptcha');
recaptcha.value = token;
});
});
}
</script>
{% endblock inlinescripts %}
", "default/concours.html.twig", "/var/www/magnecapsv2.atypic-pp.be/www/templates/default/concours.html.twig");
}
}