<?php
use Twig\Environment;
use Twig\Error\LoaderError;
use Twig\Error\RuntimeError;
use Twig\Extension\CoreExtension;
use Twig\Extension\SandboxExtension;
use Twig\MacroNamespace;
use Twig\Markup;
use Twig\Sandbox\SecurityError;
use Twig\Sandbox\SecurityNotAllowedTagError;
use Twig\Sandbox\SecurityNotAllowedFilterError;
use Twig\Sandbox\SecurityNotAllowedFunctionError;
use Twig\Sandbox\SecurityNotAllowedTestError;
use Twig\Source;
use Twig\Template;
use Twig\TemplateWrapper;
/* front/subpage/contact.html.twig */
class __TwigTemplate_e6d61e474f17bb9cff2f6d1f2d29a7b8 extends Template
{
private Source $source;
/**
* @var array<string, MacroNamespace>
*/
private array $macros = [];
private \Twig\Runtime\EscaperRuntime $escaper;
public function __construct(Environment $env)
{
parent::__construct($env);
$this->source = $this->getSourceContext();
$this->escaper = $env->getRuntime('Twig\Runtime\EscaperRuntime');
$this->blocks = [
'title' => [$this, 'block_title'],
'stylesheets' => [$this, 'block_stylesheets'],
'javascripts' => [$this, 'block_javascripts'],
'container' => [$this, 'block_container'],
];
}
protected function doGetParent(array $context): bool|string|Template|TemplateWrapper
{
// line 1
return $this->parent ??= $this->load("front/base_front.html.twig", 1);
}
protected function doDisplay(array $context, array $blocks = []): iterable
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "front/subpage/contact.html.twig"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "front/subpage/contact.html.twig"));
$this->parent = $this->load("front/base_front.html.twig", 1);
yield from $this->parent->unwrap()->yield($context, array_merge($this->blocks, $blocks));
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
}
// line 3
/**
* @return iterable<null|scalar|\Stringable>
*/
public function block_title(array $context, array $blocks = []): iterable
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "title"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "title"));
// line 4
yield " ";
yield (string) $this->escaper->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Pages.Contact.Label", [], "messages_front"), "html", null, true);
yield "
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
return; yield;
}
// line 7
/**
* @return iterable<null|scalar|\Stringable>
*/
public function block_stylesheets(array $context, array $blocks = []): iterable
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "stylesheets"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "stylesheets"));
// line 8
yield " ";
yield from $this->yieldParentBlock("stylesheets", $context, $blocks);
yield "
<link rel=\"preconnect\" href=\"https://fonts.googleapis.com\">
<link href=\"https://fonts.googleapis.com/css2?family=Poppins:wght@600;700&family=Inter:wght@400;500;600&display=swap\" rel=\"stylesheet\">
<link rel=\"stylesheet\" href=\"https://unpkg.com/leaflet/dist/leaflet.css\"/>
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
return; yield;
}
// line 14
/**
* @return iterable<null|scalar|\Stringable>
*/
public function block_javascripts(array $context, array $blocks = []): iterable
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "javascripts"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "javascripts"));
// line 15
yield " ";
yield from $this->yieldParentBlock("javascripts", $context, $blocks);
yield "
<script src=\"https://unpkg.com/leaflet@1.9.4/dist/leaflet.js\"></script>
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
return; yield;
}
// line 19
/**
* @return iterable<null|scalar|\Stringable>
*/
public function block_container(array $context, array $blocks = []): iterable
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "container"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "container"));
// line 20
yield "
<section id=\"contact_main_arae\">
<div class=\"container\">
<div class=\"page_heading\">
<h2>";
// line 25
yield (string) $this->escaper->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Pages.Contact.Messages.ContactUs", [], "messages_front"), "html", null, true);
yield "</h2>
<p>";
// line 26
yield (string) $this->escaper->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Pages.Contact.Messages.ContactSubtitle", [], "messages_front"), "html", null, true);
yield "</p>
</div>
<div class=\"contact_wrapper\">
";
// line 32
yield " <div class=\"agencies_col\">
";
// line 33
$context['_parent'] = $context;
$context['_seq'] = CoreExtension::ensureTraversable((isset($context["agencies"]) || array_key_exists("agencies", $context) ? $context["agencies"] : (function () { throw new RuntimeError('Variable "agencies" does not exist.', 33, $this->source); })()));
foreach ($context['_seq'] as $context["_key"] => $context["agency"]) {
// line 34
yield " <div class=\"agency_item\">
<div class=\"agency_map_box\">
<div id=\"leaflet_";
// line 36
yield (string) $this->escaper->escape(CoreExtension::getAttribute($this->env, $this->source, $context["agency"], "id", [], "any", false, false, false, 36), "html", null, true);
yield "\" class=\"agency_map\" data-name=\"";
yield (string) $this->escaper->escape(CoreExtension::getAttribute($this->env, $this->source, $context["agency"], "name", [], "any", false, false, false, 36), "html", null, true);
yield "\"></div>
</div>
<div class=\"agency_details\">
<h3>";
// line 40
yield (string) $this->escaper->escape(CoreExtension::getAttribute($this->env, $this->source, $context["agency"], "name", [], "any", false, false, false, 40), "html", null, true);
yield "</h3>
<ul>
<li>
<span class=\"icon_badge\"><i class=\"fas fa-map-marker-alt\"></i></span>
<span>
<strong>";
// line 45
yield (string) $this->escaper->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Pages.Footer.Messages.Address", [], "messages_front"), "html", null, true);
yield " :</strong>
";
// line 46
yield (string) $this->escaper->escape(CoreExtension::getAttribute($this->env, $this->source, $context["agency"], "address", [], "any", false, false, false, 46), "html", null, true);
yield ", ";
yield (string) $this->escaper->escape(CoreExtension::getAttribute($this->env, $this->source, $context["agency"], "city", [], "any", false, false, false, 46), "html", null, true);
yield "
</span>
</li>
";
// line 49
if ((CoreExtension::getAttribute($this->env, $this->source, $context["agency"], "email", [], "any", true, true, false, 49) && (($tmp = CoreExtension::getAttribute($this->env, $this->source, $context["agency"], "email", [], "any", false, false, false, 49)) && $tmp instanceof Markup ? (string) $tmp : $tmp))) {
// line 50
yield " <li>
<span class=\"icon_badge\"><i class=\"fas fa-envelope\"></i></span>
<span>
<strong>";
// line 53
yield (string) $this->escaper->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Pages.Common.Fields.Email", [], "messages_front"), "html", null, true);
yield " :</strong> ";
yield (string) $this->escaper->escape(CoreExtension::getAttribute($this->env, $this->source, $context["agency"], "email", [], "any", false, false, false, 53), "html", null, true);
yield "
</span>
</li>
";
}
// line 57
yield " <li>
<span class=\"icon_badge\"><i class=\"fas fa-phone\"></i></span>
<span>
<strong>";
// line 60
yield (string) $this->escaper->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Pages.Common.Fields.Phone", [], "messages_front"), "html", null, true);
yield " :</strong>
";
// line 61
yield (string) $this->escaper->escape(CoreExtension::getAttribute($this->env, $this->source, $context["agency"], "phone", [], "any", false, false, false, 61), "html", null, true);
yield "
</span>
</li>
";
// line 64
if ((CoreExtension::getAttribute($this->env, $this->source, $context["agency"], "whatsapp", [], "any", true, true, false, 64) && (($tmp = CoreExtension::getAttribute($this->env, $this->source, $context["agency"], "whatsapp", [], "any", false, false, false, 64)) && $tmp instanceof Markup ? (string) $tmp : $tmp))) {
// line 65
yield " <li>
<span class=\"icon_badge\"><i class=\"fab fa-whatsapp\"></i></span>
<span>
<strong>whatsapp :</strong> ";
// line 68
yield (string) $this->escaper->escape(CoreExtension::getAttribute($this->env, $this->source, $context["agency"], "whatsapp", [], "any", false, false, false, 68), "html", null, true);
yield "
</span>
</li>
";
}
// line 72
yield " </ul>
</div>
</div>
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_key'], $context['agency'], $context['_parent']);
$context = array_intersect_key($context, $_parent);
$context += $_parent;
// line 76
yield " </div>
";
// line 79
yield " <div class=\"form_col\">
<h2>";
// line 80
yield (string) $this->escaper->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Pages.Contact.Messages.ContactUs", [], "messages_front"), "html", null, true);
yield "</h2>
<p class=\"subtitle\">";
// line 81
yield (string) $this->escaper->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Pages.Contact.Messages.LeaveMessage", [], "messages_front"), "html", null, true);
yield "</p>
";
// line 83
$context['_parent'] = $context;
$context['_seq'] = CoreExtension::ensureTraversable(CoreExtension::getAttribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 83, $this->source); })()), "flashes", ["error"], "method", false, false, false, 83));
foreach ($context['_seq'] as $context["_key"] => $context["flash_error"]) {
// line 84
yield " <div class=\"alert alert-danger\" role=\"alert\">";
yield (string) $this->escaper->escape($context["flash_error"], "html", null, true);
yield "</div>
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_key'], $context['flash_error'], $context['_parent']);
$context = array_intersect_key($context, $_parent);
$context += $_parent;
// line 86
yield "
";
// line 87
yield (string) $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.', 87, $this->source); })()), 'form_start');
yield "
";
// line 90
yield " <div class=\"row_gap\">
";
// line 91
if (CoreExtension::getAttribute($this->env, $this->source, ($context["form"] ?? null), "civility", [], "any", true, true, false, 91)) {
// line 92
yield " <div style=\"flex: 0 0 90px;\">";
yield (string) $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(CoreExtension::getAttribute($this->env, $this->source, (isset($context["form"]) || array_key_exists("form", $context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.', 92, $this->source); })()), "civility", [], "any", false, false, false, 92), 'row', ["label" => false]);
yield "</div>
";
}
// line 94
yield " <div>";
yield (string) $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(CoreExtension::getAttribute($this->env, $this->source, (isset($context["form"]) || array_key_exists("form", $context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.', 94, $this->source); })()), "lastName", [], "any", false, false, false, 94), 'row', ["label" => false, "attr" => ["placeholder" => "Nom"]]);
yield "</div>
<div>";
// line 95
yield (string) $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(CoreExtension::getAttribute($this->env, $this->source, (isset($context["form"]) || array_key_exists("form", $context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.', 95, $this->source); })()), "firstName", [], "any", false, false, false, 95), 'row', ["label" => false, "attr" => ["placeholder" => "Prénom"]]);
yield "</div>
</div>
";
// line 98
yield (string) $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(CoreExtension::getAttribute($this->env, $this->source, (isset($context["form"]) || array_key_exists("form", $context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.', 98, $this->source); })()), "email", [], "any", false, false, false, 98), 'row', ["label" => false, "attr" => ["placeholder" => "Email"]]);
yield "
";
// line 101
yield " ";
yield (string) $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(CoreExtension::getAttribute($this->env, $this->source, (isset($context["form"]) || array_key_exists("form", $context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.', 101, $this->source); })()), "phone", [], "any", false, false, false, 101), 'widget', ["attr" => ["placeholder" => "Téléphone"]]);
yield "
";
// line 103
if (CoreExtension::getAttribute($this->env, $this->source, ($context["form"] ?? null), "subject", [], "any", true, true, false, 103)) {
// line 104
yield " ";
yield (string) $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(CoreExtension::getAttribute($this->env, $this->source, (isset($context["form"]) || array_key_exists("form", $context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.', 104, $this->source); })()), "subject", [], "any", false, false, false, 104), 'row', ["label" => false, "attr" => ["placeholder" => "Objet"]]);
yield "
";
}
// line 106
yield "
";
// line 107
if (CoreExtension::getAttribute($this->env, $this->source, ($context["form"] ?? null), "service", [], "any", true, true, false, 107)) {
// line 108
yield " ";
yield (string) $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(CoreExtension::getAttribute($this->env, $this->source, (isset($context["form"]) || array_key_exists("form", $context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.', 108, $this->source); })()), "service", [], "any", false, false, false, 108), 'row', ["label" => false]);
yield "
";
}
// line 110
yield "
";
// line 111
yield (string) $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(CoreExtension::getAttribute($this->env, $this->source, (isset($context["form"]) || array_key_exists("form", $context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.', 111, $this->source); })()), "message", [], "any", false, false, false, 111), 'row', ["label" => false, "attr" => ["placeholder" => "Votre message"]]);
yield "
<button type=\"submit\" class=\"btn btn_theme btn_md\">
";
// line 114
yield (string) $this->escaper->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Pages.Contact.Messages.SendMessage", [], "messages_front"), "html", null, true);
yield "
</button>
";
// line 117
yield (string) $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.', 117, $this->source); })()), 'form_end');
yield "
</div>
</div>
</div>
</section>
<script>
\$(document).ready(() => {
";
// line 126
$context['_parent'] = $context;
$context['_seq'] = CoreExtension::ensureTraversable((isset($context["agencies"]) || array_key_exists("agencies", $context) ? $context["agencies"] : (function () { throw new RuntimeError('Variable "agencies" does not exist.', 126, $this->source); })()));
foreach ($context['_seq'] as $context["_key"] => $context["agency"]) {
// line 127
yield " ";
if (((($tmp = CoreExtension::getAttribute($this->env, $this->source, $context["agency"], "latitude", [], "any", false, false, false, 127)) && $tmp instanceof Markup ? (string) $tmp : $tmp) && (($tmp = CoreExtension::getAttribute($this->env, $this->source, $context["agency"], "longitude", [], "any", false, false, false, 127)) && $tmp instanceof Markup ? (string) $tmp : $tmp))) {
// line 128
yield " (function () {
let mapEl = document.getElementById(\x27leaflet_";
// line 129
yield (string) $this->escaper->escape(CoreExtension::getAttribute($this->env, $this->source, $context["agency"], "id", [], "any", false, false, false, 129), "html", null, true);
yield "\x27);
let map = L.map(mapEl, {
zoomControl: true,
scrollWheelZoom: false
}).setView([";
// line 133
yield (string) $this->escaper->escape(CoreExtension::getAttribute($this->env, $this->source, $context["agency"], "latitude", [], "any", false, false, false, 133), "html", null, true);
yield ", ";
yield (string) $this->escaper->escape(CoreExtension::getAttribute($this->env, $this->source, $context["agency"], "longitude", [], "any", false, false, false, 133), "html", null, true);
yield "], 14);
L.tileLayer(\x27https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png\x27, {
attribution: \x27© OpenStreetMap contributors\x27
}).addTo(map);
// Real Leaflet popup, opened by default, sitting above the
// marker with its little tail (native Leaflet behaviour).
// maxWidth/minWidth stop it from ever stretching full-width.
L.marker([";
// line 142
yield (string) $this->escaper->escape(CoreExtension::getAttribute($this->env, $this->source, $context["agency"], "latitude", [], "any", false, false, false, 142), "html", null, true);
yield ", ";
yield (string) $this->escaper->escape(CoreExtension::getAttribute($this->env, $this->source, $context["agency"], "longitude", [], "any", false, false, false, 142), "html", null, true);
yield "])
.addTo(map)
.bindPopup(mapEl.dataset.name, {
closeButton: true,
autoClose: false,
maxWidth: 220,
minWidth: 90
})
.openPopup();
})();
";
}
// line 153
yield " ";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_key'], $context['agency'], $context['_parent']);
$context = array_intersect_key($context, $_parent);
$context += $_parent;
// line 154
yield "
// Keep phone values consistent without relying on a third-party CDN.
let phoneInput = document.querySelector(\x27input[name=\"phone\"]\x27);
if (phoneInput) {
let phoneForm = phoneInput.closest(\x27form\x27);
if (phoneForm) {
phoneForm.addEventListener(\x27submit\x27, () => {
phoneInput.value = phoneInput.value.trim().replace(/\\s+/g, \x27 \x27);
});
}
}
});
</script>
<script src=\"";
// line 168
yield (string) $this->escaper->escape($this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/js/leaflet_map.js"), "html", null, true);
yield "\"></script>
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
return; yield;
}
/**
* @codeCoverageIgnore
*/
public function getTemplateName(): string
{
return "front/subpage/contact.html.twig";
}
/**
* @codeCoverageIgnore
*/
public function isTraitable(): bool
{
return false;
}
/**
* @codeCoverageIgnore
*/
public function getDefaultEscapeStrategy(): string|false
{
return "html";
}
/**
* @codeCoverageIgnore
*/
public function getDebugInfo(): array
{
return array ( 470 => 168, 454 => 154, 447 => 153, 431 => 142, 417 => 133, 410 => 129, 407 => 128, 404 => 127, 400 => 126, 388 => 117, 382 => 114, 376 => 111, 373 => 110, 367 => 108, 365 => 107, 362 => 106, 356 => 104, 354 => 103, 348 => 101, 343 => 98, 337 => 95, 332 => 94, 326 => 92, 324 => 91, 321 => 90, 316 => 87, 313 => 86, 303 => 84, 299 => 83, 294 => 81, 290 => 80, 287 => 79, 283 => 76, 273 => 72, 266 => 68, 261 => 65, 259 => 64, 253 => 61, 249 => 60, 244 => 57, 235 => 53, 230 => 50, 228 => 49, 220 => 46, 216 => 45, 208 => 40, 199 => 36, 195 => 34, 191 => 33, 188 => 32, 180 => 26, 176 => 25, 169 => 20, 156 => 19, 141 => 15, 128 => 14, 111 => 8, 98 => 7, 84 => 4, 71 => 3, 48 => 1,);
}
public function getSourceContext(): Source
{
return new Source("{% extends \x27front/base_front.html.twig\x27 %}
{% block title %}
{{ \x27Pages.Contact.Label\x27 | trans({} , \x27messages_front\x27) }}
{% endblock %}
{% block stylesheets %}
{{ parent() }}
<link rel=\"preconnect\" href=\"https://fonts.googleapis.com\">
<link href=\"https://fonts.googleapis.com/css2?family=Poppins:wght@600;700&family=Inter:wght@400;500;600&display=swap\" rel=\"stylesheet\">
<link rel=\"stylesheet\" href=\"https://unpkg.com/leaflet/dist/leaflet.css\"/>
{% endblock %}
{% block javascripts %}
{{ parent() }}
<script src=\"https://unpkg.com/leaflet@1.9.4/dist/leaflet.js\"></script>
{% endblock %}
{% block container %}
<section id=\"contact_main_arae\">
<div class=\"container\">
<div class=\"page_heading\">
<h2>{{ \x27Pages.Contact.Messages.ContactUs\x27 | trans({} , \x27messages_front\x27) }}</h2>
<p>{{ \x27Pages.Contact.Messages.ContactSubtitle\x27 | trans({} , \x27messages_front\x27) }}</p>
</div>
<div class=\"contact_wrapper\">
{# ---------------- Agencies + individual maps ---------------- #}
<div class=\"agencies_col\">
{% for agency in agencies %}
<div class=\"agency_item\">
<div class=\"agency_map_box\">
<div id=\"leaflet_{{ agency.id }}\" class=\"agency_map\" data-name=\"{{ agency.name }}\"></div>
</div>
<div class=\"agency_details\">
<h3>{{ agency.name }}</h3>
<ul>
<li>
<span class=\"icon_badge\"><i class=\"fas fa-map-marker-alt\"></i></span>
<span>
<strong>{{ \x27Pages.Footer.Messages.Address\x27 | trans({} , \x27messages_front\x27) }} :</strong>
{{ agency.address }}, {{ agency.city }}
</span>
</li>
{% if agency.email is defined and agency.email %}
<li>
<span class=\"icon_badge\"><i class=\"fas fa-envelope\"></i></span>
<span>
<strong>{{ \x27Pages.Common.Fields.Email\x27 | trans({} , \x27messages_front\x27) }} :</strong> {{ agency.email }}
</span>
</li>
{% endif %}
<li>
<span class=\"icon_badge\"><i class=\"fas fa-phone\"></i></span>
<span>
<strong>{{ \x27Pages.Common.Fields.Phone\x27 | trans({} , \x27messages_front\x27) }} :</strong>
{{ agency.phone }}
</span>
</li>
{% if agency.whatsapp is defined and agency.whatsapp %}
<li>
<span class=\"icon_badge\"><i class=\"fab fa-whatsapp\"></i></span>
<span>
<strong>whatsapp :</strong> {{ agency.whatsapp }}
</span>
</li>
{% endif %}
</ul>
</div>
</div>
{% endfor %}
</div>
{# ---------------- Contact form ---------------- #}
<div class=\"form_col\">
<h2>{{ \x27Pages.Contact.Messages.ContactUs\x27 | trans({} , \x27messages_front\x27) }}</h2>
<p class=\"subtitle\">{{ \x27Pages.Contact.Messages.LeaveMessage\x27 | trans({} , \x27messages_front\x27) }}</p>
{% for flash_error in app.flashes(\x27error\x27) %}
<div class=\"alert alert-danger\" role=\"alert\">{{ flash_error }}</div>
{% endfor %}
{{ form_start(form) }}
{# Last name / First name #}
<div class=\"row_gap\">
{% if form.civility is defined %}
<div style=\"flex: 0 0 90px;\">{{ form_row(form.civility, {label: false}) }}</div>
{% endif %}
<div>{{ form_row(form.lastName, {label: false, attr: {placeholder: \x27Nom\x27}}) }}</div>
<div>{{ form_row(form.firstName, {label: false, attr: {placeholder: \x27Prénom\x27}}) }}</div>
</div>
{{ form_row(form.email, {label: false, attr: {placeholder: \x27Email\x27}}) }}
{# Champ téléphone sans dépendance externe #}
{{ form_widget(form.phone, {attr: {placeholder: \x27Téléphone\x27}}) }}
{% if form.subject is defined %}
{{ form_row(form.subject, {label: false, attr: {placeholder: \x27Objet\x27}}) }}
{% endif %}
{% if form.service is defined %}
{{ form_row(form.service, {label: false}) }}
{% endif %}
{{ form_row(form.message, {label: false, attr: {placeholder: \x27Votre message\x27}}) }}
<button type=\"submit\" class=\"btn btn_theme btn_md\">
{{ \x27Pages.Contact.Messages.SendMessage\x27 | trans({} , \x27messages_front\x27) }}
</button>
{{ form_end(form) }}
</div>
</div>
</div>
</section>
<script>
\$(document).ready(() => {
{% for agency in agencies %}
{% if agency.latitude and agency.longitude %}
(function () {
let mapEl = document.getElementById(\x27leaflet_{{ agency.id }}\x27);
let map = L.map(mapEl, {
zoomControl: true,
scrollWheelZoom: false
}).setView([{{ agency.latitude }}, {{ agency.longitude }}], 14);
L.tileLayer(\x27https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png\x27, {
attribution: \x27© OpenStreetMap contributors\x27
}).addTo(map);
// Real Leaflet popup, opened by default, sitting above the
// marker with its little tail (native Leaflet behaviour).
// maxWidth/minWidth stop it from ever stretching full-width.
L.marker([{{ agency.latitude }}, {{ agency.longitude }}])
.addTo(map)
.bindPopup(mapEl.dataset.name, {
closeButton: true,
autoClose: false,
maxWidth: 220,
minWidth: 90
})
.openPopup();
})();
{% endif %}
{% endfor %}
// Keep phone values consistent without relying on a third-party CDN.
let phoneInput = document.querySelector(\x27input[name=\"phone\"]\x27);
if (phoneInput) {
let phoneForm = phoneInput.closest(\x27form\x27);
if (phoneForm) {
phoneForm.addEventListener(\x27submit\x27, () => {
phoneInput.value = phoneInput.value.trim().replace(/\\s+/g, \x27 \x27);
});
}
}
});
</script>
<script src=\"{{ asset(\x27assets/js/leaflet_map.js\x27) }}\"></script>
{% endblock %}
", "front/subpage/contact.html.twig", "/home/sunazur/public_html/templates/front/subpage/contact.html.twig");
}
}