<?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-2023.html.twig */
class __TwigTemplate_d82430fbe272ab75bdfc7d1ea106a984 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-no-menu.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-2023.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-2023.html.twig"));
$this->parent = $this->loadTemplate("layout-no-menu.html.twig", "default/concours-2023.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 "
<!-- #main -->
<main id=\"main\" role=\"main\">
<div class=\"apk-concours-2023\">
";
// line 15
if ((isset($context["editmode"]) || array_key_exists("editmode", $context) ? $context["editmode"] : (function () { throw new RuntimeError('Variable "editmode" does not exist.', 15, $this->source); })())) {
// line 16
echo "
<p>Image desktop</p>
";
// line 18
echo $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context, "image", "banner-image");
echo "
<hr/>
<p>Image mobile</p>
";
// line 21
echo $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context, "image", "banner-image-mobile");
echo "
<hr/>
<p>Image fond formulaire</p>
";
// line 24
echo $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context, "image", "banner-image-form");
echo "
<hr/>
<p>Sous-titre</p>
<p>
";
// line 29
echo $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context, "textarea", "content-text", ["nl2br" => true]);
// line 31
echo "
</p>
<p>Sous-titre gras</p>
<p>
";
// line 36
echo $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context, "textarea", "content-text-2", ["nl2br" => true]);
// line 38
echo "
</p>
<p>Dates</p>
<p>
";
// line 43
echo $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context, "textarea", "content-date", ["nl2br" => true]);
// line 45
echo "
</p>
<div class=\"uk-alert uk-alert-primary\" uk-alert>
<h2 class=\"uk-h2\">Modal du réglement du concours</h2>
";
// line 50
echo $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context, "wysiwyg", "reglement");
echo "
</div>
";
} else {
// line 54
echo "
<div id=\"modal-reglement-2023\" 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 59
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 62
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Fermer"), "html", null, true);
echo "</button>
</div>
</div>
</div>
<div class=\"apk-container-image uk-inline uk-visible@m\">
";
// line 68
echo $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context, "image", "banner-image");
echo "
";
// line 71
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.', 71, $this->source); })()), "dropdown", "code");
echo "
<div class=\"uk-position-center-left\">
<div class=\"apk-title\">
<h1>";
// line 76
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Concours !"), "html", null, true);
echo "</h1>
</div>
</div>
<div class=\"uk-position-top-right\">
<div class=\"apk-date\">
<p>";
// line 82
echo $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context, "textarea", "content-date", ["nl2br" => true]);
echo "</p>
</div>
</div>
<div class=\"uk-position-bottom-left\">
<p class=\"uk-margin-remove-bottom\">";
// line 87
echo $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context, "textarea", "content-text", ["nl2br" => true]);
echo "</p>
<p class=\"uk-margin-remove-top\"><strong>";
// line 88
echo $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context, "textarea", "content-text-2", ["nl2br" => true]);
echo "</strong></p>
</div>
</div>
<div class=\"apk-container-image uk-inline uk-hidden@m\">
";
// line 95
echo $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context, "image", "banner-image-mobile");
echo "
";
// line 97
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.', 97, $this->source); })()), "dropdown", "code");
echo "
<div class=\"uk-position-center-left\">
<div class=\"apk-title\">
<h1>";
// line 101
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Concours !"), "html", null, true);
echo "</h1>
</div>
</div>
<div class=\"uk-position-center-right\">
<div class=\"apk-date\">
<p>";
// line 106
echo $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context, "textarea", "content-date", ["nl2br" => true]);
echo "</p>
</div>
</div>
<div class=\"uk-position-bottom-left\">
<p class=\"uk-margin-remove-bottom\">";
// line 110
echo $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context, "textarea", "content-text", ["nl2br" => true]);
echo "</p>
<p class=\"uk-margin-remove-top\"><strong>";
// line 111
echo $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context, "textarea", "content-text-2", ["nl2br" => true]);
echo "</strong></p>
</div>
</div>
";
}
// line 117
echo "
<div class=\"uk-background-cover uk-panel uk-flex uk-flex-center uk-flex-middle apk-background-cover\" style=\"background-image: url(";
// line 118
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context, "image", "banner-image-form"), "thumbnail", [0 => "full-background"], "method", false, false, false, 118), "html", null, true);
echo ");\">
<div class=\"uk-container apk-container1400\">
";
// line 121
if (((isset($context["formStatus"]) || array_key_exists("formStatus", $context) ? $context["formStatus"] : (function () { throw new RuntimeError('Variable "formStatus" does not exist.', 121, $this->source); })()) == "robot")) {
// line 122
echo " <div class=\"uk-alert-warning\" uk-alert>
<p>";
// line 123
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 125
(isset($context["formStatus"]) || array_key_exists("formStatus", $context) ? $context["formStatus"] : (function () { throw new RuntimeError('Variable "formStatus" does not exist.', 125, $this->source); })()) == "invalid")) {
// line 126
echo " <div class=\"uk-alert-warning\" uk-alert>
<p>";
// line 127
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 129
(isset($context["formStatus"]) || array_key_exists("formStatus", $context) ? $context["formStatus"] : (function () { throw new RuntimeError('Variable "formStatus" does not exist.', 129, $this->source); })()) == "alreadyPlayed")) {
// line 130
echo " <div class=\"uk-alert-warning\" uk-alert>
<p>";
// line 131
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 133
(isset($context["formStatus"]) || array_key_exists("formStatus", $context) ? $context["formStatus"] : (function () { throw new RuntimeError('Variable "formStatus" does not exist.', 133, $this->source); })()) == "not-filled")) {
// line 134
echo " <div class=\"uk-alert-warning\" uk-alert>
<p>";
// line 135
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 138
echo "
";
// line 140
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.', 140, $this->source); })()), 'form_start', ["attr" => ["id" => "#concours2023", "enctype" => "multipart/form-data"]]);
echo "
<div class=\"apk-container-form\">
<h2>";
// line 143
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Question 1"), "html", null, true);
echo "</h2>
<label class=\"uk-form-label required apk-label-is-linked-to-field apk-label-color\"
for=\"form-stacked-text\"> ";
// line 145
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.', 145, $this->source); })()), "choixmultiple", [], "any", false, false, false, 145), 'label');
echo " </label>
";
// line 146
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.', 146, $this->source); })()), "choixmultiple", [], "any", false, false, false, 146), 'widget');
echo "
</div>
<div class=\"apk-container-form\">
<h2>";
// line 150
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Question 2"), "html", null, true);
echo "</h2>
<label class=\"apk-label-color\">";
// line 151
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Selon vous, combien de personnes rempliront ce formulaire ?*"), "html", null, true);
echo "</label>
</br>
<label class=\"uk-form-label apk-label-color\"
for=\"form-stacked-text\"> ";
// line 154
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.', 154, $this->source); })()), "message", [], "any", false, false, false, 154), 'label');
echo " </label>
";
// line 155
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.', 155, $this->source); })()), "message", [], "any", false, false, false, 155), 'widget');
echo "
</div>
<div class=\"apk-container-form uk-margin-medium-bottom\">
<div class=\"uk-grid-small\" uk-grid>
<div class=\"uk-width-1-1\">
<label class=\"uk-form-label\"
for=\"form-stacked-text\"> ";
// line 162
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.', 162, $this->source); })()), "lastname", [], "any", false, false, false, 162), 'label');
echo " </label>
";
// line 163
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.', 163, $this->source); })()), "lastname", [], "any", false, false, false, 163), 'widget');
echo "
</div>
<div class=\"uk-width-1-1\">
<label class=\"uk-form-label\"
for=\"form-stacked-text\"> ";
// line 167
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.', 167, $this->source); })()), "firstname", [], "any", false, false, false, 167), 'label');
echo " </label>
";
// line 168
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.', 168, $this->source); })()), "firstname", [], "any", false, false, false, 168), 'widget');
echo "
</div>
<div class=\"uk-width-1-1\">
<label class=\"uk-form-label\" for=\"form-stacked-text\"> ";
// line 171
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.', 171, $this->source); })()), "email", [], "any", false, false, false, 171), 'label');
echo " </label>
";
// line 172
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.', 172, $this->source); })()), "email", [], "any", false, false, false, 172), 'widget');
echo "
</div>
<div class=\"uk-width-1-1\">
<label class=\"uk-form-label\" for=\"form-stacked-text\"> ";
// line 175
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.', 175, $this->source); })()), "preuvePaiement", [], "any", false, false, false, 175), 'label');
echo " </label>
";
// line 176
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.', 176, $this->source); })()), "preuvePaiement", [], "any", false, false, false, 176), 'widget');
echo "
</div>
<div class=\"uk-width-1-1\">
";
// line 179
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.', 179, $this->source); })()), "gdpr", [], "any", false, false, false, 179), 'widget');
echo "
<label for=\"concours2023_form_gdpr\" id=\"accept-condition\" class=\"uk-padding-remove\">
";
// line 181
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 uk-width-1-1\">
";
// 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); })()), "reglement", [], "any", false, false, false, 185), 'widget');
echo "
<label for=\"concours2023_form_reglement\" id=\"accept-reglement\" class=\"uk-padding-remove\">
";
// line 187
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-2023\" 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 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); })()), "recaptcha", [], "any", false, false, false, 194), 'widget');
echo "
";
// 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); })()), "submit", [], "any", false, false, false, 195), 'widget');
echo "
</div>
</div>
<p class=\"uk-margin-remove-bottom\" style=\"font-size: 12px;\">";
// line 199
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("*Champs obligatoires"), "html", null, true);
echo "</p>
</div>
";
// line 203
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.', 203, $this->source); })()), 'form_end');
echo "
";
// line 205
if (((isset($context["formStatus"]) || array_key_exists("formStatus", $context) ? $context["formStatus"] : (function () { throw new RuntimeError('Variable "formStatus" does not exist.', 205, $this->source); })()) == "success")) {
// line 206
echo "
<div id=\"success\" uk-modal>
<div class=\"uk-modal-dialog uk-modal-body apk-modal-sucess\">
<div class=\"uk-inline uk-text-center\">
<div class=\"uk-position-center-left apk-forme-left\">
<img src=\"/static/img/bgs/formes-un.png\" alt=\"\">
</div>
<div class=\"uk-text-right uk-margin-right uk-margin-small-top\">
<button class=\"uk-modal-close\" type=\"button\" aria-label=\"Close\" uk-close></button>
</div>
<div class=\"uk-flex uk-flex-center uk-flex-middle uk-height-1-1\">
<div class=\"apk-content-modal\">
<h2>";
// line 221
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Merci pour votre participation !"), "html", null, true);
echo "</h2>
<p><strong>";
// line 222
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Le tirage au sort aura lieu le 02/05/2023 et tous les gagnants seront avertis par e-mail."), "html", null, true);
echo "</strong></p>
<p>";
// line 223
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("D'ici là n'hésitez pas à nous suivre sur les réseaux sociaux !"), "html", null, true);
echo "</p>
<div class=\"uk-flex uk-flex-center apk-logos-media\">
";
// line 225
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.', 225, $this->source); })()), "property", [0 => "facebookUrl"], "method", false, false, false, 225)) {
echo "
<a href=\"";
// line 226
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.', 226, $this->source); })()), "property", [0 => "facebookUrl"], "method", false, false, false, 226), "html", null, true);
echo "\" target=\"_blank\"><img src=\"/static/img/pictos/Facebook-logo.png\" alt=\"\"></a>
";
}
// line 228
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.', 228, $this->source); })()), "property", [0 => "instagramUrl"], "method", false, false, false, 228)) {
echo "
<a href=\"";
// line 229
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.', 229, $this->source); })()), "property", [0 => "instagramUrl"], "method", false, false, false, 229), "html", null, true);
echo "\" target=\"_blank\"><img src=\"/static/img/pictos/Instagram-logo.png\" alt=\"\"></a>
";
}
// line 231
echo " </div>
</div>
</div>
<div class=\"uk-position-center-right apk-forme-right\">
<img src=\"/static/img/bgs/formes-deux.png\" alt=\"\">
</div>
</div>
</div>
</div>
";
}
// line 244
echo " </div>
</div>
</div>
</main><!-- end #main -->
";
// line 250
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, 250);
// line 251
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, 251);
// line 252
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, 252);
// line 253
echo "
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
// line 256
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 257
echo "
";
// line 258
$context["recaptchaKeyPublic"] = $this->extensions['Pimcore\Twig\Extension\WebsiteConfigExtension']->getWebsiteConfig("recaptchaKeyPublic");
// line 259
echo "
<script src=\"https://www.google.com/recaptcha/api.js?onload=onloadRecaptchaCallback&render=";
// line 260
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.', 260, $this->source); })()), "html", null, true);
echo "\"></script>
<script>
if(\$('#success').length) {
UIkit.modal(\$('#success')).show();
console.log('success');
}
function onloadRecaptchaCallback(){
grecaptcha.ready(function() {
grecaptcha.execute('";
// line 272
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.', 272, $this->source); })()), "html", null, true);
echo "', {action: 'concours2023'}).then(function(token) {
//alert('recaptcha is loaded');
var recaptcha = document.getElementById('concours2023_form_recaptcha');
recaptcha.value = token;
});
});
}
setInterval(function () {
grecaptcha.ready(function() {
grecaptcha.execute('";
// line 282
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.', 282, $this->source); })()), "html", null, true);
echo "', {action: 'concours2023'}).then(function(token) {
//alert('recaptcha is loaded');
var recaptcha = document.getElementById('concours2023_form_recaptcha');
recaptcha.value = token;
});
});
}, 110 * 1000);
</script>
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
public function getTemplateName()
{
return "default/concours-2023.html.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
return array ( 574 => 282, 561 => 272, 546 => 260, 543 => 259, 541 => 258, 538 => 257, 528 => 256, 517 => 253, 514 => 252, 511 => 251, 509 => 250, 501 => 244, 486 => 231, 481 => 229, 476 => 228, 471 => 226, 467 => 225, 462 => 223, 458 => 222, 454 => 221, 437 => 206, 435 => 205, 430 => 203, 423 => 199, 416 => 195, 412 => 194, 402 => 187, 397 => 185, 390 => 181, 385 => 179, 379 => 176, 375 => 175, 369 => 172, 365 => 171, 359 => 168, 355 => 167, 348 => 163, 344 => 162, 334 => 155, 330 => 154, 324 => 151, 320 => 150, 313 => 146, 309 => 145, 304 => 143, 298 => 140, 294 => 138, 288 => 135, 285 => 134, 283 => 133, 278 => 131, 275 => 130, 273 => 129, 268 => 127, 265 => 126, 263 => 125, 258 => 123, 255 => 122, 253 => 121, 247 => 118, 244 => 117, 235 => 111, 231 => 110, 224 => 106, 216 => 101, 209 => 97, 204 => 95, 194 => 88, 190 => 87, 182 => 82, 173 => 76, 165 => 71, 159 => 68, 150 => 62, 144 => 59, 137 => 54, 130 => 50, 123 => 45, 121 => 43, 114 => 38, 112 => 36, 105 => 31, 103 => 29, 95 => 24, 89 => 21, 83 => 18, 79 => 16, 77 => 15, 69 => 9, 59 => 8, 36 => 1,);
}
public function getSourceContext()
{
return new Source("{% extends \"layout-no-menu.html.twig\" %}
{#
{% use AppBundle/Helper/Apik %}
#}
{% block content %}
<!-- #main -->
<main id=\"main\" role=\"main\">
<div class=\"apk-concours-2023\">
{% if editmode %}
<p>Image desktop</p>
{{ pimcore_image(\"banner-image\") }}
<hr/>
<p>Image mobile</p>
{{ pimcore_image(\"banner-image-mobile\") }}
<hr/>
<p>Image fond formulaire</p>
{{ pimcore_image(\"banner-image-form\") }}
<hr/>
<p>Sous-titre</p>
<p>
{{ pimcore_textarea(\"content-text\",{
\"nl2br\" : true
}) }}
</p>
<p>Sous-titre gras</p>
<p>
{{ pimcore_textarea(\"content-text-2\",{
\"nl2br\" : true
}) }}
</p>
<p>Dates</p>
<p>
{{ pimcore_textarea(\"content-date\",{
\"nl2br\" : true
}) }}
</p>
<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-2023\" 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>
<div class=\"apk-container-image uk-inline uk-visible@m\">
{{ pimcore_image(\"banner-image\") }}
{{ get_language_switcher_html(document, 'dropdown', 'code')|raw }}
<div class=\"uk-position-center-left\">
<div class=\"apk-title\">
<h1>{{ \"Concours !\"|trans }}</h1>
</div>
</div>
<div class=\"uk-position-top-right\">
<div class=\"apk-date\">
<p>{{ pimcore_textarea(\"content-date\",{\"nl2br\" : true}) }}</p>
</div>
</div>
<div class=\"uk-position-bottom-left\">
<p class=\"uk-margin-remove-bottom\">{{ pimcore_textarea(\"content-text\",{\"nl2br\" : true}) }}</p>
<p class=\"uk-margin-remove-top\"><strong>{{ pimcore_textarea(\"content-text-2\",{\"nl2br\" : true}) }}</strong></p>
</div>
</div>
<div class=\"apk-container-image uk-inline uk-hidden@m\">
{{ pimcore_image(\"banner-image-mobile\") }}
{{ get_language_switcher_html(document, 'dropdown', 'code')|raw }}
<div class=\"uk-position-center-left\">
<div class=\"apk-title\">
<h1>{{ \"Concours !\"|trans }}</h1>
</div>
</div>
<div class=\"uk-position-center-right\">
<div class=\"apk-date\">
<p>{{ pimcore_textarea(\"content-date\",{\"nl2br\" : true}) }}</p>
</div>
</div>
<div class=\"uk-position-bottom-left\">
<p class=\"uk-margin-remove-bottom\">{{ pimcore_textarea(\"content-text\",{\"nl2br\" : true}) }}</p>
<p class=\"uk-margin-remove-top\"><strong>{{ pimcore_textarea(\"content-text-2\",{\"nl2br\" : true}) }}</strong></p>
</div>
</div>
{% endif %}
<div class=\"uk-background-cover uk-panel uk-flex uk-flex-center uk-flex-middle apk-background-cover\" style=\"background-image: url({{ pimcore_image(\"banner-image-form\").thumbnail(\"full-background\") }});\">
<div class=\"uk-container apk-container1400\">
{% 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 %}
{{ form_start(form,{'attr': {'id': '#concours2023', 'enctype' : 'multipart/form-data'}}) }}
<div class=\"apk-container-form\">
<h2>{{ \"Question 1\"|trans }}</h2>
<label class=\"uk-form-label required apk-label-is-linked-to-field apk-label-color\"
for=\"form-stacked-text\"> {{ form_label(form.choixmultiple) }} </label>
{{ form_widget(form.choixmultiple) }}
</div>
<div class=\"apk-container-form\">
<h2>{{ \"Question 2\"|trans }}</h2>
<label class=\"apk-label-color\">{{\"Selon vous, combien de personnes rempliront ce formulaire ?*\"|trans}}</label>
</br>
<label class=\"uk-form-label apk-label-color\"
for=\"form-stacked-text\"> {{ form_label(form.message) }} </label>
{{ form_widget(form.message) }}
</div>
<div class=\"apk-container-form uk-margin-medium-bottom\">
<div class=\"uk-grid-small\" uk-grid>
<div class=\"uk-width-1-1\">
<label class=\"uk-form-label\"
for=\"form-stacked-text\"> {{ form_label(form.lastname) }} </label>
{{ form_widget(form.lastname) }}
</div>
<div class=\"uk-width-1-1\">
<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 class=\"uk-width-1-1\">
{{ form_widget(form.gdpr) }}
<label for=\"concours2023_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 uk-width-1-1\">
{{ form_widget(form.reglement) }}
<label for=\"concours2023_form_reglement\" id=\"accept-reglement\" class=\"uk-padding-remove\">
{{ \"J’accepte le règlement de ce concours\"|trans }}
<a href=\"#modal-reglement-2023\" 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>
<p class=\"uk-margin-remove-bottom\" style=\"font-size: 12px;\">{{\"*Champs obligatoires\"|trans}}</p>
</div>
{{ form_end(form) }}
{% if formStatus == 'success' %}
<div id=\"success\" uk-modal>
<div class=\"uk-modal-dialog uk-modal-body apk-modal-sucess\">
<div class=\"uk-inline uk-text-center\">
<div class=\"uk-position-center-left apk-forme-left\">
<img src=\"/static/img/bgs/formes-un.png\" alt=\"\">
</div>
<div class=\"uk-text-right uk-margin-right uk-margin-small-top\">
<button class=\"uk-modal-close\" type=\"button\" aria-label=\"Close\" uk-close></button>
</div>
<div class=\"uk-flex uk-flex-center uk-flex-middle uk-height-1-1\">
<div class=\"apk-content-modal\">
<h2>{{ \"Merci pour votre participation !\"|trans }}</h2>
<p><strong>{{ \"Le tirage au sort aura lieu le 02/05/2023 et tous les gagnants seront avertis par e-mail.\"|trans }}</strong></p>
<p>{{ \"D'ici là n'hésitez pas à nous suivre sur les réseaux sociaux !\"|trans }}</p>
<div class=\"uk-flex uk-flex-center apk-logos-media\">
{% if document.property('facebookUrl') %}
<a href=\"{{ document.property('facebookUrl') }}\" target=\"_blank\"><img src=\"/static/img/pictos/Facebook-logo.png\" alt=\"\"></a>
{% endif %}
{% if document.property('instagramUrl') %}
<a href=\"{{ document.property('instagramUrl') }}\" target=\"_blank\"><img src=\"/static/img/pictos/Instagram-logo.png\" alt=\"\"></a>
{% endif %}
</div>
</div>
</div>
<div class=\"uk-position-center-right apk-forme-right\">
<img src=\"/static/img/bgs/formes-deux.png\" alt=\"\">
</div>
</div>
</div>
</div>
{% endif %}
</div>
</div>
</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>
if(\$('#success').length) {
UIkit.modal(\$('#success')).show();
console.log('success');
}
function onloadRecaptchaCallback(){
grecaptcha.ready(function() {
grecaptcha.execute('{{ recaptchaKeyPublic }}', {action: 'concours2023'}).then(function(token) {
//alert('recaptcha is loaded');
var recaptcha = document.getElementById('concours2023_form_recaptcha');
recaptcha.value = token;
});
});
}
setInterval(function () {
grecaptcha.ready(function() {
grecaptcha.execute('{{ recaptchaKeyPublic }}', {action: 'concours2023'}).then(function(token) {
//alert('recaptcha is loaded');
var recaptcha = document.getElementById('concours2023_form_recaptcha');
recaptcha.value = token;
});
});
}, 110 * 1000);
</script>
{% endblock inlinescripts %}", "default/concours-2023.html.twig", "/var/www/magnecapsv2.atypic-pp.be/www/templates/default/concours-2023.html.twig");
}
}