<?php
use Twig\Environment;
use Twig\Error\LoaderError;
use Twig\Error\RuntimeError;
use Twig\Extension\SandboxExtension;
use Twig\Markup;
use Twig\Sandbox\SecurityError;
use Twig\Sandbox\SecurityNotAllowedTagError;
use Twig\Sandbox\SecurityNotAllowedFilterError;
use Twig\Sandbox\SecurityNotAllowedFunctionError;
use Twig\Source;
use Twig\Template;
/* FrontBundle/Page/contact.html.twig */
class __TwigTemplate_4c9cca12a61384796b24661b0ade6ca1470811ce8901f22ae05865c4e2c2ec66 extends Template
{
private $source;
private $macros = [];
public function __construct(Environment $env)
{
parent::__construct($env);
$this->source = $this->getSourceContext();
$this->blocks = [
'title' => [$this, 'block_title'],
'description' => [$this, 'block_description'],
'json_ld' => [$this, 'block_json_ld'],
'body' => [$this, 'block_body'],
'javascripts' => [$this, 'block_javascripts'],
];
}
protected function doGetParent(array $context)
{
// line 1
return "FrontBundle/layout.html.twig";
}
protected function doDisplay(array $context, array $blocks = [])
{
$macros = $this->macros;
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "FrontBundle/Page/contact.html.twig"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "FrontBundle/Page/contact.html.twig"));
$this->parent = $this->loadTemplate("FrontBundle/layout.html.twig", "FrontBundle/Page/contact.html.twig", 1);
$this->parent->display($context, array_merge($this->blocks, $blocks));
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
}
// line 3
public function block_title($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "title"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "title"));
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", null, true);
echo " - ";
echo twig_escape_filter($this->env, twig_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", false, false, false, 3), "html", null, true);
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
// line 4
public function block_description($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "description"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "description"));
echo twig_escape_filter($this->env, twig_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", false, false, false, 4), "html", null, true);
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
// line 5
public function block_json_ld($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "json_ld"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "json_ld"));
// line 6
echo " <script type=\"application/ld+json\">
{
\"@context\": \"https://schema.org\",
\"@type\": \"WebPage\",
\"name\": \"";
// line 10
echo twig_escape_filter($this->env, twig_escape_filter($this->env, twig_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", false, false, false, 10), "js"), "html", null, true);
echo "\",
\t\t \"description\": \"";
// line 11
echo twig_escape_filter($this->env, twig_escape_filter($this->env, twig_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", false, false, false, 11), "js"), "html", null, true);
echo "\",
\t\t \"thumbnailUrl\": \"";
// line 12
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("/front/img/contact-bg.jpg"), "html", null, true);
echo "\"
}
</script>
";
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
// line 18
public function block_body($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "body"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "body"));
// line 19
echo "
\t\t<div class=\"shadow\"></div>
<section class=\"contact\">
\t <div class=\"container\">
\t <h1>";
// line 24
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); })()));
echo "</h1>
\t <h3>";
// line 25
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); })()));
echo "</h3>
\t <form id=\"contact\">
\t \t<div class=\"row\">
\t\t \t<div class=\"col-md-6\">
\t\t \t\t<input type=\"text\" placeholder=\"";
// line 29
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); })()));
echo "*\" name=\"lastname\" value=\"";
if ($this->extensions['Symfony\Bridge\Twig\Extension\SecurityExtension']->isGranted("IS_AUTHENTICATED_REMEMBERED")) {
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_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", false, false, false, 29), "info", [0 => "lastname"], "method", false, false, false, 29), "html", null, true);
}
echo "\" />
\t\t \t\t<input type=\"text\" placeholder=\"";
// line 30
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); })()));
echo "*\" name=\"firstname\" value=\"";
if ($this->extensions['Symfony\Bridge\Twig\Extension\SecurityExtension']->isGranted("IS_AUTHENTICATED_REMEMBERED")) {
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_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", false, false, false, 30), "info", [0 => "firstname"], "method", false, false, false, 30), "html", null, true);
}
echo "\" />
\t\t \t\t<input type=\"text\" placeholder=\"";
// line 31
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); })()));
echo "\" name=\"company\" value=\"";
if ($this->extensions['Symfony\Bridge\Twig\Extension\SecurityExtension']->isGranted("IS_AUTHENTICATED_REMEMBERED")) {
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_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", false, false, false, 31), "info", [0 => "company"], "method", false, false, false, 31), "html", null, true);
}
echo "\" />
\t\t \t\t<input type=\"tel\" placeholder=\"";
// line 32
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); })()));
echo "*\" name=\"phone\" value=\"";
if ($this->extensions['Symfony\Bridge\Twig\Extension\SecurityExtension']->isGranted("IS_AUTHENTICATED_REMEMBERED")) {
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_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", false, false, false, 32), "info", [0 => "phone"], "method", false, false, false, 32), "html", null, true);
}
echo "\" />
\t\t \t\t<input type=\"email\" placeholder=\"";
// line 33
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); })()));
echo "*\" name=\"email\" value=\"";
if ($this->extensions['Symfony\Bridge\Twig\Extension\SecurityExtension']->isGranted("IS_AUTHENTICATED_REMEMBERED")) {
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_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", false, false, false, 33), "email", [], "any", false, false, false, 33), "html", null, true);
}
echo "\" />
\t\t \t\t<input type=\"text\" placeholder=\"";
// line 34
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); })()));
echo "*\" name=\"address\" value=\"";
if ($this->extensions['Symfony\Bridge\Twig\Extension\SecurityExtension']->isGranted("IS_AUTHENTICATED_REMEMBERED")) {
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_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", false, false, false, 34), "info", [0 => "address1"], "method", false, false, false, 34), "html", null, true);
}
echo "\" />
\t\t \t</div>
\t\t \t<div class=\"col-md-6\">
\t\t \t\t<input type=\"text\" placeholder=\"";
// line 37
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); })()));
echo "*\" name=\"zipcode\" value=\"";
if ($this->extensions['Symfony\Bridge\Twig\Extension\SecurityExtension']->isGranted("IS_AUTHENTICATED_REMEMBERED")) {
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_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", false, false, false, 37), "info", [0 => "zipcode"], "method", false, false, false, 37), "html", null, true);
}
echo "\" />
\t\t \t\t<input type=\"text\" placeholder=\"";
// line 38
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); })()));
echo "*\" name=\"city\" value=\"";
if ($this->extensions['Symfony\Bridge\Twig\Extension\SecurityExtension']->isGranted("IS_AUTHENTICATED_REMEMBERED")) {
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_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", false, false, false, 38), "info", [0 => "city"], "method", false, false, false, 38), "html", null, true);
}
echo "\" />
\t\t \t\t<input type=\"text\" placeholder=\"";
// line 39
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); })()));
echo "*\" name=\"country\" value=\"";
if ($this->extensions['Symfony\Bridge\Twig\Extension\SecurityExtension']->isGranted("IS_AUTHENTICATED_REMEMBERED")) {
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_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", false, false, false, 39), "info", [0 => "country"], "method", false, false, false, 39), "html", null, true);
}
echo "\" />
<input type=\"text\" placeholder=\"";
// line 41
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); })()));
echo "*\" name=\"subject\" />
";
// line 47
echo "\t\t \t\t<textarea placeholder=\"";
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); })()));
echo "*\" name=\"message\"></textarea>
\t\t \t</div>
<div class=\"row contact-response\">
<p class=\"text-center mt-0 mb-5\"></p>
</div>
\t\t \t<button id=\"sendform\" class=\"send\">";
// line 58
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); })()));
echo "</button>
\t \t</div>
\t </form>
\t </div>
\t <h2>";
// line 63
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); })()));
echo "</h2>
\t <p>20 Rue de Hochfelden, 67330 KIRRWILLER - FRANCE</p>
\t <p class=\"tel\">+33 (0)3 88 70 71 81</p>
</section>
";
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
// line 73
public function block_javascripts($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "javascripts"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "javascripts"));
// line 74
echo "
<script src=\"https://www.google.com/recaptcha/api.js?render=";
// line 75
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", null, true);
echo "\"></script>
<script type=\"text/javascript\">
\$(document).ready(function() {
// alert(window.outerWidth+'x'+window.outerHeight);
\$('#sendform').on('click', function(e){
e.preventDefault();
grecaptcha.ready(function() {
grecaptcha.execute('";
// line 87
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", null, true);
echo "', {action: 'submit'}).then(function(token) {
var form = {
token: token,
firstname: \$('#contact [name=\"firstname\"').val(),
lastname: \$('#contact [name=\"lastname\"').val(),
company: \$('#contact [name=\"company\"').val(),
phone: \$('#contact [name=\"phone\"').val(),
email: \$('#contact [name=\"email\"').val(),
address: \$('#contact [name=\"address\"').val(),
zipcode: \$('#contact [name=\"zipcode\"').val(),
city: \$('#contact [name=\"city\"').val(),
country: \$('#contact [name=\"country\"').val(),
subject: \$('#contact [name=\"subject\"').val(),
message: \$('#contact [name=\"message\"').val(),
};
\$.post('/contact/send/";
// line 104
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_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", false, false, false, 104), "locale", [], "any", false, false, false, 104), "html", null, true);
echo "', form, function( data ) {
\$('.contact-response').hide();
if(data.success == true){
\$('#sendform').hide();
\$('.contact-response').show();
\$('.contact-response p').html('Merci pour votre message. <br> Nous vous répondrons dans les plus brefs délais.');
} else {
\$('.contact-response').show();
\$('.contact-response p').text(data.error);
}
}, \"json\");
});
});
});
});
</script>
";
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
public function getTemplateName()
{
return "FrontBundle/Page/contact.html.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
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,);
}
public function getSourceContext()
{
return new Source("{% extends 'FrontBundle/layout.html.twig' %}
{% block title %}{{ app_sitename }} - {{ page.metaTitle }}{% endblock %}
{% block description %}{{ page.metaDescription }}{% endblock %}
{% block json_ld %}
<script type=\"application/ld+json\">
{
\"@context\": \"https://schema.org\",
\"@type\": \"WebPage\",
\"name\": \"{{ page.metaTitle | escape('js') }}\",
\t\t \"description\": \"{{ page.metaDescription | escape('js') }}\",
\t\t \"thumbnailUrl\": \"{{ asset ('/front/img/contact-bg.jpg') }}\"
}
</script>
{% endblock %}
{% block body %}
\t\t<div class=\"shadow\"></div>
<section class=\"contact\">
\t <div class=\"container\">
\t <h1>{{ 'contact_title'|tr(tr)|raw }}</h1>
\t <h3>{{ 'contact_subtitle'|tr(tr)|raw }}</h3>
\t <form id=\"contact\">
\t \t<div class=\"row\">
\t\t \t<div class=\"col-md-6\">
\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 %}\" />
\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 %}\" />
\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 %}\" />
\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 %}\" />
\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 %}\" />
\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 %}\" />
\t\t \t</div>
\t\t \t<div class=\"col-md-6\">
\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 %}\" />
\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 %}\" />
\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 %}\" />
<input type=\"text\" placeholder=\"{{ 'contact_sujet'|tr(tr)|raw }}*\" name=\"subject\" />
{# \t\t \t\t<div class=\"select-wrapper\">
\t\t\t \t\t<select name=\"subject\">
\t\t\t \t\t\t<option value=\"0\">SUJET*</option>
\t\t\t \t\t</select>
\t\t \t\t</div> #}
\t\t \t\t<textarea placeholder=\"{{ 'contact_message'|tr(tr)|raw }}*\" name=\"message\"></textarea>
\t\t \t</div>
<div class=\"row contact-response\">
<p class=\"text-center mt-0 mb-5\"></p>
</div>
\t\t \t<button id=\"sendform\" class=\"send\">{{ 'contact_envoyer'|tr(tr)|raw }}</button>
\t \t</div>
\t </form>
\t </div>
\t <h2>{{ 'general_royal_palace'|tr(tr)|raw }}</h2>
\t <p>20 Rue de Hochfelden, 67330 KIRRWILLER - FRANCE</p>
\t <p class=\"tel\">+33 (0)3 88 70 71 81</p>
</section>
{% endblock %}
{% block javascripts %}
<script src=\"https://www.google.com/recaptcha/api.js?render={{ recaptcha_public_key }}\"></script>
<script type=\"text/javascript\">
\$(document).ready(function() {
// alert(window.outerWidth+'x'+window.outerHeight);
\$('#sendform').on('click', function(e){
e.preventDefault();
grecaptcha.ready(function() {
grecaptcha.execute('{{ recaptcha_public_key }}', {action: 'submit'}).then(function(token) {
var form = {
token: token,
firstname: \$('#contact [name=\"firstname\"').val(),
lastname: \$('#contact [name=\"lastname\"').val(),
company: \$('#contact [name=\"company\"').val(),
phone: \$('#contact [name=\"phone\"').val(),
email: \$('#contact [name=\"email\"').val(),
address: \$('#contact [name=\"address\"').val(),
zipcode: \$('#contact [name=\"zipcode\"').val(),
city: \$('#contact [name=\"city\"').val(),
country: \$('#contact [name=\"country\"').val(),
subject: \$('#contact [name=\"subject\"').val(),
message: \$('#contact [name=\"message\"').val(),
};
\$.post('/contact/send/{{app.request.locale}}', form, function( data ) {
\$('.contact-response').hide();
if(data.success == true){
\$('#sendform').hide();
\$('.contact-response').show();
\$('.contact-response p').html('Merci pour votre message. <br> Nous vous répondrons dans les plus brefs délais.');
} else {
\$('.contact-response').show();
\$('.contact-response p').text(data.error);
}
}, \"json\");
});
});
});
});
</script>
{% endblock %}
", "FrontBundle/Page/contact.html.twig", "/home/clients/3cdd021c67ffcc8186b679e7845b2138/sites/api-royal-palace.dix-demo.fr/13_06_24/templates/FrontBundle/Page/contact.html.twig");
}
}