<?php
use Twig\Environment;
use Twig\Error\LoaderError;
use Twig\Error\RuntimeError;
use Twig\Extension\CoreExtension;
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;
/* default/contact.html.twig */
class __TwigTemplate_4c3a93b69454047b8e4f20a73e0c620fca7a3400802d1e125e4f26b01daf1e0e extends Template
{
private $source;
private $macros = [];
public function __construct(Environment $env)
{
parent::__construct($env);
$this->source = $this->getSourceContext();
$this->blocks = [
'title' => [$this, 'block_title'],
'body' => [$this, 'block_body'],
];
}
protected function doGetParent(array $context)
{
// line 1
return "base.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", "default/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", "default/contact.html.twig"));
$this->parent = $this->loadTemplate("base.html.twig", "default/contact.html.twig", 1);
yield from $this->parent->unwrap()->yield($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"));
yield "Contact — Otropik";
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
return; yield '';
}
// line 5
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 7
yield "<section class=\"position-relative text-white\">
<div class=\"ratio ratio-21x9\">
";
// line 9
if (CoreExtension::getAttribute($this->env, $this->source, (isset($context["banner"]) || array_key_exists("banner", $context) ? $context["banner"] : (function () { throw new RuntimeError('Variable "banner" does not exist.', 9, $this->source); })()), "img", [], "any", false, false, false, 9)) {
// line 10
yield " <img src=\"";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("img/banner/"), "html", null, true);
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, (isset($context["banner"]) || array_key_exists("banner", $context) ? $context["banner"] : (function () { throw new RuntimeError('Variable "banner" does not exist.', 10, $this->source); })()), "img", [], "any", false, false, false, 10), "html", null, true);
yield "\" alt=\"Plage paradisiaque\" class=\"w-100 h-100 object-fit-cover\">
";
} else {
// line 12
yield " <img src=\"";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("img/cta-tourist.jpg"), "html", null, true);
yield "\" alt=\"Plage paradisiaque\" class=\"w-100 h-100 object-fit-cover\">
";
}
// line 14
yield " </div>
<div class=\"position-absolute top-0 start-0 w-100 h-100 d-flex align-items-center justify-content-center text-center bg-dark bg-opacity-50\">
<div class=\"p-3\">
<h1 class=\"display-4 fw-bold mb-3\">Restons en contact 🌴</h1>
<p class=\"lead\">Une question, une envie d’évasion ou besoin d’un devis sur mesure ?
L’équipe <span class=\"fw-bold text-warning\">Otropik</span> est à votre écoute.</p>
</div>
</div>
</section>
";
// line 25
yield "<section class=\"container py-5\">
<div class=\"row g-5\">
";
// line 29
yield " <div class=\"col-12 col-lg-5\">
<h2 class=\"h4 fw-bold mb-4\">Nos coordonnées</h2>
<p class=\"text-muted mb-4\">
Passez nous voir, appelez-nous ou envoyez un message : nous répondons rapidement.
</p>
<ul class=\"list-unstyled\">
<li class=\"mb-3 d-flex align-items-start\">
<i class=\"bi bi-geo-alt txt-ot-green fs-4 me-3\"></i>
<div>
<strong>Adresse</strong><br>
";
// line 40
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, (isset($context["infos"]) || array_key_exists("infos", $context) ? $context["infos"] : (function () { throw new RuntimeError('Variable "infos" does not exist.', 40, $this->source); })()), "adress", [], "any", false, false, false, 40), "html", null, true);
yield " <br> ";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, (isset($context["infos"]) || array_key_exists("infos", $context) ? $context["infos"] : (function () { throw new RuntimeError('Variable "infos" does not exist.', 40, $this->source); })()), "zip", [], "any", false, false, false, 40), "html", null, true);
yield " ";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, (isset($context["infos"]) || array_key_exists("infos", $context) ? $context["infos"] : (function () { throw new RuntimeError('Variable "infos" does not exist.', 40, $this->source); })()), "city", [], "any", false, false, false, 40), "html", null, true);
yield "
</div>
</li>
<li class=\"mb-3 d-flex align-items-start\">
<i class=\"bi bi-telephone txt-ot-green fs-4 me-3\"></i>
<div>
<strong>Téléphone</strong><br>
";
// line 47
if (CoreExtension::getAttribute($this->env, $this->source, (isset($context["infos"]) || array_key_exists("infos", $context) ? $context["infos"] : (function () { throw new RuntimeError('Variable "infos" does not exist.', 47, $this->source); })()), "phone", [], "any", false, false, false, 47)) {
yield "
Bureau : <a class=\"link-info\" href=\"tel:";
// line 48
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, (isset($context["infos"]) || array_key_exists("infos", $context) ? $context["infos"] : (function () { throw new RuntimeError('Variable "infos" does not exist.', 48, $this->source); })()), "phone", [], "any", false, false, false, 48), "html", null, true);
yield "\">";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, (isset($context["infos"]) || array_key_exists("infos", $context) ? $context["infos"] : (function () { throw new RuntimeError('Variable "infos" does not exist.', 48, $this->source); })()), "phone", [], "any", false, false, false, 48), "html", null, true);
yield "</a> ";
}
// line 49
yield " ";
if (CoreExtension::getAttribute($this->env, $this->source, (isset($context["infos"]) || array_key_exists("infos", $context) ? $context["infos"] : (function () { throw new RuntimeError('Variable "infos" does not exist.', 49, $this->source); })()), "mobile", [], "any", false, false, false, 49)) {
yield "
<br>Mobile : <a class=\"link-info\" href=\"tel:";
// line 50
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, (isset($context["infos"]) || array_key_exists("infos", $context) ? $context["infos"] : (function () { throw new RuntimeError('Variable "infos" does not exist.', 50, $this->source); })()), "mobile", [], "any", false, false, false, 50), "html", null, true);
yield "\">";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, (isset($context["infos"]) || array_key_exists("infos", $context) ? $context["infos"] : (function () { throw new RuntimeError('Variable "infos" does not exist.', 50, $this->source); })()), "mobile", [], "any", false, false, false, 50), "html", null, true);
yield "</a> ";
}
// line 51
yield " ";
if (CoreExtension::getAttribute($this->env, $this->source, (isset($context["infos"]) || array_key_exists("infos", $context) ? $context["infos"] : (function () { throw new RuntimeError('Variable "infos" does not exist.', 51, $this->source); })()), "mobileTwo", [], "any", false, false, false, 51)) {
yield "
<br>Mobile : <a class=\"link-info\" href=\"tel:";
// line 52
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, (isset($context["infos"]) || array_key_exists("infos", $context) ? $context["infos"] : (function () { throw new RuntimeError('Variable "infos" does not exist.', 52, $this->source); })()), "mobileTwo", [], "any", false, false, false, 52), "html", null, true);
yield "\">";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, (isset($context["infos"]) || array_key_exists("infos", $context) ? $context["infos"] : (function () { throw new RuntimeError('Variable "infos" does not exist.', 52, $this->source); })()), "mobileTwo", [], "any", false, false, false, 52), "html", null, true);
yield "</a> ";
}
// line 53
yield " </div>
</li>
<li class=\"mb-3 d-flex align-items-start\">
<i class=\"bi bi-envelope txt-ot-green fs-4 me-3\"></i>
<div>
";
// line 58
if (CoreExtension::getAttribute($this->env, $this->source, (isset($context["infos"]) || array_key_exists("infos", $context) ? $context["infos"] : (function () { throw new RuntimeError('Variable "infos" does not exist.', 58, $this->source); })()), "mail", [], "any", false, false, false, 58)) {
yield "
<strong>Email</strong><br>
<a class=\"link-info\" href=\"mailto:";
// line 60
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, (isset($context["infos"]) || array_key_exists("infos", $context) ? $context["infos"] : (function () { throw new RuntimeError('Variable "infos" does not exist.', 60, $this->source); })()), "mail", [], "any", false, false, false, 60), "html", null, true);
yield "\">";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, (isset($context["infos"]) || array_key_exists("infos", $context) ? $context["infos"] : (function () { throw new RuntimeError('Variable "infos" does not exist.', 60, $this->source); })()), "mail", [], "any", false, false, false, 60), "html", null, true);
yield "</a>
";
}
// line 62
yield " </div>
</li>
</ul>
<div class=\"map-container\" style=\"width: 100%; height: 400px; border-radius: 12px; overflow: hidden;\">
<iframe
width=\"100%\"
height=\"100%\"
frameborder=\"0\"
scrolling=\"no\"
marginheight=\"0\"
marginwidth=\"0\"
src=\"https://www.openstreetmap.org/export/embed.html?bbox=-61.5270%2C16.2570%2C-61.5070%2C16.2770&layer=mapnik&marker=16.2669%2C-61.5170\"
style=\"border:1px solid #ccc;\">
</iframe>
</div>
<p class=\"text-muted small text-center\">
<a href=\"https://www.openstreetmap.org/?mlat=16.2669&mlon=-61.5170#map=15/16.2669/-61.5170\" target=\"_blank\">
Voir la carte agrandie
</a>
</p>
</div>
";
// line 86
yield " <div class=\"col-12 col-lg-7\">
<div class=\"card border-0 shadow-lg rounded-4\">
<div class=\"card-body p-4\">
<h2 class=\"h5 fw-bold mb-4\">Envoyez-nous un message</h2>
<form method=\"post\" action=\"";
// line 90
yield "\">
<div class=\"row g-3\">
<div class=\"col-md-6\">
<label class=\"form-label\">Nom</label>
<input type=\"text\" name=\"name\" class=\"form-control rounded-pill\" placeholder=\"Votre nom complet\" required>
</div>
<div class=\"col-md-6\">
<label class=\"form-label\">Email</label>
<input type=\"email\" name=\"email\" class=\"form-control rounded-pill\" placeholder=\"vous@email.com\" required>
</div>
<div class=\"col-md-6\">
<label class=\"form-label\">Téléphone</label>
<input type=\"tel\" name=\"phone\" class=\"form-control rounded-pill\" placeholder=\"+590 ...\" >
</div>
<div class=\"col-md-6\">
<label class=\"form-label\">Sujet</label>
<input type=\"text\" name=\"subject\" class=\"form-control rounded-pill\" placeholder=\"Ex: Demande de devis\">
</div>
<div class=\"col-12\">
<label class=\"form-label\">Message</label>
<textarea name=\"message\" rows=\"5\" class=\"form-control rounded-4\" placeholder=\"Votre message...\" required></textarea>
</div>
</div>
<div class=\"text-end mt-4\">
<button type=\"submit\" class=\"btn btn-primary rounded-pill px-4\">
<i class=\"bi bi-send me-1\"></i> Envoyer
</button>
</div>
</form>
</div>
</div>
</div>
</div>
</section>
";
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
return; yield '';
}
/**
* @codeCoverageIgnore
*/
public function getTemplateName()
{
return "default/contact.html.twig";
}
/**
* @codeCoverageIgnore
*/
public function isTraitable()
{
return false;
}
/**
* @codeCoverageIgnore
*/
public function getDebugInfo()
{
return array ( 235 => 90, 229 => 86, 204 => 62, 197 => 60, 192 => 58, 185 => 53, 179 => 52, 174 => 51, 168 => 50, 163 => 49, 157 => 48, 153 => 47, 139 => 40, 126 => 29, 121 => 25, 109 => 14, 103 => 12, 96 => 10, 94 => 9, 90 => 7, 80 => 5, 60 => 3, 37 => 1,);
}
public function getSourceContext()
{
return new Source("{% extends 'base.html.twig' %}
{% block title %}Contact — Otropik{% endblock %}
{% block body %}
{# --- Hero Banner --- #}
<section class=\"position-relative text-white\">
<div class=\"ratio ratio-21x9\">
{% if banner.img %}
<img src=\"{{ asset('img/banner/')}}{{banner.img}}\" alt=\"Plage paradisiaque\" class=\"w-100 h-100 object-fit-cover\">
{% else %}
<img src=\"{{ asset('img/cta-tourist.jpg')}}\" alt=\"Plage paradisiaque\" class=\"w-100 h-100 object-fit-cover\">
{% endif %}
</div>
<div class=\"position-absolute top-0 start-0 w-100 h-100 d-flex align-items-center justify-content-center text-center bg-dark bg-opacity-50\">
<div class=\"p-3\">
<h1 class=\"display-4 fw-bold mb-3\">Restons en contact 🌴</h1>
<p class=\"lead\">Une question, une envie d’évasion ou besoin d’un devis sur mesure ?
L’équipe <span class=\"fw-bold text-warning\">Otropik</span> est à votre écoute.</p>
</div>
</div>
</section>
{# --- Section principale --- #}
<section class=\"container py-5\">
<div class=\"row g-5\">
{# Infos de contact #}
<div class=\"col-12 col-lg-5\">
<h2 class=\"h4 fw-bold mb-4\">Nos coordonnées</h2>
<p class=\"text-muted mb-4\">
Passez nous voir, appelez-nous ou envoyez un message : nous répondons rapidement.
</p>
<ul class=\"list-unstyled\">
<li class=\"mb-3 d-flex align-items-start\">
<i class=\"bi bi-geo-alt txt-ot-green fs-4 me-3\"></i>
<div>
<strong>Adresse</strong><br>
{{infos.adress}} <br> {{infos.zip}} {{infos.city}}
</div>
</li>
<li class=\"mb-3 d-flex align-items-start\">
<i class=\"bi bi-telephone txt-ot-green fs-4 me-3\"></i>
<div>
<strong>Téléphone</strong><br>
{% if infos.phone %}
Bureau : <a class=\"link-info\" href=\"tel:{{infos.phone}}\">{{infos.phone}}</a> {% endif %}
{% if infos.mobile %}
<br>Mobile : <a class=\"link-info\" href=\"tel:{{infos.mobile}}\">{{infos.mobile}}</a> {% endif %}
{% if infos.mobileTwo %}
<br>Mobile : <a class=\"link-info\" href=\"tel:{{infos.mobileTwo}}\">{{infos.mobileTwo}}</a> {% endif %}
</div>
</li>
<li class=\"mb-3 d-flex align-items-start\">
<i class=\"bi bi-envelope txt-ot-green fs-4 me-3\"></i>
<div>
{% if infos.mail %}
<strong>Email</strong><br>
<a class=\"link-info\" href=\"mailto:{{infos.mail}}\">{{infos.mail}}</a>
{% endif %}
</div>
</li>
</ul>
<div class=\"map-container\" style=\"width: 100%; height: 400px; border-radius: 12px; overflow: hidden;\">
<iframe
width=\"100%\"
height=\"100%\"
frameborder=\"0\"
scrolling=\"no\"
marginheight=\"0\"
marginwidth=\"0\"
src=\"https://www.openstreetmap.org/export/embed.html?bbox=-61.5270%2C16.2570%2C-61.5070%2C16.2770&layer=mapnik&marker=16.2669%2C-61.5170\"
style=\"border:1px solid #ccc;\">
</iframe>
</div>
<p class=\"text-muted small text-center\">
<a href=\"https://www.openstreetmap.org/?mlat=16.2669&mlon=-61.5170#map=15/16.2669/-61.5170\" target=\"_blank\">
Voir la carte agrandie
</a>
</p>
</div>
{# Formulaire de contact #}
<div class=\"col-12 col-lg-7\">
<div class=\"card border-0 shadow-lg rounded-4\">
<div class=\"card-body p-4\">
<h2 class=\"h5 fw-bold mb-4\">Envoyez-nous un message</h2>
<form method=\"post\" action=\"{#{ path('contact.send') }#}\">
<div class=\"row g-3\">
<div class=\"col-md-6\">
<label class=\"form-label\">Nom</label>
<input type=\"text\" name=\"name\" class=\"form-control rounded-pill\" placeholder=\"Votre nom complet\" required>
</div>
<div class=\"col-md-6\">
<label class=\"form-label\">Email</label>
<input type=\"email\" name=\"email\" class=\"form-control rounded-pill\" placeholder=\"vous@email.com\" required>
</div>
<div class=\"col-md-6\">
<label class=\"form-label\">Téléphone</label>
<input type=\"tel\" name=\"phone\" class=\"form-control rounded-pill\" placeholder=\"+590 ...\" >
</div>
<div class=\"col-md-6\">
<label class=\"form-label\">Sujet</label>
<input type=\"text\" name=\"subject\" class=\"form-control rounded-pill\" placeholder=\"Ex: Demande de devis\">
</div>
<div class=\"col-12\">
<label class=\"form-label\">Message</label>
<textarea name=\"message\" rows=\"5\" class=\"form-control rounded-4\" placeholder=\"Votre message...\" required></textarea>
</div>
</div>
<div class=\"text-end mt-4\">
<button type=\"submit\" class=\"btn btn-primary rounded-pill px-4\">
<i class=\"bi bi-send me-1\"></i> Envoyer
</button>
</div>
</form>
</div>
</div>
</div>
</div>
</section>
{% endblock %}
", "default/contact.html.twig", "/home/ladomitiyc/otropik/templates/default/contact.html.twig");
}
}