var/cache/dev/twig/3e/3e70aea9bf0a71ac8cb95b3a35294171530087131486d24d1c69c5ba6bb7ba75.php line 170

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. /* FrontBundle/Page/contact.html.twig */
  14. class __TwigTemplate_4c9cca12a61384796b24661b0ade6ca1470811ce8901f22ae05865c4e2c2ec66 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.             'title' => [$this'block_title'],
  24.             'description' => [$this'block_description'],
  25.             'json_ld' => [$this'block_json_ld'],
  26.             'body' => [$this'block_body'],
  27.             'javascripts' => [$this'block_javascripts'],
  28.         ];
  29.     }
  30.     protected function doGetParent(array $context)
  31.     {
  32.         // line 1
  33.         return "FrontBundle/layout.html.twig";
  34.     }
  35.     protected function doDisplay(array $context, array $blocks = [])
  36.     {
  37.         $macros $this->macros;
  38.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  39.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""FrontBundle/Page/contact.html.twig"));
  40.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  41.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""FrontBundle/Page/contact.html.twig"));
  42.         $this->parent $this->loadTemplate("FrontBundle/layout.html.twig""FrontBundle/Page/contact.html.twig"1);
  43.         $this->parent->display($contextarray_merge($this->blocks$blocks));
  44.         
  45.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  46.         
  47.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  48.     }
  49.     // line 3
  50.     public function block_title($context, array $blocks = [])
  51.     {
  52.         $macros $this->macros;
  53.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  54.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""title"));
  55.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  56.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""title"));
  57.         echo twig_escape_filter($this->env, (isset($context["app_sitename"]) || array_key_exists("app_sitename"$context) ? $context["app_sitename"] : (function () { throw new RuntimeError('Variable "app_sitename" does not exist.'3$this->source); })()), "html"nulltrue);
  58.         echo " - ";
  59.         echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["page"]) || array_key_exists("page"$context) ? $context["page"] : (function () { throw new RuntimeError('Variable "page" does not exist.'3$this->source); })()), "metaTitle", [], "any"falsefalsefalse3), "html"nulltrue);
  60.         
  61.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  62.         
  63.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  64.     }
  65.     // line 4
  66.     public function block_description($context, array $blocks = [])
  67.     {
  68.         $macros $this->macros;
  69.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  70.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""description"));
  71.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  72.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""description"));
  73.         echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["page"]) || array_key_exists("page"$context) ? $context["page"] : (function () { throw new RuntimeError('Variable "page" does not exist.'4$this->source); })()), "metaDescription", [], "any"falsefalsefalse4), "html"nulltrue);
  74.         
  75.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  76.         
  77.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  78.     }
  79.     // line 5
  80.     public function block_json_ld($context, array $blocks = [])
  81.     {
  82.         $macros $this->macros;
  83.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  84.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""json_ld"));
  85.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  86.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""json_ld"));
  87.         // line 6
  88.         echo "    <script type=\"application/ld+json\">
  89.         {
  90.           \"@context\": \"https://schema.org\",
  91.           \"@type\": \"WebPage\",
  92.           \"name\": \"";
  93.         // line 10
  94.         echo twig_escape_filter($this->envtwig_escape_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["page"]) || array_key_exists("page"$context) ? $context["page"] : (function () { throw new RuntimeError('Variable "page" does not exist.'10$this->source); })()), "metaTitle", [], "any"falsefalsefalse10), "js"), "html"nulltrue);
  95.         echo "\",
  96. \t\t  \"description\": \"";
  97.         // line 11
  98.         echo twig_escape_filter($this->envtwig_escape_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["page"]) || array_key_exists("page"$context) ? $context["page"] : (function () { throw new RuntimeError('Variable "page" does not exist.'11$this->source); })()), "metaDescription", [], "any"falsefalsefalse11), "js"), "html"nulltrue);
  99.         echo "\",
  100. \t\t  \"thumbnailUrl\": \"";
  101.         // line 12
  102.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("/front/img/contact-bg.jpg"), "html"nulltrue);
  103.         echo "\"
  104.          }
  105.     </script>
  106. ";
  107.         
  108.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  109.         
  110.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  111.     }
  112.     // line 18
  113.     public function block_body($context, array $blocks = [])
  114.     {
  115.         $macros $this->macros;
  116.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  117.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""body"));
  118.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  119.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""body"));
  120.         // line 19
  121.         echo "
  122. \t\t<div class=\"shadow\"></div>
  123.     <section class=\"contact\">
  124. \t    <div class=\"container\">
  125. \t      <h1>";
  126.         // line 24
  127.         echo $this->extensions['App\Framework\Twig\AppExtension']->tr("contact_title", (isset($context["tr"]) || array_key_exists("tr"$context) ? $context["tr"] : (function () { throw new RuntimeError('Variable "tr" does not exist.'24$this->source); })()));
  128.         echo "</h1>
  129. \t      <h3>";
  130.         // line 25
  131.         echo $this->extensions['App\Framework\Twig\AppExtension']->tr("contact_subtitle", (isset($context["tr"]) || array_key_exists("tr"$context) ? $context["tr"] : (function () { throw new RuntimeError('Variable "tr" does not exist.'25$this->source); })()));
  132.         echo "</h3>
  133. \t      <form id=\"contact\">
  134. \t      \t<div class=\"row\">
  135. \t\t      \t<div class=\"col-md-6\">
  136. \t\t      \t\t<input type=\"text\" placeholder=\"";
  137.         // line 29
  138.         echo $this->extensions['App\Framework\Twig\AppExtension']->tr("contact_nom", (isset($context["tr"]) || array_key_exists("tr"$context) ? $context["tr"] : (function () { throw new RuntimeError('Variable "tr" does not exist.'29$this->source); })()));
  139.         echo "*\" name=\"lastname\" value=\"";
  140.         if ($this->extensions['Symfony\Bridge\Twig\Extension\SecurityExtension']->isGranted("IS_AUTHENTICATED_REMEMBERED")) {
  141.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["app"]) || array_key_exists("app"$context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.'29$this->source); })()), "user", [], "any"falsefalsefalse29), "info", [=> "lastname"], "method"falsefalsefalse29), "html"nulltrue);
  142.         }
  143.         echo "\" />
  144. \t\t      \t\t<input type=\"text\" placeholder=\"";
  145.         // line 30
  146.         echo $this->extensions['App\Framework\Twig\AppExtension']->tr("contact_prenom", (isset($context["tr"]) || array_key_exists("tr"$context) ? $context["tr"] : (function () { throw new RuntimeError('Variable "tr" does not exist.'30$this->source); })()));
  147.         echo "*\" name=\"firstname\" value=\"";
  148.         if ($this->extensions['Symfony\Bridge\Twig\Extension\SecurityExtension']->isGranted("IS_AUTHENTICATED_REMEMBERED")) {
  149.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["app"]) || array_key_exists("app"$context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.'30$this->source); })()), "user", [], "any"falsefalsefalse30), "info", [=> "firstname"], "method"falsefalsefalse30), "html"nulltrue);
  150.         }
  151.         echo "\"  />
  152. \t\t      \t\t<input type=\"text\" placeholder=\"";
  153.         // line 31
  154.         echo $this->extensions['App\Framework\Twig\AppExtension']->tr("contact_societe", (isset($context["tr"]) || array_key_exists("tr"$context) ? $context["tr"] : (function () { throw new RuntimeError('Variable "tr" does not exist.'31$this->source); })()));
  155.         echo "\" name=\"company\" value=\"";
  156.         if ($this->extensions['Symfony\Bridge\Twig\Extension\SecurityExtension']->isGranted("IS_AUTHENTICATED_REMEMBERED")) {
  157.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["app"]) || array_key_exists("app"$context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.'31$this->source); })()), "user", [], "any"falsefalsefalse31), "info", [=> "company"], "method"falsefalsefalse31), "html"nulltrue);
  158.         }
  159.         echo "\"  />
  160. \t\t      \t\t<input type=\"tel\" placeholder=\"";
  161.         // line 32
  162.         echo $this->extensions['App\Framework\Twig\AppExtension']->tr("contact_tel", (isset($context["tr"]) || array_key_exists("tr"$context) ? $context["tr"] : (function () { throw new RuntimeError('Variable "tr" does not exist.'32$this->source); })()));
  163.         echo "*\" name=\"phone\" value=\"";
  164.         if ($this->extensions['Symfony\Bridge\Twig\Extension\SecurityExtension']->isGranted("IS_AUTHENTICATED_REMEMBERED")) {
  165.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["app"]) || array_key_exists("app"$context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.'32$this->source); })()), "user", [], "any"falsefalsefalse32), "info", [=> "phone"], "method"falsefalsefalse32), "html"nulltrue);
  166.         }
  167.         echo "\"  />
  168. \t\t      \t\t<input type=\"email\" placeholder=\"";
  169.         // line 33
  170.         echo $this->extensions['App\Framework\Twig\AppExtension']->tr("contact_email", (isset($context["tr"]) || array_key_exists("tr"$context) ? $context["tr"] : (function () { throw new RuntimeError('Variable "tr" does not exist.'33$this->source); })()));
  171.         echo "*\" name=\"email\" value=\"";
  172.         if ($this->extensions['Symfony\Bridge\Twig\Extension\SecurityExtension']->isGranted("IS_AUTHENTICATED_REMEMBERED")) {
  173.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["app"]) || array_key_exists("app"$context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.'33$this->source); })()), "user", [], "any"falsefalsefalse33), "email", [], "any"falsefalsefalse33), "html"nulltrue);
  174.         }
  175.         echo "\"  />
  176. \t\t      \t\t<input type=\"text\" placeholder=\"";
  177.         // line 34
  178.         echo $this->extensions['App\Framework\Twig\AppExtension']->tr("contact_adresse", (isset($context["tr"]) || array_key_exists("tr"$context) ? $context["tr"] : (function () { throw new RuntimeError('Variable "tr" does not exist.'34$this->source); })()));
  179.         echo "*\" name=\"address\" value=\"";
  180.         if ($this->extensions['Symfony\Bridge\Twig\Extension\SecurityExtension']->isGranted("IS_AUTHENTICATED_REMEMBERED")) {
  181.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["app"]) || array_key_exists("app"$context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.'34$this->source); })()), "user", [], "any"falsefalsefalse34), "info", [=> "address1"], "method"falsefalsefalse34), "html"nulltrue);
  182.         }
  183.         echo "\"  />
  184. \t\t      \t</div>
  185. \t\t      \t<div class=\"col-md-6\">
  186. \t\t      \t\t<input type=\"text\" placeholder=\"";
  187.         // line 37
  188.         echo $this->extensions['App\Framework\Twig\AppExtension']->tr("contact_code", (isset($context["tr"]) || array_key_exists("tr"$context) ? $context["tr"] : (function () { throw new RuntimeError('Variable "tr" does not exist.'37$this->source); })()));
  189.         echo "*\" name=\"zipcode\" value=\"";
  190.         if ($this->extensions['Symfony\Bridge\Twig\Extension\SecurityExtension']->isGranted("IS_AUTHENTICATED_REMEMBERED")) {
  191.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["app"]) || array_key_exists("app"$context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.'37$this->source); })()), "user", [], "any"falsefalsefalse37), "info", [=> "zipcode"], "method"falsefalsefalse37), "html"nulltrue);
  192.         }
  193.         echo "\"  />
  194. \t\t      \t\t<input type=\"text\" placeholder=\"";
  195.         // line 38
  196.         echo $this->extensions['App\Framework\Twig\AppExtension']->tr("contact_ville", (isset($context["tr"]) || array_key_exists("tr"$context) ? $context["tr"] : (function () { throw new RuntimeError('Variable "tr" does not exist.'38$this->source); })()));
  197.         echo "*\" name=\"city\" value=\"";
  198.         if ($this->extensions['Symfony\Bridge\Twig\Extension\SecurityExtension']->isGranted("IS_AUTHENTICATED_REMEMBERED")) {
  199.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["app"]) || array_key_exists("app"$context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.'38$this->source); })()), "user", [], "any"falsefalsefalse38), "info", [=> "city"], "method"falsefalsefalse38), "html"nulltrue);
  200.         }
  201.         echo "\"  />
  202. \t\t      \t\t<input type=\"text\" placeholder=\"";
  203.         // line 39
  204.         echo $this->extensions['App\Framework\Twig\AppExtension']->tr("contact_pays", (isset($context["tr"]) || array_key_exists("tr"$context) ? $context["tr"] : (function () { throw new RuntimeError('Variable "tr" does not exist.'39$this->source); })()));
  205.         echo "*\" name=\"country\" value=\"";
  206.         if ($this->extensions['Symfony\Bridge\Twig\Extension\SecurityExtension']->isGranted("IS_AUTHENTICATED_REMEMBERED")) {
  207.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["app"]) || array_key_exists("app"$context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.'39$this->source); })()), "user", [], "any"falsefalsefalse39), "info", [=> "country"], "method"falsefalsefalse39), "html"nulltrue);
  208.         }
  209.         echo "\"  />
  210.               <input type=\"text\" placeholder=\"";
  211.         // line 41
  212.         echo $this->extensions['App\Framework\Twig\AppExtension']->tr("contact_sujet", (isset($context["tr"]) || array_key_exists("tr"$context) ? $context["tr"] : (function () { throw new RuntimeError('Variable "tr" does not exist.'41$this->source); })()));
  213.         echo "*\" name=\"subject\" />
  214. ";
  215.         // line 47
  216.         echo "\t\t      \t\t<textarea placeholder=\"";
  217.         echo $this->extensions['App\Framework\Twig\AppExtension']->tr("contact_message", (isset($context["tr"]) || array_key_exists("tr"$context) ? $context["tr"] : (function () { throw new RuntimeError('Variable "tr" does not exist.'47$this->source); })()));
  218.         echo "*\" name=\"message\"></textarea>
  219. \t\t      \t</div>
  220.             <div class=\"row contact-response\">
  221.               <p class=\"text-center mt-0 mb-5\"></p>
  222.             </div>
  223. \t\t      \t<button id=\"sendform\" class=\"send\">";
  224.         // line 58
  225.         echo $this->extensions['App\Framework\Twig\AppExtension']->tr("contact_envoyer", (isset($context["tr"]) || array_key_exists("tr"$context) ? $context["tr"] : (function () { throw new RuntimeError('Variable "tr" does not exist.'58$this->source); })()));
  226.         echo "</button>
  227. \t      \t</div>
  228. \t      </form>
  229. \t    </div>
  230. \t    <h2>";
  231.         // line 63
  232.         echo $this->extensions['App\Framework\Twig\AppExtension']->tr("general_royal_palace", (isset($context["tr"]) || array_key_exists("tr"$context) ? $context["tr"] : (function () { throw new RuntimeError('Variable "tr" does not exist.'63$this->source); })()));
  233.         echo "</h2>
  234. \t    <p>20 Rue de Hochfelden, 67330 KIRRWILLER - FRANCE</p>
  235. \t    <p class=\"tel\">+33 (0)3 88 70 71 81</p>
  236.     </section>
  237. ";
  238.         
  239.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  240.         
  241.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  242.     }
  243.     // line 73
  244.     public function block_javascripts($context, array $blocks = [])
  245.     {
  246.         $macros $this->macros;
  247.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  248.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""javascripts"));
  249.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  250.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""javascripts"));
  251.         // line 74
  252.         echo "
  253.   <script src=\"https://www.google.com/recaptcha/api.js?render=";
  254.         // line 75
  255.         echo twig_escape_filter($this->env, (isset($context["recaptcha_public_key"]) || array_key_exists("recaptcha_public_key"$context) ? $context["recaptcha_public_key"] : (function () { throw new RuntimeError('Variable "recaptcha_public_key" does not exist.'75$this->source); })()), "html"nulltrue);
  256.         echo "\"></script>
  257.   <script type=\"text/javascript\">
  258.     \$(document).ready(function() {
  259.       // alert(window.outerWidth+'x'+window.outerHeight);
  260.       \$('#sendform').on('click', function(e){
  261.         e.preventDefault();
  262.           grecaptcha.ready(function() {
  263.             grecaptcha.execute('";
  264.         // line 87
  265.         echo twig_escape_filter($this->env, (isset($context["recaptcha_public_key"]) || array_key_exists("recaptcha_public_key"$context) ? $context["recaptcha_public_key"] : (function () { throw new RuntimeError('Variable "recaptcha_public_key" does not exist.'87$this->source); })()), "html"nulltrue);
  266.         echo "', {action: 'submit'}).then(function(token) {
  267.           var form = {
  268.             token: token,
  269.             firstname: \$('#contact [name=\"firstname\"').val(),
  270.             lastname: \$('#contact [name=\"lastname\"').val(),
  271.             company: \$('#contact [name=\"company\"').val(),
  272.             phone: \$('#contact [name=\"phone\"').val(),
  273.             email: \$('#contact [name=\"email\"').val(),
  274.             address: \$('#contact [name=\"address\"').val(),
  275.             zipcode: \$('#contact [name=\"zipcode\"').val(),
  276.             city: \$('#contact [name=\"city\"').val(),
  277.             country: \$('#contact [name=\"country\"').val(),
  278.             subject: \$('#contact [name=\"subject\"').val(),
  279.             message: \$('#contact [name=\"message\"').val(),
  280.           };
  281.           \$.post('/contact/send/";
  282.         // line 104
  283.         echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["app"]) || array_key_exists("app"$context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.'104$this->source); })()), "request", [], "any"falsefalsefalse104), "locale", [], "any"falsefalsefalse104), "html"nulltrue);
  284.         echo "', form, function( data ) {
  285.             \$('.contact-response').hide();
  286.             if(data.success == true){
  287.               \$('#sendform').hide();
  288.               \$('.contact-response').show();
  289.               \$('.contact-response p').html('Merci pour votre message. <br> Nous vous répondrons dans les plus brefs délais.');
  290.             } else {
  291.               \$('.contact-response').show();
  292.               \$('.contact-response p').text(data.error);
  293.             }
  294.           }, \"json\");
  295.             });
  296.           });
  297.       });
  298.     });
  299.   </script>
  300. ";
  301.         
  302.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  303.         
  304.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  305.     }
  306.     public function getTemplateName()
  307.     {
  308.         return "FrontBundle/Page/contact.html.twig";
  309.     }
  310.     public function isTraitable()
  311.     {
  312.         return false;
  313.     }
  314.     public function getDebugInfo()
  315.     {
  316.         return array (  337 => 104,  317 => 87,  302 => 75,  299 => 74,  289 => 73,  270 => 63,  262 => 58,  247 => 47,  243 => 41,  234 => 39,  226 => 38,  218 => 37,  208 => 34,  200 => 33,  192 => 32,  184 => 31,  176 => 30,  168 => 29,  161 => 25,  157 => 24,  150 => 19,  140 => 18,  126 => 12,  122 => 11,  118 => 10,  112 => 6,  102 => 5,  83 => 4,  62 => 3,  39 => 1,);
  317.     }
  318.     public function getSourceContext()
  319.     {
  320.         return new Source("{% extends 'FrontBundle/layout.html.twig' %}
  321. {% block title %}{{ app_sitename }} - {{ page.metaTitle }}{% endblock %}
  322. {% block description %}{{ page.metaDescription }}{% endblock %}
  323. {% block json_ld %}
  324.     <script type=\"application/ld+json\">
  325.         {
  326.           \"@context\": \"https://schema.org\",
  327.           \"@type\": \"WebPage\",
  328.           \"name\": \"{{ page.metaTitle | escape('js') }}\",
  329. \t\t  \"description\": \"{{ page.metaDescription | escape('js') }}\",
  330. \t\t  \"thumbnailUrl\": \"{{ asset ('/front/img/contact-bg.jpg') }}\"
  331.          }
  332.     </script>
  333. {% endblock %}
  334. {% block body %}
  335. \t\t<div class=\"shadow\"></div>
  336.     <section class=\"contact\">
  337. \t    <div class=\"container\">
  338. \t      <h1>{{ 'contact_title'|tr(tr)|raw }}</h1>
  339. \t      <h3>{{ 'contact_subtitle'|tr(tr)|raw  }}</h3>
  340. \t      <form id=\"contact\">
  341. \t      \t<div class=\"row\">
  342. \t\t      \t<div class=\"col-md-6\">
  343. \t\t      \t\t<input type=\"text\" placeholder=\"{{ 'contact_nom'|tr(tr)|raw  }}*\" name=\"lastname\" value=\"{% if is_granted('IS_AUTHENTICATED_REMEMBERED') %}{{ app.user.info('lastname') }}{% endif %}\" />
  344. \t\t      \t\t<input type=\"text\" placeholder=\"{{ 'contact_prenom'|tr(tr)|raw  }}*\" name=\"firstname\" value=\"{% if is_granted('IS_AUTHENTICATED_REMEMBERED') %}{{ app.user.info('firstname') }}{% endif %}\"  />
  345. \t\t      \t\t<input type=\"text\" placeholder=\"{{ 'contact_societe'|tr(tr)|raw  }}\" name=\"company\" value=\"{% if is_granted('IS_AUTHENTICATED_REMEMBERED') %}{{ app.user.info('company') }}{% endif %}\"  />
  346. \t\t      \t\t<input type=\"tel\" placeholder=\"{{ 'contact_tel'|tr(tr)|raw  }}*\" name=\"phone\" value=\"{% if is_granted('IS_AUTHENTICATED_REMEMBERED') %}{{ app.user.info('phone') }}{% endif %}\"  />
  347. \t\t      \t\t<input type=\"email\" placeholder=\"{{ 'contact_email'|tr(tr)|raw  }}*\" name=\"email\" value=\"{% if is_granted('IS_AUTHENTICATED_REMEMBERED') %}{{ app.user.email }}{% endif %}\"  />
  348. \t\t      \t\t<input type=\"text\" placeholder=\"{{ 'contact_adresse'|tr(tr)|raw  }}*\" name=\"address\" value=\"{% if is_granted('IS_AUTHENTICATED_REMEMBERED') %}{{ app.user.info('address1') }}{% endif %}\"  />
  349. \t\t      \t</div>
  350. \t\t      \t<div class=\"col-md-6\">
  351. \t\t      \t\t<input type=\"text\" placeholder=\"{{ 'contact_code'|tr(tr)|raw  }}*\" name=\"zipcode\" value=\"{% if is_granted('IS_AUTHENTICATED_REMEMBERED') %}{{ app.user.info('zipcode') }}{% endif %}\"  />
  352. \t\t      \t\t<input type=\"text\" placeholder=\"{{ 'contact_ville'|tr(tr)|raw  }}*\" name=\"city\" value=\"{% if is_granted('IS_AUTHENTICATED_REMEMBERED') %}{{ app.user.info('city') }}{% endif %}\"  />
  353. \t\t      \t\t<input type=\"text\" placeholder=\"{{ 'contact_pays'|tr(tr)|raw  }}*\" name=\"country\" value=\"{% if is_granted('IS_AUTHENTICATED_REMEMBERED') %}{{ app.user.info('country') }}{% endif %}\"  />
  354.               <input type=\"text\" placeholder=\"{{ 'contact_sujet'|tr(tr)|raw  }}*\" name=\"subject\" />
  355. {# \t\t      \t\t<div class=\"select-wrapper\">
  356. \t\t\t      \t\t<select name=\"subject\">
  357. \t\t\t      \t\t\t<option value=\"0\">SUJET*</option>
  358. \t\t\t      \t\t</select>
  359. \t\t      \t\t</div> #}
  360. \t\t      \t\t<textarea placeholder=\"{{ 'contact_message'|tr(tr)|raw  }}*\" name=\"message\"></textarea>
  361. \t\t      \t</div>
  362.             <div class=\"row contact-response\">
  363.               <p class=\"text-center mt-0 mb-5\"></p>
  364.             </div>
  365. \t\t      \t<button id=\"sendform\" class=\"send\">{{ 'contact_envoyer'|tr(tr)|raw  }}</button>
  366. \t      \t</div>
  367. \t      </form>
  368. \t    </div>
  369. \t    <h2>{{ 'general_royal_palace'|tr(tr)|raw  }}</h2>
  370. \t    <p>20 Rue de Hochfelden, 67330 KIRRWILLER - FRANCE</p>
  371. \t    <p class=\"tel\">+33 (0)3 88 70 71 81</p>
  372.     </section>
  373. {% endblock %}
  374. {% block javascripts %}
  375.   <script src=\"https://www.google.com/recaptcha/api.js?render={{ recaptcha_public_key }}\"></script>
  376.   <script type=\"text/javascript\">
  377.     \$(document).ready(function() {
  378.       // alert(window.outerWidth+'x'+window.outerHeight);
  379.       \$('#sendform').on('click', function(e){
  380.         e.preventDefault();
  381.           grecaptcha.ready(function() {
  382.             grecaptcha.execute('{{ recaptcha_public_key }}', {action: 'submit'}).then(function(token) {
  383.           var form = {
  384.             token: token,
  385.             firstname: \$('#contact [name=\"firstname\"').val(),
  386.             lastname: \$('#contact [name=\"lastname\"').val(),
  387.             company: \$('#contact [name=\"company\"').val(),
  388.             phone: \$('#contact [name=\"phone\"').val(),
  389.             email: \$('#contact [name=\"email\"').val(),
  390.             address: \$('#contact [name=\"address\"').val(),
  391.             zipcode: \$('#contact [name=\"zipcode\"').val(),
  392.             city: \$('#contact [name=\"city\"').val(),
  393.             country: \$('#contact [name=\"country\"').val(),
  394.             subject: \$('#contact [name=\"subject\"').val(),
  395.             message: \$('#contact [name=\"message\"').val(),
  396.           };
  397.           \$.post('/contact/send/{{app.request.locale}}', form, function( data ) {
  398.             \$('.contact-response').hide();
  399.             if(data.success == true){
  400.               \$('#sendform').hide();
  401.               \$('.contact-response').show();
  402.               \$('.contact-response p').html('Merci pour votre message. <br> Nous vous répondrons dans les plus brefs délais.');
  403.             } else {
  404.               \$('.contact-response').show();
  405.               \$('.contact-response p').text(data.error);
  406.             }
  407.           }, \"json\");
  408.             });
  409.           });
  410.       });
  411.     });
  412.   </script>
  413. {% endblock %}
  414. ""FrontBundle/Page/contact.html.twig""/home/clients/3cdd021c67ffcc8186b679e7845b2138/sites/api-royal-palace.dix-demo.fr/13_06_24/templates/FrontBundle/Page/contact.html.twig");
  415.     }
  416. }