var/cache/dev/twig/de/de36830eff0ed72e866309c331f2e5b9.php line 39

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.html.twig */
  14. class __TwigTemplate_b3f5a83316cbdd407854ffa97f189dc6 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.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.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.html.twig"));
  39.         $this->parent $this->loadTemplate("layout.html.twig""default/concours.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.     ";
  57.         // line 10
  58.         echo $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context"areablock""myAreablock");
  59.         echo "
  60.     ";
  61.         // line 11
  62.         echo $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context"areablock""contentTop");
  63.         echo "
  64.     <!-- #main -->
  65.     <main id=\"main\" role=\"main\">
  66.         ";
  67.         // line 16
  68.         if ((isset($context["editmode"]) || array_key_exists("editmode"$context) ? $context["editmode"] : (function () { throw new RuntimeError('Variable "editmode" does not exist.'16$this->source); })())) {
  69.             // line 17
  70.             echo "            <div class=\"editmode-img\">
  71.                 <div class=\"uk-margin-xlarge-top\">
  72.                     ";
  73.             // line 19
  74.             echo $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context"image""facebook-image");
  75.             echo "
  76.                     ";
  77.             // line 20
  78.             echo $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context"image""instagram-image");
  79.             echo "
  80.                 </div>
  81.                 ";
  82.             // line 23
  83.             echo $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context"image""reseaux-forme");
  84.             echo "
  85.                 </br>
  86.                 <div>Type de heading pour le titre ?</div>
  87.                 ";
  88.             // line 27
  89.             echo $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context"select""content-heading", ["store" => [=> [=> "span"=> "span"], => [=> "h1"=> "Heading 1"], => [=> "h2"=> "Heading 2"], => [=> "h3"=> "Heading 3"], => [=> "h4"=> "Heading 4"], => [=> "h5"=> "Heading 5"], => [=> "h6"=> "Heading 6"]], "defaultValue" => "h2"]);
  90.             // line 38
  91.             echo "
  92.                 <div><strong>Style</strong> du heading pour le titre ?</div>
  93.                 ";
  94.             // line 40
  95.             echo $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context"select""content-heading-style", ["store" => [=> [=> "h1"=> "Heading 1"], => [=> "h2"=> "Heading 2"], => [=> "h3"=> "Heading 3"], => [=> "h4"=> "Heading 4"], => [=> "h5"=> "Heading 5"], => [=> "h6"=> "Heading 6"]], "defaultValue" => "h2"]);
  96.             // line 50
  97.             echo "
  98.                 <h2 class=\"\">";
  99.             // line 53
  100.             echo $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context"textarea""content-title", ["nl2br" => true]);
  101.             echo "</h2>
  102.                 <div>Type de heading pour le sous-titre ?</div>
  103.                 ";
  104.             // line 56
  105.             echo $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context"select""subtitle-heading", ["store" => [=> [=> "span"=> "span"], => [=> "h1"=> "Heading 1"], => [=> "h2"=> "Heading 2"], => [=> "h3"=> "Heading 3"], => [=> "h4"=> "Heading 4"], => [=> "h5"=> "Heading 5"], => [=> "h6"=> "Heading 6"]], "defaultValue" => "h2"]);
  106.             // line 67
  107.             echo "
  108.                 <div><strong>Style</strong> du heading pour le sous-titre ?</div>
  109.                 ";
  110.             // line 69
  111.             echo $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context"select""subtitle-style", ["store" => [=> [=> "h1"=> "Heading 1"], => [=> "h2"=> "Heading 2"], => [=> "h3"=> "Heading 3"], => [=> "h4"=> "Heading 4"], => [=> "h5"=> "Heading 5"], => [=> "h6"=> "Heading 6"]], "defaultValue" => "h2"]);
  112.             // line 79
  113.             echo "
  114.                 <h2 class=\"\">";
  115.             // line 80
  116.             echo $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context"textarea""content-subtitle", ["nl2br" => true]);
  117.             echo "</h2>
  118.                 ";
  119.             // line 82
  120.             echo $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context"image""forme-image");
  121.             echo "
  122.                 <div>
  123.                     ";
  124.             // line 84
  125.             echo $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context"textarea""content");
  126.             echo "
  127.                     ";
  128.             // line 85
  129.             echo $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context"image""logo-image");
  130.             echo "
  131.                 </div>
  132.                 ";
  133.             // line 87
  134.             echo $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context"link""link-logo");
  135.             echo "
  136.                 ";
  137.             // line 88
  138.             echo $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context"image""logo-right");
  139.             echo "
  140.             </div>
  141.             ";
  142.             // line 90
  143.             echo $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context"image""background-image");
  144.             echo "
  145.         ";
  146.         } else {
  147.             // line 93
  148.             echo "            <div class=\"div-fond-concours\" uk-height-match=\"target: changed\">
  149.                  <div class=\"div-fond-concours-cropped uk-cover-container apk-height-match\" >
  150.                     ";
  151.             // line 95
  152.             echo twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context"image""background-image"), "thumbnail", [=> "concours-thumb"], "method"falsefalsefalse95), "html", [=> ["imgAttributes" => ["uk-cover" => null]]], "method"falsefalsefalse95);
  153.             echo "
  154.                 </div>
  155.                 <div class=\"div-fond-blanc\" uk-grid>
  156.                     <div class=\"uk-width-1-3@m apk-height-match\">
  157.                         <div class=\"div-text-concours\">
  158.                             <div class=\"polygone uk-visible@m\">
  159.                                 ";
  160.             // line 102
  161.             echo $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context"image""reseaux-forme");
  162.             echo "
  163.                                 <div class=\"reseaux uk-flex\">
  164.                                     ";
  165.             // line 105
  166.             if (twig_get_attribute($this->env$this->source, (isset($context["document"]) || array_key_exists("document"$context) ? $context["document"] : (function () { throw new RuntimeError('Variable "document" does not exist.'105$this->source); })()), "property", [=> "facebookUrl"], "method"falsefalsefalse105)) {
  167.                 // line 106
  168.                 echo "                                        <a href=\"";
  169.                 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.'106$this->source); })()), "property", [=> "facebookUrl"], "method"falsefalsefalse106), "html"nulltrue);
  170.                 echo "\" target=\"_blank\"><img
  171.                                                     src=\"";
  172.                 // line 107
  173.                 echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context"image""facebook-image"), "thumbnail", [=> "reseaux"], "method"falsefalsefalse107), "html"nulltrue);
  174.                 echo "\"></a>
  175.                                     ";
  176.             }
  177.             // line 109
  178.             echo "                                    ";
  179.             if (twig_get_attribute($this->env$this->source, (isset($context["document"]) || array_key_exists("document"$context) ? $context["document"] : (function () { throw new RuntimeError('Variable "document" does not exist.'109$this->source); })()), "property", [=> "instagramUrl"], "method"falsefalsefalse109)) {
  180.                 // line 110
  181.                 echo "                                        <a href=\"";
  182.                 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.'110$this->source); })()), "property", [=> "instagramUrl"], "method"falsefalsefalse110), "html"nulltrue);
  183.                 echo "\" target=\"_blank\"><img
  184.                                                     src=\"";
  185.                 // line 111
  186.                 echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context"image""instagram-image"), "thumbnail", [=> "reseaux"], "method"falsefalsefalse111), "html"nulltrue);
  187.                 echo "\"></a>
  188.                                     ";
  189.             }
  190.             // line 113
  191.             echo "                                </div>
  192.                             </div>
  193.                             <div class=\"uk-margin-xlarge-top\">
  194.                                 ";
  195.             // line 117
  196.             if ( !twig_get_attribute($this->env$this->source$this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context"textarea""content-title"), "isEmpty", [], "any"falsefalsefalse117)) {
  197.                 // line 118
  198.                 echo "                                ";
  199.                 if ((twig_get_attribute($this->env$this->source$this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context"select""content-heading"), "data", [], "any"falsefalsefalse118) == "span")) {
  200.                     // line 119
  201.                     echo "
  202.                                 <span class=\"uk-";
  203.                     // line 120
  204.                     echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context"select""content-heading-style"), "getData", [], "method"falsefalsefalse120), "html"nulltrue);
  205.                     echo "\">";
  206.                     echo $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context"textarea""content-title", ["nl2br" => true]);
  207.                     echo "</span>
  208.                                 ";
  209.                 } else {
  210.                     // line 123
  211.                     echo "                                ";
  212.                     $context["content_heading"] = twig_get_attribute($this->env$this->source$this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context"select""content-heading"), "getData", [], "method"falsefalsefalse123);
  213.                     // line 124
  214.                     echo "                                <";
  215.                     echo twig_escape_filter($this->env, (isset($context["content_heading"]) || array_key_exists("content_heading"$context) ? $context["content_heading"] : (function () { throw new RuntimeError('Variable "content_heading" does not exist.'124$this->source); })()), "html"nulltrue);
  216.                     echo " class=\"uk-";
  217.                     echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context"select""content-heading-style"), "getData", [], "method"falsefalsefalse124), "html"nulltrue);
  218.                     echo "
  219.                                 \">
  220.                                 ";
  221.                     // line 126
  222.                     echo $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context"textarea""content-title", ["nl2br" => true]);
  223.                     // line 127
  224.                     echo "
  225.                             </";
  226.                     // line 128
  227.                     echo twig_escape_filter($this->env, (isset($context["content_heading"]) || array_key_exists("content_heading"$context) ? $context["content_heading"] : (function () { throw new RuntimeError('Variable "content_heading" does not exist.'128$this->source); })()), "html"nulltrue);
  228.                     echo ">
  229.                             ";
  230.                 }
  231.                 // line 130
  232.                 echo "                            ";
  233.             }
  234.             // line 131
  235.             echo "                        </div>
  236.                         <p class=\"content-textarea-concours\">";
  237.             // line 133
  238.             echo $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context"textarea""content");
  239.             echo "</p>
  240.                         <div class=\"forme-concours\">";
  241.             // line 135
  242.             echo $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context"image""forme-image");
  243.             echo "</div>
  244.                     </div>
  245.                 </div>
  246.                 
  247.                 <div class=\"uk-width-1-3@m div-form\">
  248.                     <div>
  249.                         <div class=\"uk-text-center\">
  250.                             ";
  251.             // line 142
  252.             echo $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context"image""logo-image", ["thumbnail" => "logo-concours-thumb"]);
  253.             echo "
  254.                         </div>
  255.                         ";
  256.             // line 145
  257.             if ( !twig_get_attribute($this->env$this->source$this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context"textarea""content-subtitle"), "isEmpty", [], "any"falsefalsefalse145)) {
  258.                 // line 146
  259.                 echo "                        ";
  260.                 if ((twig_get_attribute($this->env$this->source$this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context"select""subtitle-heading"), "data", [], "any"falsefalsefalse146) == "span")) {
  261.                     // line 147
  262.                     echo "
  263.                             <span class=\"uk-";
  264.                     // line 148
  265.                     echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context"select""subtitle-style"), "getData", [], "method"falsefalsefalse148), "html"nulltrue);
  266.                     echo "\">";
  267.                     echo $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context"textarea""content-subtitle", ["nl2br" => true]);
  268.                     echo "</span>
  269.                             ";
  270.                 } else {
  271.                     // line 151
  272.                     echo "                                ";
  273.                     $context["content_heading"] = twig_get_attribute($this->env$this->source$this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context"select""subtitle-heading"), "getData", [], "method"falsefalsefalse151);
  274.                     // line 152
  275.                     echo "                                <";
  276.                     echo twig_escape_filter($this->env, (isset($context["content_heading"]) || array_key_exists("content_heading"$context) ? $context["content_heading"] : (function () { throw new RuntimeError('Variable "content_heading" does not exist.'152$this->source); })()), "html"nulltrue);
  277.                     echo " class=\"uk-";
  278.                     echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context"select""subtitle-style"), "getData", [], "method"falsefalsefalse152), "html"nulltrue);
  279.                     echo "\">
  280.                                     ";
  281.                     // line 153
  282.                     echo $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context"textarea""content-subtitle", ["nl2br" => true]);
  283.                     echo "
  284.                                 </";
  285.                     // line 154
  286.                     echo twig_escape_filter($this->env, (isset($context["content_heading"]) || array_key_exists("content_heading"$context) ? $context["content_heading"] : (function () { throw new RuntimeError('Variable "content_heading" does not exist.'154$this->source); })()), "html"nulltrue);
  287.                     echo ">
  288.                             ";
  289.                 }
  290.                 // line 156
  291.                 echo "                        ";
  292.             }
  293.             // line 157
  294.             echo "
  295.                         ";
  296.             // line 159
  297.             if (((isset($context["formStatus"]) || array_key_exists("formStatus"$context) ? $context["formStatus"] : (function () { throw new RuntimeError('Variable "formStatus" does not exist.'159$this->source); })()) == "robot")) {
  298.                 // line 160
  299.                 echo "                            <div class=\"uk-alert-warning\" uk-alert>
  300.                                 <p>";
  301.                 // line 161
  302.                 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);
  303.                 echo "</p>
  304.                             </div>
  305.                         ";
  306.             } elseif ((            // line 163
  307. (isset($context["formStatus"]) || array_key_exists("formStatus"$context) ? $context["formStatus"] : (function () { throw new RuntimeError('Variable "formStatus" does not exist.'163$this->source); })()) == "invalid")) {
  308.                 // line 164
  309.                 echo "                            <div class=\"uk-alert-warning\" uk-alert>
  310.                                 <p>";
  311.                 // line 165
  312.                 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);
  313.                 echo "</p>
  314.                             </div>
  315.                         ";
  316.             } elseif ((            // line 167
  317. (isset($context["formStatus"]) || array_key_exists("formStatus"$context) ? $context["formStatus"] : (function () { throw new RuntimeError('Variable "formStatus" does not exist.'167$this->source); })()) == "alreadyPlayed")) {
  318.                 // line 168
  319.                 echo "                            <div class=\"uk-alert-warning\" uk-alert>
  320.                                 <p>";
  321.                 // line 169
  322.                 echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Vous avez déjà participé à ce concours"), "html"nulltrue);
  323.                 echo "</p>
  324.                             </div>
  325.                         ";
  326.             } elseif ((            // line 171
  327. (isset($context["formStatus"]) || array_key_exists("formStatus"$context) ? $context["formStatus"] : (function () { throw new RuntimeError('Variable "formStatus" does not exist.'171$this->source); })()) == "not-filled")) {
  328.                 // line 172
  329.                 echo "                            <div class=\"uk-alert-warning\" uk-alert>
  330.                                 <p>";
  331.                 // line 173
  332.                 echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Veuillez remplir tout les champs"), "html"nulltrue);
  333.                 echo "</p>
  334.                             </div>
  335.                         ";
  336.             }
  337.             // line 176
  338.             echo "
  339.                         ";
  340.             // line 177
  341.             if (((isset($context["formStatus"]) || array_key_exists("formStatus"$context) ? $context["formStatus"] : (function () { throw new RuntimeError('Variable "formStatus" does not exist.'177$this->source); })()) != "success")) {
  342.                 // line 178
  343.                 echo "
  344.                             ";
  345.                 // line 179
  346.                 echo                 $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->renderBlock((isset($context["form"]) || array_key_exists("form"$context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.'179$this->source); })()), 'form_start', ["attr" => ["id" => "contact-form""enctype" => "multipart/form-data"]]);
  347.                 echo "
  348.                             <div class=\"uk-grid-small form-concours-grid\" uk-grid>
  349.                                 <div class=\"uk-width-1-1\">
  350.                                     <label class=\"uk-form-label required apk-label-is-linked-to-field\"
  351.                                            for=\"form-stacked-text\"> ";
  352.                 // line 184
  353.                 echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(twig_get_attribute($this->env$this->source, (isset($context["form"]) || array_key_exists("form"$context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.'184$this->source); })()), "choixmultiple", [], "any"falsefalsefalse184), 'label');
  354.                 echo " </label>
  355.                                     ";
  356.                 // line 185
  357.                 echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(twig_get_attribute($this->env$this->source, (isset($context["form"]) || array_key_exists("form"$context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.'185$this->source); })()), "choixmultiple", [], "any"falsefalsefalse185), 'widget');
  358.                 echo "
  359.                                 </div>
  360.                                 <div class=\"uk-width-1-1\">
  361.                                     <label class=\"uk-form-label\"
  362.                                            for=\"form-stacked-text\"> ";
  363.                 // line 189
  364.                 echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(twig_get_attribute($this->env$this->source, (isset($context["form"]) || array_key_exists("form"$context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.'189$this->source); })()), "message", [], "any"falsefalsefalse189), 'label');
  365.                 echo " </label>
  366.                                     ";
  367.                 // line 190
  368.                 echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(twig_get_attribute($this->env$this->source, (isset($context["form"]) || array_key_exists("form"$context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.'190$this->source); })()), "message", [], "any"falsefalsefalse190), 'widget');
  369.                 echo "
  370.                                 </div>
  371.                                 <div class=\"uk-width-1-2\">
  372.                                     <label class=\"uk-form-label\"
  373.                                            for=\"form-stacked-text\"> ";
  374.                 // line 194
  375.                 echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(twig_get_attribute($this->env$this->source, (isset($context["form"]) || array_key_exists("form"$context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.'194$this->source); })()), "lastname", [], "any"falsefalsefalse194), 'label');
  376.                 echo " </label>
  377.                                     ";
  378.                 // line 195
  379.                 echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(twig_get_attribute($this->env$this->source, (isset($context["form"]) || array_key_exists("form"$context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.'195$this->source); })()), "lastname", [], "any"falsefalsefalse195), 'widget');
  380.                 echo "
  381.                                 </div>
  382.                                 <div class=\"uk-width-1-2\">
  383.                                     <label class=\"uk-form-label\"
  384.                                            for=\"form-stacked-text\"> ";
  385.                 // line 199
  386.                 echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(twig_get_attribute($this->env$this->source, (isset($context["form"]) || array_key_exists("form"$context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.'199$this->source); })()), "firstname", [], "any"falsefalsefalse199), 'label');
  387.                 echo " </label>
  388.                                     ";
  389.                 // line 200
  390.                 echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(twig_get_attribute($this->env$this->source, (isset($context["form"]) || array_key_exists("form"$context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.'200$this->source); })()), "firstname", [], "any"falsefalsefalse200), 'widget');
  391.                 echo "
  392.                                 </div>
  393.                                 <div class=\"uk-width-1-1\">
  394.                                     <label class=\"uk-form-label\" for=\"form-stacked-text\"> ";
  395.                 // line 203
  396.                 echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(twig_get_attribute($this->env$this->source, (isset($context["form"]) || array_key_exists("form"$context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.'203$this->source); })()), "email", [], "any"falsefalsefalse203), 'label');
  397.                 echo " </label>
  398.                                     ";
  399.                 // line 204
  400.                 echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(twig_get_attribute($this->env$this->source, (isset($context["form"]) || array_key_exists("form"$context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.'204$this->source); })()), "email", [], "any"falsefalsefalse204), 'widget');
  401.                 echo "
  402.                                 </div>
  403.                                 <div class=\"uk-width-1-1\">
  404.                                     <label class=\"uk-form-label\" for=\"form-stacked-text\"> ";
  405.                 // line 207
  406.                 echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(twig_get_attribute($this->env$this->source, (isset($context["form"]) || array_key_exists("form"$context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.'207$this->source); })()), "preuvePaiement", [], "any"falsefalsefalse207), 'label');
  407.                 echo " </label>
  408.                                     ";
  409.                 // line 208
  410.                 echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(twig_get_attribute($this->env$this->source, (isset($context["form"]) || array_key_exists("form"$context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.'208$this->source); })()), "preuvePaiement", [], "any"falsefalsefalse208), 'widget');
  411.                 echo "
  412.                                 </div>
  413.                                 <div>
  414.                                     ";
  415.                 // line 211
  416.                 echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(twig_get_attribute($this->env$this->source, (isset($context["form"]) || array_key_exists("form"$context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.'211$this->source); })()), "gdpr", [], "any"falsefalsefalse211), 'widget');
  417.                 echo "
  418.                                     <label for=\"contact_form_gdpr\" id=\"accept-condition\" class=\"uk-padding-remove\">
  419.                                         ";
  420.                 // line 213
  421.                 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);
  422.                 echo "
  423.                                     </label>
  424.                                 </div>
  425.                                 <div class=\"uk-margin-small-top uk-margin-small-bottom\">
  426.                                     ";
  427.                 // line 217
  428.                 echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(twig_get_attribute($this->env$this->source, (isset($context["form"]) || array_key_exists("form"$context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.'217$this->source); })()), "reglement", [], "any"falsefalsefalse217), 'widget');
  429.                 echo "
  430.                                     <label for=\"contact_form_reglement\" id=\"accept-reglement\" class=\"uk-padding-remove\">
  431.                                         ";
  432.                 // line 219
  433.                 echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("J’accepte le règlement de ce concours"), "html"nulltrue);
  434.                 echo "
  435.                                         <a href=\"#modal-reglement\" uk-toggle>
  436.                                             <img uk-svg width=\"20\" height=\"20\" src=\"/static/img/pictos/information.svg\" alt=\"reglement\">
  437.                                         </a>
  438.                                     </label>
  439.                                 </div>
  440.                                 <div class=\"div-submit\">
  441.                                     ";
  442.                 // line 226
  443.                 echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(twig_get_attribute($this->env$this->source, (isset($context["form"]) || array_key_exists("form"$context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.'226$this->source); })()), "recaptcha", [], "any"falsefalsefalse226), 'widget');
  444.                 echo "
  445.                                     ";
  446.                 // line 227
  447.                 echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(twig_get_attribute($this->env$this->source, (isset($context["form"]) || array_key_exists("form"$context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.'227$this->source); })()), "submit", [], "any"falsefalsefalse227), 'widget');
  448.                 echo "
  449.                                 </div>
  450.                             </div>
  451.                             ";
  452.                 // line 231
  453.                 echo                 $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->renderBlock((isset($context["form"]) || array_key_exists("form"$context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.'231$this->source); })()), 'form_end');
  454.                 echo "
  455.                         ";
  456.             }
  457.             // line 234
  458.             echo "                    </div>
  459.                 </div>
  460.                 <div class=\"uk-width-1-3@m\">
  461.                     ";
  462.             // line 237
  463.             echo $this->extensions['App\Twig\Extension\Apik']->getLanguageSwitcherHtml((isset($context["document"]) || array_key_exists("document"$context) ? $context["document"] : (function () { throw new RuntimeError('Variable "document" does not exist.'237$this->source); })()), "dropdown""code");
  464.             echo "
  465.                     <div class=\"logo-right\">
  466.                         <a href=\"";
  467.             // line 240
  468.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context"link""link-logo"), "href", [], "any"falsefalsefalse240), "html"nulltrue);
  469.             echo "\" target=\"_blank\"><img
  470.                                     src=\"";
  471.             // line 241
  472.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context"image""logo-right"), "thumbnail", [=> ""], "method"falsefalsefalse241), "html"nulltrue);
  473.             echo "\"></a>
  474.                     </div>
  475.                 </div>
  476.             ";
  477.         }
  478.         // line 245
  479.         echo "                ";
  480.         if ((isset($context["editmode"]) || array_key_exists("editmode"$context) ? $context["editmode"] : (function () { throw new RuntimeError('Variable "editmode" does not exist.'245$this->source); })())) {
  481.             // line 246
  482.             echo "                    <div class=\"uk-alert uk-alert-primary\" uk-alert>
  483.                         <h2 class=\"uk-h2\">Modal du réglement du concours</h2>
  484.                         ";
  485.             // line 248
  486.             echo $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context"wysiwyg""reglement");
  487.             echo "
  488.                     </div>
  489.                 ";
  490.         } else {
  491.             // line 251
  492.             echo "
  493.                     <div id=\"modal-reglement\" class=\"uk-flex-top\" uk-modal>
  494.                         <div class=\"uk-modal-dialog uk-margin-auto-vertical\">
  495.                             <button class=\"uk-modal-close-full uk-close-large\" type=\"button\" uk-close></button>
  496.                             <div class=\"uk-modal-body\" uk-overflow-auto>
  497.                                 ";
  498.             // line 256
  499.             echo $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context"wysiwyg""reglement");
  500.             echo "
  501.                             </div>
  502.                             <div class=\"uk-modal-footer uk-text-right\">
  503.                                 <button class=\"uk-button uk-button-default uk-modal-close\" type=\"button\">";
  504.             // line 259
  505.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Fermer"), "html"nulltrue);
  506.             echo "</button>
  507.                             </div>
  508.                         </div>
  509.                     </div>
  510.                 ";
  511.         }
  512.         // line 264
  513.         echo "            
  514.         <div class=\"area-concours\">";
  515.         // line 265
  516.         echo $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context"areablock""contentBottom");
  517.         echo "</div>
  518.     </main><!-- end #main -->
  519.     ";
  520.         // line 268
  521.         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"falsefalsefalse268);
  522.         // line 269
  523.         echo "    ";
  524.         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"falsefalsefalse269);
  525.         // line 270
  526.         echo "    ";
  527.         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"falsefalsefalse270);
  528.         // line 271
  529.         echo "
  530. ";
  531.         
  532.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  533.         
  534.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  535.     }
  536.     // line 274
  537.     public function block_inlinescripts($context, array $blocks = [])
  538.     {
  539.         $macros $this->macros;
  540.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  541.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""inlinescripts"));
  542.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  543.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""inlinescripts"));
  544.         // line 275
  545.         echo "
  546.   ";
  547.         // line 276
  548.         $context["recaptchaKeyPublic"] = $this->extensions['Pimcore\Twig\Extension\WebsiteConfigExtension']->getWebsiteConfig("recaptchaKeyPublic");
  549.         // line 277
  550.         echo "
  551.   <script src=\"https://www.google.com/recaptcha/api.js?onload=onloadRecaptchaCallback&render=";
  552.         // line 278
  553.         echo twig_escape_filter($this->env, (isset($context["recaptchaKeyPublic"]) || array_key_exists("recaptchaKeyPublic"$context) ? $context["recaptchaKeyPublic"] : (function () { throw new RuntimeError('Variable "recaptchaKeyPublic" does not exist.'278$this->source); })()), "html"nulltrue);
  554.         echo "\"></script>
  555.   <script>
  556.       function onloadRecaptchaCallback(){
  557.         grecaptcha.ready(function() {
  558.           grecaptcha.execute('";
  559.         // line 283
  560.         echo twig_escape_filter($this->env, (isset($context["recaptchaKeyPublic"]) || array_key_exists("recaptchaKeyPublic"$context) ? $context["recaptchaKeyPublic"] : (function () { throw new RuntimeError('Variable "recaptchaKeyPublic" does not exist.'283$this->source); })()), "html"nulltrue);
  561.         echo "', {action: 'contact'}).then(function(token) {
  562.             //alert('recaptcha is loaded');
  563.             var recaptcha = document.getElementById('contact_form_recaptcha');
  564.             recaptcha.value = token;
  565.           });
  566.         });
  567.       }
  568.   </script>
  569. ";
  570.         
  571.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  572.         
  573.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  574.     }
  575.     public function getTemplateName()
  576.     {
  577.         return "default/concours.html.twig";
  578.     }
  579.     public function isTraitable()
  580.     {
  581.         return false;
  582.     }
  583.     public function getDebugInfo()
  584.     {
  585.         return array (  603 => 283,  595 => 278,  592 => 277,  590 => 276,  587 => 275,  577 => 274,  566 => 271,  563 => 270,  560 => 269,  558 => 268,  552 => 265,  549 => 264,  541 => 259,  535 => 256,  528 => 251,  522 => 248,  518 => 246,  515 => 245,  508 => 241,  504 => 240,  498 => 237,  493 => 234,  487 => 231,  480 => 227,  476 => 226,  466 => 219,  461 => 217,  454 => 213,  449 => 211,  443 => 208,  439 => 207,  433 => 204,  429 => 203,  423 => 200,  419 => 199,  412 => 195,  408 => 194,  401 => 190,  397 => 189,  390 => 185,  386 => 184,  378 => 179,  375 => 178,  373 => 177,  370 => 176,  364 => 173,  361 => 172,  359 => 171,  354 => 169,  351 => 168,  349 => 167,  344 => 165,  341 => 164,  339 => 163,  334 => 161,  331 => 160,  329 => 159,  325 => 157,  322 => 156,  317 => 154,  313 => 153,  306 => 152,  303 => 151,  295 => 148,  292 => 147,  289 => 146,  287 => 145,  281 => 142,  271 => 135,  266 => 133,  262 => 131,  259 => 130,  254 => 128,  251 => 127,  249 => 126,  241 => 124,  238 => 123,  230 => 120,  227 => 119,  224 => 118,  222 => 117,  216 => 113,  211 => 111,  206 => 110,  203 => 109,  198 => 107,  193 => 106,  191 => 105,  185 => 102,  175 => 95,  171 => 93,  165 => 90,  160 => 88,  156 => 87,  151 => 85,  147 => 84,  142 => 82,  137 => 80,  134 => 79,  132 => 69,  128 => 67,  126 => 56,  120 => 53,  115 => 50,  113 => 40,  109 => 38,  107 => 27,  100 => 23,  94 => 20,  90 => 19,  86 => 17,  84 => 16,  76 => 11,  72 => 10,  69 => 9,  59 => 8,  36 => 1,);
  586.     }
  587.     public function getSourceContext()
  588.     {
  589.         return new Source("{% extends \"layout.html.twig\" %}
  590. {#
  591. {% use AppBundle/Helper/Apik %}
  592. #}
  593. {% block content %}
  594.     {{ pimcore_areablock(\"myAreablock\") }}
  595.     {{ pimcore_areablock('contentTop') }}
  596.     <!-- #main -->
  597.     <main id=\"main\" role=\"main\">
  598.         {% if editmode %}
  599.             <div class=\"editmode-img\">
  600.                 <div class=\"uk-margin-xlarge-top\">
  601.                     {{ pimcore_image(\"facebook-image\") }}
  602.                     {{ pimcore_image(\"instagram-image\") }}
  603.                 </div>
  604.                 {{ pimcore_image('reseaux-forme') }}
  605.                 </br>
  606.                 <div>Type de heading pour le titre ?</div>
  607.                 {{ pimcore_select(\"content-heading\", {
  608.                     \"store\" : [
  609.                         ['span', 'span'],
  610.                         ['h1', 'Heading 1'],
  611.                         ['h2', 'Heading 2'],
  612.                         ['h3', 'Heading 3'],
  613.                         ['h4', 'Heading 4'],
  614.                         ['h5', 'Heading 5'],
  615.                         ['h6', 'Heading 6']
  616.                     ],
  617.                     \"defaultValue\" : \"h2\"
  618.                 }) }}
  619.                 <div><strong>Style</strong> du heading pour le titre ?</div>
  620.                 {{ pimcore_select(\"content-heading-style\", {
  621.                     \"store\" : [
  622.                         ['h1', 'Heading 1'],
  623.                         ['h2', 'Heading 2'],
  624.                         ['h3', 'Heading 3'],
  625.                         ['h4', 'Heading 4'],
  626.                         ['h5', 'Heading 5'],
  627.                         ['h6', 'Heading 6']
  628.                     ],
  629.                     \"defaultValue\" : \"h2\"
  630.                 }) }}
  631.                 <h2 class=\"\">{{ pimcore_textarea('content-title', {'nl2br' : true}) }}</h2>
  632.                 <div>Type de heading pour le sous-titre ?</div>
  633.                 {{ pimcore_select(\"subtitle-heading\", {
  634.                     \"store\" : [
  635.                         ['span', 'span'],
  636.                         ['h1', 'Heading 1'],
  637.                         ['h2', 'Heading 2'],
  638.                         ['h3', 'Heading 3'],
  639.                         ['h4', 'Heading 4'],
  640.                         ['h5', 'Heading 5'],
  641.                         ['h6', 'Heading 6']
  642.                     ],
  643.                     \"defaultValue\" : \"h2\"
  644.                 }) }}
  645.                 <div><strong>Style</strong> du heading pour le sous-titre ?</div>
  646.                 {{ pimcore_select(\"subtitle-style\", {
  647.                     \"store\" : [
  648.                         ['h1', 'Heading 1'],
  649.                         ['h2', 'Heading 2'],
  650.                         ['h3', 'Heading 3'],
  651.                         ['h4', 'Heading 4'],
  652.                         ['h5', 'Heading 5'],
  653.                         ['h6', 'Heading 6']
  654.                     ],
  655.                     \"defaultValue\" : \"h2\"
  656.                 }) }}
  657.                 <h2 class=\"\">{{ pimcore_textarea('content-subtitle', {'nl2br' : true}) }}</h2>
  658.                 {{ pimcore_image(\"forme-image\") }}
  659.                 <div>
  660.                     {{ pimcore_textarea(\"content\") }}
  661.                     {{ pimcore_image(\"logo-image\") }}
  662.                 </div>
  663.                 {{ pimcore_link(\"link-logo\") }}
  664.                 {{ pimcore_image(\"logo-right\") }}
  665.             </div>
  666.             {{ pimcore_image('background-image') }}
  667.         {% else %}
  668.             <div class=\"div-fond-concours\" uk-height-match=\"target: changed\">
  669.                  <div class=\"div-fond-concours-cropped uk-cover-container apk-height-match\" >
  670.                     {{ pimcore_image('background-image').thumbnail('concours-thumb').html({'imgAttributes' : {'uk-cover' : null}})|raw }}
  671.                 </div>
  672.                 <div class=\"div-fond-blanc\" uk-grid>
  673.                     <div class=\"uk-width-1-3@m apk-height-match\">
  674.                         <div class=\"div-text-concours\">
  675.                             <div class=\"polygone uk-visible@m\">
  676.                                 {{ pimcore_image('reseaux-forme') }}
  677.                                 <div class=\"reseaux uk-flex\">
  678.                                     {% if document.property('facebookUrl') %}
  679.                                         <a href=\"{{ document.property('facebookUrl') }}\" target=\"_blank\"><img
  680.                                                     src=\"{{ pimcore_image('facebook-image').thumbnail('reseaux') }}\"></a>
  681.                                     {% endif %}
  682.                                     {% if document.property('instagramUrl') %}
  683.                                         <a href=\"{{ document.property('instagramUrl') }}\" target=\"_blank\"><img
  684.                                                     src=\"{{ pimcore_image('instagram-image').thumbnail('reseaux') }}\"></a>
  685.                                     {% endif %}
  686.                                 </div>
  687.                             </div>
  688.                             <div class=\"uk-margin-xlarge-top\">
  689.                                 {% if not pimcore_textarea(\"content-title\").isEmpty %}
  690.                                 {% if pimcore_select(\"content-heading\").data == \"span\" %}
  691.                                 <span class=\"uk-{{ pimcore_select(\"content-heading-style\").getData() }}\">{{ pimcore_textarea('content-title', {'nl2br' : true}) }}</span>
  692.                                 {% else %}
  693.                                 {% set content_heading = pimcore_select(\"content-heading\").getData() %}
  694.                                 <{{ content_heading }} class=\"uk-{{ pimcore_select(\"content-heading-style\").getData() }}
  695.                                 \">
  696.                                 {{ pimcore_textarea(\"content-title\", {
  697.                                     \"nl2br\" : true})|raw }}
  698.                             </{{ content_heading }}>
  699.                             {% endif %}
  700.                             {% endif %}
  701.                         </div>
  702.                         <p class=\"content-textarea-concours\">{{ pimcore_textarea(\"content\") }}</p>
  703.                         <div class=\"forme-concours\">{{ pimcore_image(\"forme-image\") }}</div>
  704.                     </div>
  705.                 </div>
  706.                 
  707.                 <div class=\"uk-width-1-3@m div-form\">
  708.                     <div>
  709.                         <div class=\"uk-text-center\">
  710.                             {{ pimcore_image(\"logo-image\", {\"thumbnail\": \"logo-concours-thumb\"}) }}
  711.                         </div>
  712.                         {% if not pimcore_textarea(\"content-subtitle\").isEmpty %}
  713.                         {% if pimcore_select(\"subtitle-heading\").data == \"span\" %}
  714.                             <span class=\"uk-{{ pimcore_select(\"subtitle-style\").getData() }}\">{{ pimcore_textarea('content-subtitle', {'nl2br' : true}) }}</span>
  715.                             {% else %}
  716.                                 {% set content_heading = pimcore_select(\"subtitle-heading\").getData() %}
  717.                                 <{{ content_heading }} class=\"uk-{{ pimcore_select(\"subtitle-style\").getData() }}\">
  718.                                     {{ pimcore_textarea(\"content-subtitle\", {\"nl2br\" : true})|raw }}
  719.                                 </{{ content_heading }}>
  720.                             {% endif %}
  721.                         {% endif %}
  722.                         {% if formStatus == 'robot' %}
  723.                             <div class=\"uk-alert-warning\" uk-alert>
  724.                                 <p>{{ \"Une erreur recaptcha est survenue, merci de réessayer.\"|trans }}</p>
  725.                             </div>
  726.                         {% elseif formStatus == 'invalid' %}
  727.                             <div class=\"uk-alert-warning\" uk-alert>
  728.                                 <p>{{ \"Vous n'avez pas remplis tout les champs, merci de réessayer.\"|trans }}</p>
  729.                             </div>
  730.                         {% elseif formStatus == 'alreadyPlayed' %}
  731.                             <div class=\"uk-alert-warning\" uk-alert>
  732.                                 <p>{{ \"Vous avez déjà participé à ce concours\"|trans }}</p>
  733.                             </div>
  734.                         {% elseif formStatus == 'not-filled' %}
  735.                             <div class=\"uk-alert-warning\" uk-alert>
  736.                                 <p>{{ \"Veuillez remplir tout les champs\"|trans }}</p>
  737.                             </div>
  738.                         {% endif %}
  739.                         {% if formStatus != 'success' %}
  740.                             {{ form_start(form,{'attr': {'id': 'contact-form', 'enctype' : 'multipart/form-data'}}) }}
  741.                             <div class=\"uk-grid-small form-concours-grid\" uk-grid>
  742.                                 <div class=\"uk-width-1-1\">
  743.                                     <label class=\"uk-form-label required apk-label-is-linked-to-field\"
  744.                                            for=\"form-stacked-text\"> {{ form_label(form.choixmultiple) }} </label>
  745.                                     {{ form_widget(form.choixmultiple) }}
  746.                                 </div>
  747.                                 <div class=\"uk-width-1-1\">
  748.                                     <label class=\"uk-form-label\"
  749.                                            for=\"form-stacked-text\"> {{ form_label(form.message) }} </label>
  750.                                     {{ form_widget(form.message) }}
  751.                                 </div>
  752.                                 <div class=\"uk-width-1-2\">
  753.                                     <label class=\"uk-form-label\"
  754.                                            for=\"form-stacked-text\"> {{ form_label(form.lastname) }} </label>
  755.                                     {{ form_widget(form.lastname) }}
  756.                                 </div>
  757.                                 <div class=\"uk-width-1-2\">
  758.                                     <label class=\"uk-form-label\"
  759.                                            for=\"form-stacked-text\"> {{ form_label(form.firstname) }} </label>
  760.                                     {{ form_widget(form.firstname) }}
  761.                                 </div>
  762.                                 <div class=\"uk-width-1-1\">
  763.                                     <label class=\"uk-form-label\" for=\"form-stacked-text\"> {{ form_label(form.email) }} </label>
  764.                                     {{ form_widget(form.email) }}
  765.                                 </div>
  766.                                 <div class=\"uk-width-1-1\">
  767.                                     <label class=\"uk-form-label\" for=\"form-stacked-text\"> {{ form_label(form.preuvePaiement) }} </label>
  768.                                     {{ form_widget(form.preuvePaiement) }}
  769.                                 </div>
  770.                                 <div>
  771.                                     {{ form_widget(form.gdpr) }}
  772.                                     <label for=\"contact_form_gdpr\" id=\"accept-condition\" class=\"uk-padding-remove\">
  773.                                         {{ \"J’accepte la politique de confidentialité, le traitement de mes données par Magnecaps\"|trans }}
  774.                                     </label>
  775.                                 </div>
  776.                                 <div class=\"uk-margin-small-top uk-margin-small-bottom\">
  777.                                     {{ form_widget(form.reglement) }}
  778.                                     <label for=\"contact_form_reglement\" id=\"accept-reglement\" class=\"uk-padding-remove\">
  779.                                         {{ \"J’accepte le règlement de ce concours\"|trans }}
  780.                                         <a href=\"#modal-reglement\" uk-toggle>
  781.                                             <img uk-svg width=\"20\" height=\"20\" src=\"/static/img/pictos/information.svg\" alt=\"reglement\">
  782.                                         </a>
  783.                                     </label>
  784.                                 </div>
  785.                                 <div class=\"div-submit\">
  786.                                     {{ form_widget(form.recaptcha) }}
  787.                                     {{ form_widget(form.submit) }}
  788.                                 </div>
  789.                             </div>
  790.                             {{ form_end(form) }}
  791.                         {% endif %}
  792.                     </div>
  793.                 </div>
  794.                 <div class=\"uk-width-1-3@m\">
  795.                     {{ get_language_switcher_html(document, 'dropdown', 'code')|raw }}
  796.                     <div class=\"logo-right\">
  797.                         <a href=\"{{ pimcore_link(\"link-logo\").href }}\" target=\"_blank\"><img
  798.                                     src=\"{{ pimcore_image('logo-right').thumbnail('') }}\"></a>
  799.                     </div>
  800.                 </div>
  801.             {% endif %}
  802.                 {% if editmode %}
  803.                     <div class=\"uk-alert uk-alert-primary\" uk-alert>
  804.                         <h2 class=\"uk-h2\">Modal du réglement du concours</h2>
  805.                         {{ pimcore_wysiwyg('reglement') }}
  806.                     </div>
  807.                 {% else %}
  808.                     <div id=\"modal-reglement\" class=\"uk-flex-top\" uk-modal>
  809.                         <div class=\"uk-modal-dialog uk-margin-auto-vertical\">
  810.                             <button class=\"uk-modal-close-full uk-close-large\" type=\"button\" uk-close></button>
  811.                             <div class=\"uk-modal-body\" uk-overflow-auto>
  812.                                 {{ pimcore_wysiwyg('reglement') }}
  813.                             </div>
  814.                             <div class=\"uk-modal-footer uk-text-right\">
  815.                                 <button class=\"uk-button uk-button-default uk-modal-close\" type=\"button\">{{ \"Fermer\"|trans }}</button>
  816.                             </div>
  817.                         </div>
  818.                     </div>
  819.                 {% endif %}
  820.             
  821.         <div class=\"area-concours\">{{ pimcore_areablock('contentBottom') }}</div>
  822.     </main><!-- end #main -->
  823.     {% do pimcore_head_link().appendStylesheet(asset('/static/framework/dropify/css/dropify.min.css')) %}
  824.     {% do pimcore_head_script().appendFile(asset('/static/framework/heic2any/heic2any.js')) %}
  825.     {% do pimcore_head_script().appendFile(asset('/static/framework/dropify/js/dropify.js')) %}
  826. {% endblock %}
  827. {% block inlinescripts %}
  828.   {% set recaptchaKeyPublic = pimcore_website_config('recaptchaKeyPublic') %}
  829.   <script src=\"https://www.google.com/recaptcha/api.js?onload=onloadRecaptchaCallback&render={{ recaptchaKeyPublic }}\"></script>
  830.   <script>
  831.       function onloadRecaptchaCallback(){
  832.         grecaptcha.ready(function() {
  833.           grecaptcha.execute('{{ recaptchaKeyPublic }}', {action: 'contact'}).then(function(token) {
  834.             //alert('recaptcha is loaded');
  835.             var recaptcha = document.getElementById('contact_form_recaptcha');
  836.             recaptcha.value = token;
  837.           });
  838.         });
  839.       }
  840.   </script>
  841. {% endblock inlinescripts %}
  842. ""default/concours.html.twig""/var/www/magnecapsv2.atypic-pp.be/www/templates/default/concours.html.twig");
  843.     }
  844. }