var/cache/dev/twig/80/80f38481a9e26fc89fe359053221258b.php line 49

Open in your IDE?
  1. <?php
  2. use Twig\Environment;
  3. use Twig\Error\LoaderError;
  4. use Twig\Error\RuntimeError;
  5. use Twig\Extension\SandboxExtension;
  6. use Twig\Markup;
  7. use Twig\Sandbox\SecurityError;
  8. use Twig\Sandbox\SecurityNotAllowedTagError;
  9. use Twig\Sandbox\SecurityNotAllowedFilterError;
  10. use Twig\Sandbox\SecurityNotAllowedFunctionError;
  11. use Twig\Source;
  12. use Twig\Template;
  13. /* default/concours-2023.html.twig */
  14. class __TwigTemplate_d82430fbe272ab75bdfc7d1ea106a984 extends Template
  15. {
  16.     private $source;
  17.     private $macros = [];
  18.     public function __construct(Environment $env)
  19.     {
  20.         parent::__construct($env);
  21.         $this->source $this->getSourceContext();
  22.         $this->blocks = [
  23.             'content' => [$this'block_content'],
  24.             'inlinescripts' => [$this'block_inlinescripts'],
  25.         ];
  26.     }
  27.     protected function doGetParent(array $context)
  28.     {
  29.         // line 1
  30.         return "layout-no-menu.html.twig";
  31.     }
  32.     protected function doDisplay(array $context, array $blocks = [])
  33.     {
  34.         $macros $this->macros;
  35.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  36.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""default/concours-2023.html.twig"));
  37.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  38.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""default/concours-2023.html.twig"));
  39.         $this->parent $this->loadTemplate("layout-no-menu.html.twig""default/concours-2023.html.twig"1);
  40.         $this->parent->display($contextarray_merge($this->blocks$blocks));
  41.         
  42.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  43.         
  44.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  45.     }
  46.     // line 8
  47.     public function block_content($context, array $blocks = [])
  48.     {
  49.         $macros $this->macros;
  50.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  51.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""content"));
  52.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  53.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""content"));
  54.         // line 9
  55.         echo "
  56.     <!-- #main -->
  57.     <main id=\"main\" role=\"main\">
  58.         <div class=\"apk-concours-2023\">
  59.             ";
  60.         // line 15
  61.         if ((isset($context["editmode"]) || array_key_exists("editmode"$context) ? $context["editmode"] : (function () { throw new RuntimeError('Variable "editmode" does not exist.'15$this->source); })())) {
  62.             // line 16
  63.             echo "
  64.             <p>Image desktop</p>
  65.             ";
  66.             // line 18
  67.             echo $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context"image""banner-image");
  68.             echo "
  69.             <hr/>
  70.             <p>Image mobile</p>
  71.             ";
  72.             // line 21
  73.             echo $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context"image""banner-image-mobile");
  74.             echo "
  75.             <hr/>
  76.             <p>Image fond formulaire</p>
  77.             ";
  78.             // line 24
  79.             echo $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context"image""banner-image-form");
  80.             echo "
  81.             <hr/>
  82.             <p>Sous-titre</p>
  83.             <p>
  84.             ";
  85.             // line 29
  86.             echo $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context"textarea""content-text", ["nl2br" => true]);
  87.             // line 31
  88.             echo "
  89.             </p>
  90.             <p>Sous-titre gras</p>
  91.             <p>
  92.             ";
  93.             // line 36
  94.             echo $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context"textarea""content-text-2", ["nl2br" => true]);
  95.             // line 38
  96.             echo "
  97.             </p>
  98.             <p>Dates</p>
  99.             <p>
  100.             ";
  101.             // line 43
  102.             echo $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context"textarea""content-date", ["nl2br" => true]);
  103.             // line 45
  104.             echo "
  105.             </p>
  106.             <div class=\"uk-alert uk-alert-primary\" uk-alert>
  107.                 <h2 class=\"uk-h2\">Modal du réglement du concours</h2>
  108.                 ";
  109.             // line 50
  110.             echo $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context"wysiwyg""reglement");
  111.             echo "
  112.             </div>
  113.             ";
  114.         } else {
  115.             // line 54
  116.             echo "
  117.             <div id=\"modal-reglement-2023\" class=\"uk-flex-top\" uk-modal>
  118.                 <div class=\"uk-modal-dialog uk-margin-auto-vertical\">
  119.                     <button class=\"uk-modal-close-full uk-close-large\" type=\"button\" uk-close></button>
  120.                     <div class=\"uk-modal-body\" uk-overflow-auto>
  121.                         ";
  122.             // line 59
  123.             echo $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context"wysiwyg""reglement");
  124.             echo "
  125.                     </div>
  126.                     <div class=\"uk-modal-footer uk-text-right\">
  127.                         <button class=\"uk-button uk-button-default uk-modal-close\" type=\"button\">";
  128.             // line 62
  129.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Fermer"), "html"nulltrue);
  130.             echo "</button>
  131.                     </div>
  132.                 </div>
  133.             </div>
  134.             <div class=\"apk-container-image uk-inline uk-visible@m\">
  135.                 ";
  136.             // line 68
  137.             echo $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context"image""banner-image");
  138.             echo "
  139.                 ";
  140.             // line 71
  141.             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");
  142.             echo "
  143.                 <div class=\"uk-position-center-left\">
  144.                     <div class=\"apk-title\">
  145.                         <h1>";
  146.             // line 76
  147.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Concours !"), "html"nulltrue);
  148.             echo "</h1>
  149.                     </div>
  150.                 </div>
  151.                 <div class=\"uk-position-top-right\">
  152.                     <div class=\"apk-date\">
  153.                         <p>";
  154.             // line 82
  155.             echo $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context"textarea""content-date", ["nl2br" => true]);
  156.             echo "</p>
  157.                     </div>
  158.                 </div>
  159.                 <div class=\"uk-position-bottom-left\">
  160.                     <p class=\"uk-margin-remove-bottom\">";
  161.             // line 87
  162.             echo $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context"textarea""content-text", ["nl2br" => true]);
  163.             echo "</p>
  164.                     <p class=\"uk-margin-remove-top\"><strong>";
  165.             // line 88
  166.             echo $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context"textarea""content-text-2", ["nl2br" => true]);
  167.             echo "</strong></p>
  168.                 </div>
  169.             </div>
  170.             <div class=\"apk-container-image uk-inline uk-hidden@m\">
  171.                 ";
  172.             // line 95
  173.             echo $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context"image""banner-image-mobile");
  174.             echo "
  175.                 ";
  176.             // line 97
  177.             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");
  178.             echo "
  179.                 <div class=\"uk-position-center-left\">
  180.                     <div class=\"apk-title\">
  181.                         <h1>";
  182.             // line 101
  183.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Concours !"), "html"nulltrue);
  184.             echo "</h1>
  185.                     </div>
  186.                 </div>
  187.                 <div class=\"uk-position-center-right\">
  188.                     <div class=\"apk-date\">
  189.                         <p>";
  190.             // line 106
  191.             echo $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context"textarea""content-date", ["nl2br" => true]);
  192.             echo "</p>
  193.                     </div>
  194.                 </div>
  195.                 <div class=\"uk-position-bottom-left\">
  196.                     <p class=\"uk-margin-remove-bottom\">";
  197.             // line 110
  198.             echo $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context"textarea""content-text", ["nl2br" => true]);
  199.             echo "</p>
  200.                     <p class=\"uk-margin-remove-top\"><strong>";
  201.             // line 111
  202.             echo $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context"textarea""content-text-2", ["nl2br" => true]);
  203.             echo "</strong></p>
  204.                 </div>
  205.             </div>
  206.             ";
  207.         }
  208.         // line 117
  209.         echo "
  210.             <div class=\"uk-background-cover uk-panel uk-flex uk-flex-center uk-flex-middle apk-background-cover\" style=\"background-image: url(";
  211.         // line 118
  212.         echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context"image""banner-image-form"), "thumbnail", [=> "full-background"], "method"falsefalsefalse118), "html"nulltrue);
  213.         echo ");\">
  214.                 <div class=\"uk-container apk-container1400\">
  215.                     ";
  216.         // line 121
  217.         if (((isset($context["formStatus"]) || array_key_exists("formStatus"$context) ? $context["formStatus"] : (function () { throw new RuntimeError('Variable "formStatus" does not exist.'121$this->source); })()) == "robot")) {
  218.             // line 122
  219.             echo "                        <div class=\"uk-alert-warning\" uk-alert>
  220.                             <p>";
  221.             // line 123
  222.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Une erreur recaptcha est survenue, merci de réessayer."), "html"nulltrue);
  223.             echo "</p>
  224.                         </div>
  225.                     ";
  226.         } elseif ((        // line 125
  227. (isset($context["formStatus"]) || array_key_exists("formStatus"$context) ? $context["formStatus"] : (function () { throw new RuntimeError('Variable "formStatus" does not exist.'125$this->source); })()) == "invalid")) {
  228.             // line 126
  229.             echo "                        <div class=\"uk-alert-warning\" uk-alert>
  230.                             <p>";
  231.             // line 127
  232.             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"nulltrue);
  233.             echo "</p>
  234.                         </div>
  235.                     ";
  236.         } elseif ((        // line 129
  237. (isset($context["formStatus"]) || array_key_exists("formStatus"$context) ? $context["formStatus"] : (function () { throw new RuntimeError('Variable "formStatus" does not exist.'129$this->source); })()) == "alreadyPlayed")) {
  238.             // line 130
  239.             echo "                        <div class=\"uk-alert-warning\" uk-alert>
  240.                             <p>";
  241.             // line 131
  242.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Vous avez déjà participé à ce concours"), "html"nulltrue);
  243.             echo "</p>
  244.                         </div>
  245.                     ";
  246.         } elseif ((        // line 133
  247. (isset($context["formStatus"]) || array_key_exists("formStatus"$context) ? $context["formStatus"] : (function () { throw new RuntimeError('Variable "formStatus" does not exist.'133$this->source); })()) == "not-filled")) {
  248.             // line 134
  249.             echo "                        <div class=\"uk-alert-warning\" uk-alert>
  250.                             <p>";
  251.             // line 135
  252.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Veuillez remplir tout les champs"), "html"nulltrue);
  253.             echo "</p>
  254.                         </div>
  255.                     ";
  256.         }
  257.         // line 138
  258.         echo "
  259.                     ";
  260.         // line 140
  261.         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"]]);
  262.         echo "
  263.             
  264.                     <div class=\"apk-container-form\">
  265.                         <h2>";
  266.         // line 143
  267.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Question 1"), "html"nulltrue);
  268.         echo "</h2>
  269.                         <label class=\"uk-form-label required apk-label-is-linked-to-field apk-label-color\"
  270.                                 for=\"form-stacked-text\"> ";
  271.         // line 145
  272.         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"falsefalsefalse145), 'label');
  273.         echo " </label>
  274.                         ";
  275.         // line 146
  276.         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"falsefalsefalse146), 'widget');
  277.         echo "
  278.                     </div>
  279.                     <div class=\"apk-container-form\">
  280.                         <h2>";
  281.         // line 150
  282.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Question 2"), "html"nulltrue);
  283.         echo "</h2>
  284.                         <label class=\"apk-label-color\">";
  285.         // line 151
  286.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Selon vous, combien de personnes rempliront ce formulaire ?*"), "html"nulltrue);
  287.         echo "</label>
  288.                         </br>
  289.                         <label class=\"uk-form-label apk-label-color\"
  290.                                 for=\"form-stacked-text\"> ";
  291.         // line 154
  292.         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"falsefalsefalse154), 'label');
  293.         echo " </label>
  294.                         ";
  295.         // line 155
  296.         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"falsefalsefalse155), 'widget');
  297.         echo "
  298.                     </div>
  299.                     <div class=\"apk-container-form uk-margin-medium-bottom\">
  300.                         <div class=\"uk-grid-small\" uk-grid>
  301.                             <div class=\"uk-width-1-1\">
  302.                                 <label class=\"uk-form-label\"
  303.                                         for=\"form-stacked-text\"> ";
  304.         // line 162
  305.         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"falsefalsefalse162), 'label');
  306.         echo " </label>
  307.                                 ";
  308.         // line 163
  309.         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"falsefalsefalse163), 'widget');
  310.         echo "
  311.                             </div>
  312.                             <div class=\"uk-width-1-1\">
  313.                                 <label class=\"uk-form-label\"
  314.                                         for=\"form-stacked-text\"> ";
  315.         // line 167
  316.         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"falsefalsefalse167), 'label');
  317.         echo " </label>
  318.                                 ";
  319.         // line 168
  320.         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"falsefalsefalse168), 'widget');
  321.         echo "
  322.                             </div>
  323.                             <div class=\"uk-width-1-1\">
  324.                                 <label class=\"uk-form-label\" for=\"form-stacked-text\"> ";
  325.         // line 171
  326.         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"falsefalsefalse171), 'label');
  327.         echo " </label>
  328.                                 ";
  329.         // line 172
  330.         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"falsefalsefalse172), 'widget');
  331.         echo "
  332.                             </div>
  333.                             <div class=\"uk-width-1-1\">
  334.                                 <label class=\"uk-form-label\" for=\"form-stacked-text\"> ";
  335.         // line 175
  336.         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"falsefalsefalse175), 'label');
  337.         echo " </label>
  338.                                 ";
  339.         // line 176
  340.         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"falsefalsefalse176), 'widget');
  341.         echo "
  342.                             </div>
  343.                             <div class=\"uk-width-1-1\">
  344.                                 ";
  345.         // line 179
  346.         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"falsefalsefalse179), 'widget');
  347.         echo "
  348.                                 <label for=\"concours2023_form_gdpr\" id=\"accept-condition\" class=\"uk-padding-remove\">
  349.                                     ";
  350.         // line 181
  351.         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"nulltrue);
  352.         echo "
  353.                                 </label>
  354.                             </div>
  355.                             <div class=\"uk-margin-small-top uk-margin-small-bottom uk-width-1-1\">
  356.                                 ";
  357.         // line 185
  358.         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"falsefalsefalse185), 'widget');
  359.         echo "
  360.                                 <label for=\"concours2023_form_reglement\" id=\"accept-reglement\" class=\"uk-padding-remove\">
  361.                                     ";
  362.         // line 187
  363.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("J’accepte le règlement de ce concours"), "html"nulltrue);
  364.         echo "
  365.                                     <a href=\"#modal-reglement-2023\" uk-toggle>
  366.                                         <img uk-svg width=\"20\" height=\"20\" src=\"/static/img/pictos/information.svg\" alt=\"reglement\">
  367.                                     </a>
  368.                                 </label>
  369.                             </div>
  370.                             <div class=\"div-submit\">
  371.                                 ";
  372.         // line 194
  373.         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"falsefalsefalse194), 'widget');
  374.         echo "
  375.                                 ";
  376.         // line 195
  377.         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"falsefalsefalse195), 'widget');
  378.         echo "
  379.                             </div>
  380.                         </div>
  381.                         <p class=\"uk-margin-remove-bottom\" style=\"font-size: 12px;\">";
  382.         // line 199
  383.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("*Champs obligatoires"), "html"nulltrue);
  384.         echo "</p>
  385.                     </div>
  386.                     ";
  387.         // line 203
  388.         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');
  389.         echo "
  390.                     ";
  391.         // line 205
  392.         if (((isset($context["formStatus"]) || array_key_exists("formStatus"$context) ? $context["formStatus"] : (function () { throw new RuntimeError('Variable "formStatus" does not exist.'205$this->source); })()) == "success")) {
  393.             // line 206
  394.             echo "
  395.                         <div id=\"success\" uk-modal>
  396.                             <div class=\"uk-modal-dialog uk-modal-body apk-modal-sucess\">
  397.                                 <div class=\"uk-inline uk-text-center\">
  398.                                     <div class=\"uk-position-center-left apk-forme-left\">
  399.                                         <img src=\"/static/img/bgs/formes-un.png\" alt=\"\">
  400.                                     </div>
  401.                                     <div class=\"uk-text-right uk-margin-right uk-margin-small-top\">
  402.                                         <button class=\"uk-modal-close\" type=\"button\" aria-label=\"Close\" uk-close></button>
  403.                                     </div>
  404.                                     <div class=\"uk-flex uk-flex-center uk-flex-middle uk-height-1-1\">
  405.                                         <div class=\"apk-content-modal\">
  406.                                             <h2>";
  407.             // line 221
  408.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Merci pour votre participation !"), "html"nulltrue);
  409.             echo "</h2>
  410.                                             <p><strong>";
  411.             // line 222
  412.             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"nulltrue);
  413.             echo "</strong></p>
  414.                                             <p>";
  415.             // line 223
  416.             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"nulltrue);
  417.             echo "</p>
  418.                                             <div class=\"uk-flex uk-flex-center apk-logos-media\">
  419.                                                 ";
  420.             // line 225
  421.             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", [=> "facebookUrl"], "method"falsefalsefalse225)) {
  422.                 echo 
  423.                                                     <a href=\"";
  424.                 // line 226
  425.                 echo twig_escape_filter($this->envtwig_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", [=> "facebookUrl"], "method"falsefalsefalse226), "html"nulltrue);
  426.                 echo "\" target=\"_blank\"><img src=\"/static/img/pictos/Facebook-logo.png\" alt=\"\"></a>
  427.                                                 ";
  428.             }
  429.             // line 228
  430.             echo "                                                ";
  431.             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", [=> "instagramUrl"], "method"falsefalsefalse228)) {
  432.                 echo 
  433.                                                     <a href=\"";
  434.                 // line 229
  435.                 echo twig_escape_filter($this->envtwig_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", [=> "instagramUrl"], "method"falsefalsefalse229), "html"nulltrue);
  436.                 echo "\" target=\"_blank\"><img src=\"/static/img/pictos/Instagram-logo.png\" alt=\"\"></a>
  437.                                                 ";
  438.             }
  439.             // line 231
  440.             echo "                                            </div>
  441.                                         </div>
  442.                                     </div>
  443.                                     <div class=\"uk-position-center-right apk-forme-right\">
  444.                                         <img src=\"/static/img/bgs/formes-deux.png\" alt=\"\">
  445.                                     </div>
  446.                                 </div>
  447.                             </div>
  448.                         </div>
  449.                     ";
  450.         }
  451.         // line 244
  452.         echo "                </div>
  453.             </div>
  454.         </div>
  455.     </main><!-- end #main -->
  456.     ";
  457.         // line 250
  458.         twig_get_attribute($this->env$this->sourcecall_user_func_array($this->env->getFunction('pimcore_head_link')->getCallable(), []), "appendStylesheet", [=> $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("/static/framework/dropify/css/dropify.min.css")], "method"falsefalsefalse250);
  459.         // line 251
  460.         echo "    ";
  461.         twig_get_attribute($this->env$this->sourcecall_user_func_array($this->env->getFunction('pimcore_head_script')->getCallable(), []), "appendFile", [=> $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("/static/framework/heic2any/heic2any.js")], "method"falsefalsefalse251);
  462.         // line 252
  463.         echo "    ";
  464.         twig_get_attribute($this->env$this->sourcecall_user_func_array($this->env->getFunction('pimcore_head_script')->getCallable(), []), "appendFile", [=> $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("/static/framework/dropify/js/dropify.js")], "method"falsefalsefalse252);
  465.         // line 253
  466.         echo "
  467.     ";
  468.         
  469.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  470.         
  471.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  472.     }
  473.     // line 256
  474.     public function block_inlinescripts($context, array $blocks = [])
  475.     {
  476.         $macros $this->macros;
  477.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  478.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""inlinescripts"));
  479.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  480.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""inlinescripts"));
  481.         // line 257
  482.         echo "
  483.   ";
  484.         // line 258
  485.         $context["recaptchaKeyPublic"] = $this->extensions['Pimcore\Twig\Extension\WebsiteConfigExtension']->getWebsiteConfig("recaptchaKeyPublic");
  486.         // line 259
  487.         echo "
  488.   <script src=\"https://www.google.com/recaptcha/api.js?onload=onloadRecaptchaCallback&render=";
  489.         // line 260
  490.         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"nulltrue);
  491.         echo "\"></script>
  492.   <script>
  493.     if(\$('#success').length) {
  494.       UIkit.modal(\$('#success')).show();
  495.       console.log('success');
  496.     }
  497.     
  498.     function onloadRecaptchaCallback(){
  499.         grecaptcha.ready(function() {
  500.             grecaptcha.execute('";
  501.         // line 272
  502.         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"nulltrue);
  503.         echo "', {action: 'concours2023'}).then(function(token) {
  504.             //alert('recaptcha is loaded');
  505.             var recaptcha = document.getElementById('concours2023_form_recaptcha');
  506.             recaptcha.value = token;
  507.             });
  508.         });
  509.     }
  510.     setInterval(function () {
  511.         grecaptcha.ready(function() {
  512.         grecaptcha.execute('";
  513.         // line 282
  514.         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"nulltrue);
  515.         echo "', {action: 'concours2023'}).then(function(token) {
  516.         //alert('recaptcha is loaded');
  517.         var recaptcha = document.getElementById('concours2023_form_recaptcha');
  518.         recaptcha.value = token;
  519.         });
  520.     });
  521.     }, 110 * 1000);
  522.   </script>
  523. ";
  524.         
  525.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  526.         
  527.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  528.     }
  529.     public function getTemplateName()
  530.     {
  531.         return "default/concours-2023.html.twig";
  532.     }
  533.     public function isTraitable()
  534.     {
  535.         return false;
  536.     }
  537.     public function getDebugInfo()
  538.     {
  539.         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,);
  540.     }
  541.     public function getSourceContext()
  542.     {
  543.         return new Source("{% extends \"layout-no-menu.html.twig\" %}
  544. {#
  545. {% use AppBundle/Helper/Apik %}
  546. #}
  547. {% block content %}
  548.     <!-- #main -->
  549.     <main id=\"main\" role=\"main\">
  550.         <div class=\"apk-concours-2023\">
  551.             {% if editmode %}
  552.             <p>Image desktop</p>
  553.             {{ pimcore_image(\"banner-image\") }}
  554.             <hr/>
  555.             <p>Image mobile</p>
  556.             {{ pimcore_image(\"banner-image-mobile\") }}
  557.             <hr/>
  558.             <p>Image fond formulaire</p>
  559.             {{ pimcore_image(\"banner-image-form\") }}
  560.             <hr/>
  561.             <p>Sous-titre</p>
  562.             <p>
  563.             {{ pimcore_textarea(\"content-text\",{
  564.                 \"nl2br\" : true
  565.             }) }}
  566.             </p>
  567.             <p>Sous-titre gras</p>
  568.             <p>
  569.             {{ pimcore_textarea(\"content-text-2\",{
  570.                 \"nl2br\" : true
  571.             }) }}
  572.             </p>
  573.             <p>Dates</p>
  574.             <p>
  575.             {{ pimcore_textarea(\"content-date\",{
  576.                 \"nl2br\" : true
  577.             }) }}
  578.             </p>
  579.             <div class=\"uk-alert uk-alert-primary\" uk-alert>
  580.                 <h2 class=\"uk-h2\">Modal du réglement du concours</h2>
  581.                 {{ pimcore_wysiwyg('reglement') }}
  582.             </div>
  583.             {% else %}
  584.             <div id=\"modal-reglement-2023\" class=\"uk-flex-top\" uk-modal>
  585.                 <div class=\"uk-modal-dialog uk-margin-auto-vertical\">
  586.                     <button class=\"uk-modal-close-full uk-close-large\" type=\"button\" uk-close></button>
  587.                     <div class=\"uk-modal-body\" uk-overflow-auto>
  588.                         {{ pimcore_wysiwyg('reglement') }}
  589.                     </div>
  590.                     <div class=\"uk-modal-footer uk-text-right\">
  591.                         <button class=\"uk-button uk-button-default uk-modal-close\" type=\"button\">{{ \"Fermer\"|trans }}</button>
  592.                     </div>
  593.                 </div>
  594.             </div>
  595.             <div class=\"apk-container-image uk-inline uk-visible@m\">
  596.                 {{ pimcore_image(\"banner-image\") }}
  597.                 {{ get_language_switcher_html(document, 'dropdown', 'code')|raw }}
  598.                 <div class=\"uk-position-center-left\">
  599.                     <div class=\"apk-title\">
  600.                         <h1>{{ \"Concours !\"|trans }}</h1>
  601.                     </div>
  602.                 </div>
  603.                 <div class=\"uk-position-top-right\">
  604.                     <div class=\"apk-date\">
  605.                         <p>{{ pimcore_textarea(\"content-date\",{\"nl2br\" : true}) }}</p>
  606.                     </div>
  607.                 </div>
  608.                 <div class=\"uk-position-bottom-left\">
  609.                     <p class=\"uk-margin-remove-bottom\">{{ pimcore_textarea(\"content-text\",{\"nl2br\" : true}) }}</p>
  610.                     <p class=\"uk-margin-remove-top\"><strong>{{ pimcore_textarea(\"content-text-2\",{\"nl2br\" : true}) }}</strong></p>
  611.                 </div>
  612.             </div>
  613.             <div class=\"apk-container-image uk-inline uk-hidden@m\">
  614.                 {{ pimcore_image(\"banner-image-mobile\") }}
  615.                 {{ get_language_switcher_html(document, 'dropdown', 'code')|raw }}
  616.                 <div class=\"uk-position-center-left\">
  617.                     <div class=\"apk-title\">
  618.                         <h1>{{ \"Concours !\"|trans }}</h1>
  619.                     </div>
  620.                 </div>
  621.                 <div class=\"uk-position-center-right\">
  622.                     <div class=\"apk-date\">
  623.                         <p>{{ pimcore_textarea(\"content-date\",{\"nl2br\" : true}) }}</p>
  624.                     </div>
  625.                 </div>
  626.                 <div class=\"uk-position-bottom-left\">
  627.                     <p class=\"uk-margin-remove-bottom\">{{ pimcore_textarea(\"content-text\",{\"nl2br\" : true}) }}</p>
  628.                     <p class=\"uk-margin-remove-top\"><strong>{{ pimcore_textarea(\"content-text-2\",{\"nl2br\" : true}) }}</strong></p>
  629.                 </div>
  630.             </div>
  631.             {% endif %}
  632.             <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\") }});\">
  633.                 <div class=\"uk-container apk-container1400\">
  634.                     {% if formStatus == 'robot' %}
  635.                         <div class=\"uk-alert-warning\" uk-alert>
  636.                             <p>{{ \"Une erreur recaptcha est survenue, merci de réessayer.\"|trans }}</p>
  637.                         </div>
  638.                     {% elseif formStatus == 'invalid' %}
  639.                         <div class=\"uk-alert-warning\" uk-alert>
  640.                             <p>{{ \"Vous n'avez pas remplis tout les champs, merci de réessayer.\"|trans }}</p>
  641.                         </div>
  642.                     {% elseif formStatus == 'alreadyPlayed' %}
  643.                         <div class=\"uk-alert-warning\" uk-alert>
  644.                             <p>{{ \"Vous avez déjà participé à ce concours\"|trans }}</p>
  645.                         </div>
  646.                     {% elseif formStatus == 'not-filled' %}
  647.                         <div class=\"uk-alert-warning\" uk-alert>
  648.                             <p>{{ \"Veuillez remplir tout les champs\"|trans }}</p>
  649.                         </div>
  650.                     {% endif %}
  651.                     {{ form_start(form,{'attr': {'id': '#concours2023', 'enctype' : 'multipart/form-data'}}) }}
  652.             
  653.                     <div class=\"apk-container-form\">
  654.                         <h2>{{ \"Question 1\"|trans }}</h2>
  655.                         <label class=\"uk-form-label required apk-label-is-linked-to-field apk-label-color\"
  656.                                 for=\"form-stacked-text\"> {{ form_label(form.choixmultiple) }} </label>
  657.                         {{ form_widget(form.choixmultiple) }}
  658.                     </div>
  659.                     <div class=\"apk-container-form\">
  660.                         <h2>{{ \"Question 2\"|trans }}</h2>
  661.                         <label class=\"apk-label-color\">{{\"Selon vous, combien de personnes rempliront ce formulaire ?*\"|trans}}</label>
  662.                         </br>
  663.                         <label class=\"uk-form-label apk-label-color\"
  664.                                 for=\"form-stacked-text\"> {{ form_label(form.message) }} </label>
  665.                         {{ form_widget(form.message) }}
  666.                     </div>
  667.                     <div class=\"apk-container-form uk-margin-medium-bottom\">
  668.                         <div class=\"uk-grid-small\" uk-grid>
  669.                             <div class=\"uk-width-1-1\">
  670.                                 <label class=\"uk-form-label\"
  671.                                         for=\"form-stacked-text\"> {{ form_label(form.lastname) }} </label>
  672.                                 {{ form_widget(form.lastname) }}
  673.                             </div>
  674.                             <div class=\"uk-width-1-1\">
  675.                                 <label class=\"uk-form-label\"
  676.                                         for=\"form-stacked-text\"> {{ form_label(form.firstname) }} </label>
  677.                                 {{ form_widget(form.firstname) }}
  678.                             </div>
  679.                             <div class=\"uk-width-1-1\">
  680.                                 <label class=\"uk-form-label\" for=\"form-stacked-text\"> {{ form_label(form.email) }} </label>
  681.                                 {{ form_widget(form.email) }}
  682.                             </div>
  683.                             <div class=\"uk-width-1-1\">
  684.                                 <label class=\"uk-form-label\" for=\"form-stacked-text\"> {{ form_label(form.preuvePaiement) }} </label>
  685.                                 {{ form_widget(form.preuvePaiement) }}
  686.                             </div>
  687.                             <div class=\"uk-width-1-1\">
  688.                                 {{ form_widget(form.gdpr) }}
  689.                                 <label for=\"concours2023_form_gdpr\" id=\"accept-condition\" class=\"uk-padding-remove\">
  690.                                     {{ \"J’accepte la politique de confidentialité, le traitement de mes données par Magnecaps\"|trans }}
  691.                                 </label>
  692.                             </div>
  693.                             <div class=\"uk-margin-small-top uk-margin-small-bottom uk-width-1-1\">
  694.                                 {{ form_widget(form.reglement) }}
  695.                                 <label for=\"concours2023_form_reglement\" id=\"accept-reglement\" class=\"uk-padding-remove\">
  696.                                     {{ \"J’accepte le règlement de ce concours\"|trans }}
  697.                                     <a href=\"#modal-reglement-2023\" uk-toggle>
  698.                                         <img uk-svg width=\"20\" height=\"20\" src=\"/static/img/pictos/information.svg\" alt=\"reglement\">
  699.                                     </a>
  700.                                 </label>
  701.                             </div>
  702.                             <div class=\"div-submit\">
  703.                                 {{ form_widget(form.recaptcha) }}
  704.                                 {{ form_widget(form.submit) }}
  705.                             </div>
  706.                         </div>
  707.                         <p class=\"uk-margin-remove-bottom\" style=\"font-size: 12px;\">{{\"*Champs obligatoires\"|trans}}</p>
  708.                     </div>
  709.                     {{ form_end(form) }}
  710.                     {% if formStatus == 'success' %}
  711.                         <div id=\"success\" uk-modal>
  712.                             <div class=\"uk-modal-dialog uk-modal-body apk-modal-sucess\">
  713.                                 <div class=\"uk-inline uk-text-center\">
  714.                                     <div class=\"uk-position-center-left apk-forme-left\">
  715.                                         <img src=\"/static/img/bgs/formes-un.png\" alt=\"\">
  716.                                     </div>
  717.                                     <div class=\"uk-text-right uk-margin-right uk-margin-small-top\">
  718.                                         <button class=\"uk-modal-close\" type=\"button\" aria-label=\"Close\" uk-close></button>
  719.                                     </div>
  720.                                     <div class=\"uk-flex uk-flex-center uk-flex-middle uk-height-1-1\">
  721.                                         <div class=\"apk-content-modal\">
  722.                                             <h2>{{ \"Merci pour votre participation !\"|trans }}</h2>
  723.                                             <p><strong>{{ \"Le tirage au sort aura lieu le 02/05/2023 et tous les gagnants seront avertis par e-mail.\"|trans }}</strong></p>
  724.                                             <p>{{ \"D'ici là n'hésitez pas à nous suivre sur les réseaux sociaux !\"|trans }}</p>
  725.                                             <div class=\"uk-flex uk-flex-center apk-logos-media\">
  726.                                                 {% if document.property('facebookUrl') %} 
  727.                                                     <a href=\"{{ document.property('facebookUrl') }}\" target=\"_blank\"><img src=\"/static/img/pictos/Facebook-logo.png\" alt=\"\"></a>
  728.                                                 {% endif %}
  729.                                                 {% if document.property('instagramUrl') %} 
  730.                                                     <a href=\"{{ document.property('instagramUrl') }}\" target=\"_blank\"><img src=\"/static/img/pictos/Instagram-logo.png\" alt=\"\"></a>
  731.                                                 {% endif %}
  732.                                             </div>
  733.                                         </div>
  734.                                     </div>
  735.                                     <div class=\"uk-position-center-right apk-forme-right\">
  736.                                         <img src=\"/static/img/bgs/formes-deux.png\" alt=\"\">
  737.                                     </div>
  738.                                 </div>
  739.                             </div>
  740.                         </div>
  741.                     {% endif %}
  742.                 </div>
  743.             </div>
  744.         </div>
  745.     </main><!-- end #main -->
  746.     {% do pimcore_head_link().appendStylesheet(asset('/static/framework/dropify/css/dropify.min.css')) %}
  747.     {% do pimcore_head_script().appendFile(asset('/static/framework/heic2any/heic2any.js')) %}
  748.     {% do pimcore_head_script().appendFile(asset('/static/framework/dropify/js/dropify.js')) %}
  749.     {% endblock %}
  750. {% block inlinescripts %}
  751.   {% set recaptchaKeyPublic = pimcore_website_config('recaptchaKeyPublic') %}
  752.   <script src=\"https://www.google.com/recaptcha/api.js?onload=onloadRecaptchaCallback&render={{ recaptchaKeyPublic }}\"></script>
  753.   <script>
  754.     if(\$('#success').length) {
  755.       UIkit.modal(\$('#success')).show();
  756.       console.log('success');
  757.     }
  758.     
  759.     function onloadRecaptchaCallback(){
  760.         grecaptcha.ready(function() {
  761.             grecaptcha.execute('{{ recaptchaKeyPublic }}', {action: 'concours2023'}).then(function(token) {
  762.             //alert('recaptcha is loaded');
  763.             var recaptcha = document.getElementById('concours2023_form_recaptcha');
  764.             recaptcha.value = token;
  765.             });
  766.         });
  767.     }
  768.     setInterval(function () {
  769.         grecaptcha.ready(function() {
  770.         grecaptcha.execute('{{ recaptchaKeyPublic }}', {action: 'concours2023'}).then(function(token) {
  771.         //alert('recaptcha is loaded');
  772.         var recaptcha = document.getElementById('concours2023_form_recaptcha');
  773.         recaptcha.value = token;
  774.         });
  775.     });
  776.     }, 110 * 1000);
  777.   </script>
  778. {% endblock inlinescripts %}""default/concours-2023.html.twig""/var/www/magnecapsv2.atypic-pp.be/www/templates/default/concours-2023.html.twig");
  779.     }
  780. }