<?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/offers.html.twig */
class __TwigTemplate_d0e56149a0499b970c9d5ab1e754b8a7 extends Template
{
private $source;
private $macros = [];
public function __construct(Environment $env)
{
parent::__construct($env);
$this->source = $this->getSourceContext();
$this->blocks = [
'title' => [$this, 'block_title'],
'seo' => [$this, 'block_seo'],
'body' => [$this, 'block_body'],
'extra_head' => [$this, 'block_extra_head'],
];
}
protected function doGetParent(array $context)
{
// line 2
return "base.html.twig";
}
protected function doDisplay(array $context, array $blocks = [])
{
$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", "default/offers.html.twig"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "default/offers.html.twig"));
$this->parent = $this->loadTemplate("base.html.twig", "default/offers.html.twig", 2);
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 4
public function block_title($context, array $blocks = [])
{
$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"));
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, (isset($context["typeOffer"]) || array_key_exists("typeOffer", $context) ? $context["typeOffer"] : (function () { throw new RuntimeError('Variable "typeOffer" does not exist.', 4, $this->source); })()), "title", [], "any", false, false, false, 4), "html", null, true);
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
return; yield '';
}
// line 5
public function block_seo($context, array $blocks = [])
{
$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", "seo"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "seo"));
// line 6
yield " <meta name=\"description\" content=\"";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, (isset($context["typeOffer"]) || array_key_exists("typeOffer", $context) ? $context["typeOffer"] : (function () { throw new RuntimeError('Variable "typeOffer" does not exist.', 6, $this->source); })()), "description", [], "any", false, false, false, 6), "html", null, true);
yield "\" >
\t<meta property=\"og:title\" content=\"";
// line 8
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, (isset($context["typeOffer"]) || array_key_exists("typeOffer", $context) ? $context["typeOffer"] : (function () { throw new RuntimeError('Variable "typeOffer" does not exist.', 8, $this->source); })()), "metaTitle", [], "any", false, false, false, 8), "html", null, true);
yield "\" />
\t<meta property=\"og:type\" content=\"Website\" />
\t<meta property=\"og:description\" content=\"";
// line 10
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, (isset($context["typeOffer"]) || array_key_exists("typeOffer", $context) ? $context["typeOffer"] : (function () { throw new RuntimeError('Variable "typeOffer" does not exist.', 10, $this->source); })()), "metaDescription", [], "any", false, false, false, 10), "html", null, true);
yield "\" />
\t<meta property=\"og:url\" content=\"";
// line 11
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\HttpFoundationExtension']->generateAbsoluteUrl(CoreExtension::getAttribute($this->env, $this->source, 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.', 11, $this->source); })()), "request", [], "any", false, false, false, 11), "uri", [], "any", false, false, false, 11)), "html", null, true);
yield "\" />
\t<meta property=\"og:image\" content=\"";
// line 12
yield "\" />
\t<meta name =\"twitter:card\" content=\"summary_large_image\" />
\t<meta name=\"twitter:title\" content=\"";
// line 15
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, (isset($context["typeOffer"]) || array_key_exists("typeOffer", $context) ? $context["typeOffer"] : (function () { throw new RuntimeError('Variable "typeOffer" does not exist.', 15, $this->source); })()), "metaTitle", [], "any", false, false, false, 15), "html", null, true);
yield "\">
\t<meta name=\"twitter:description\" content=\"";
// line 16
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, (isset($context["typeOffer"]) || array_key_exists("typeOffer", $context) ? $context["typeOffer"] : (function () { throw new RuntimeError('Variable "typeOffer" does not exist.', 16, $this->source); })()), "metaDescription", [], "any", false, false, false, 16), "html", null, true);
yield "\">
\t<meta name=\"twitter:image\" content=\"";
// line 17
yield "\">
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
return; yield '';
}
// line 21
public function block_body($context, array $blocks = [])
{
$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", "body"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "body"));
// line 22
yield "
";
// line 26
yield "<section class=\"hero hero--type is-animated position-relative text-white\">
<div class=\"hero__media ratio ratio-21x9\">
";
// line 28
if (CoreExtension::getAttribute($this->env, $this->source, (isset($context["typeOffer"]) || array_key_exists("typeOffer", $context) ? $context["typeOffer"] : (function () { throw new RuntimeError('Variable "typeOffer" does not exist.', 28, $this->source); })()), "img", [], "any", false, false, false, 28)) {
// line 29
yield " <img src=\"";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(($this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("img/offer/") . CoreExtension::getAttribute($this->env, $this->source, (isset($context["typeOffer"]) || array_key_exists("typeOffer", $context) ? $context["typeOffer"] : (function () { throw new RuntimeError('Variable "typeOffer" does not exist.', 29, $this->source); })()), "img", [], "any", false, false, false, 29)), "html", null, true);
yield "\"
alt=\"";
// line 30
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, (isset($context["typeOffer"]) || array_key_exists("typeOffer", $context) ? $context["typeOffer"] : (function () { throw new RuntimeError('Variable "typeOffer" does not exist.', 30, $this->source); })()), "name", [], "any", false, false, false, 30), "html", null, true);
yield "\"
class=\"hero__img object-fit-cover w-100 h-100\">
";
} else {
// line 33
yield " <img src=\"";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("img/2633.jpg"), "html", null, true);
yield "\"
alt=\"";
// line 34
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, (isset($context["typeOffer"]) || array_key_exists("typeOffer", $context) ? $context["typeOffer"] : (function () { throw new RuntimeError('Variable "typeOffer" does not exist.', 34, $this->source); })()), "name", [], "any", false, false, false, 34), "html", null, true);
yield "\"
class=\"hero__img object-fit-cover w-100 h-100\">
";
}
// line 37
yield " </div>
<div class=\"hero__overlay hero__overlay--left\">
<div class=\"container\">
<div class=\"hero__card\" style=\"max-width: 600px;\">
<h1 class=\"hero__title display-5 fw-bold mb-3
";
// line 43
if ((CoreExtension::getAttribute($this->env, $this->source, (isset($context["typeOffer"]) || array_key_exists("typeOffer", $context) ? $context["typeOffer"] : (function () { throw new RuntimeError('Variable "typeOffer" does not exist.', 43, $this->source); })()), "id", [], "any", false, false, false, 43) == "1")) {
yield " txt-ot-green
";
} elseif ((CoreExtension::getAttribute($this->env, $this->source, // line 44
(isset($context["typeOffer"]) || array_key_exists("typeOffer", $context) ? $context["typeOffer"] : (function () { throw new RuntimeError('Variable "typeOffer" does not exist.', 44, $this->source); })()), "id", [], "any", false, false, false, 44) == "2")) {
yield " txt-ot-yellow
";
} elseif ((CoreExtension::getAttribute($this->env, $this->source, // line 45
(isset($context["typeOffer"]) || array_key_exists("typeOffer", $context) ? $context["typeOffer"] : (function () { throw new RuntimeError('Variable "typeOffer" does not exist.', 45, $this->source); })()), "id", [], "any", false, false, false, 45) == "3")) {
yield " txt-ot-brown
";
} elseif ((CoreExtension::getAttribute($this->env, $this->source, // line 46
(isset($context["typeOffer"]) || array_key_exists("typeOffer", $context) ? $context["typeOffer"] : (function () { throw new RuntimeError('Variable "typeOffer" does not exist.', 46, $this->source); })()), "id", [], "any", false, false, false, 46) == "4")) {
yield " txt-ot-blue
";
}
// line 47
yield "\">
";
// line 48
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, (isset($context["typeOffer"]) || array_key_exists("typeOffer", $context) ? $context["typeOffer"] : (function () { throw new RuntimeError('Variable "typeOffer" does not exist.', 48, $this->source); })()), "name", [], "any", false, false, false, 48), "html", null, true);
yield "
</h1>
<p class=\"hero__subtitle mb-0\">";
// line 51
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, (isset($context["typeOffer"]) || array_key_exists("typeOffer", $context) ? $context["typeOffer"] : (function () { throw new RuntimeError('Variable "typeOffer" does not exist.', 51, $this->source); })()), "hook", [], "any", false, false, false, 51), "html", null, true);
yield "</p>
</div>
</div>
</div>
</section>
";
// line 58
yield "<nav class=\"container my-4\" aria-label=\"breadcrumb\">
<ol class=\"breadcrumb small\">
<li class=\"breadcrumb-item\"><a href=\"";
// line 60
yield $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("app");
yield "\">Accueil</a></li>
<li class=\"breadcrumb-item active\">";
// line 61
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, (isset($context["typeOffer"]) || array_key_exists("typeOffer", $context) ? $context["typeOffer"] : (function () { throw new RuntimeError('Variable "typeOffer" does not exist.', 61, $this->source); })()), "name", [], "any", false, false, false, 61), "html", null, true);
yield "</li>
</ol>
</nav>
";
// line 67
yield "<section class=\"py-5 bg-white\">
<div class=\"container\">
<header class=\"mb-3\">
<h2 class=\"h3 txt-ot-";
// line 70
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, (isset($context["typeOffer"]) || array_key_exists("typeOffer", $context) ? $context["typeOffer"] : (function () { throw new RuntimeError('Variable "typeOffer" does not exist.', 70, $this->source); })()), "color", [], "any", false, false, false, 70), "html", null, true);
yield " mb-1 fw-bold\">Notre sélection ";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, (isset($context["typeOffer"]) || array_key_exists("typeOffer", $context) ? $context["typeOffer"] : (function () { throw new RuntimeError('Variable "typeOffer" does not exist.', 70, $this->source); })()), "name", [], "any", false, false, false, 70), "html", null, true);
yield ".</h2>
<p class=\"text-muted mb-0\">";
// line 71
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, (isset($context["typeOffer"]) || array_key_exists("typeOffer", $context) ? $context["typeOffer"] : (function () { throw new RuntimeError('Variable "typeOffer" does not exist.', 71, $this->source); })()), "summary", [], "any", false, false, false, 71), "html", null, true);
yield "</p>
</header>
<div class=\"row g-3 g-md-4\">
";
// line 75
$context['_parent'] = $context;
$context['_seq'] = CoreExtension::ensureTraversable((isset($context["offers"]) || array_key_exists("offers", $context) ? $context["offers"] : (function () { throw new RuntimeError('Variable "offers" does not exist.', 75, $this->source); })()));
foreach ($context['_seq'] as $context["_key"] => $context["o"]) {
// line 76
yield " <div class=\"col-12 col-sm-6 col-lg-3\">
<article class=\"card card-offer border-0 shadow-sm h-100 overflow-hidden rounded-4\">
";
// line 78
if ((CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, $context["o"], "type", [], "any", false, false, false, 78), "id", [], "any", false, false, false, 78) == "1")) {
// line 79
yield " <a href=\"";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("o.escapade.destination", ["slug" => CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, $context["o"], "destination", [], "any", false, false, false, 79), "slug", [], "any", false, false, false, 79)]), "html", null, true);
yield "\" class=\"stretched-link text-decoration-none text-white\">
<div class=\"ratio ratio-4x5\">
<img src=\"";
// line 81
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl(((("img/destination/" . CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, $context["o"], "destination", [], "any", false, false, false, 81), "slug", [], "any", false, false, false, 81)) . "/") . CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, $context["o"], "destination", [], "any", false, false, false, 81), "img", [], "any", false, false, false, 81))), "html", null, true);
yield "\" alt=\"";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["o"], "title", [], "any", false, false, false, 81), "html", null, true);
yield "\" alt=\"";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["o"], "title", [], "any", false, false, false, 81), "html", null, true);
yield "\" class=\"object-fit-cover w-100 h-100\">
";
} elseif ((CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, // line 82
$context["o"], "type", [], "any", false, false, false, 82), "id", [], "any", false, false, false, 82) == "2")) {
// line 83
yield " <a href=\"";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("o.circuit.destination", ["slug" => CoreExtension::getAttribute($this->env, $this->source, $context["o"], "slug", [], "any", false, false, false, 83)]), "html", null, true);
yield "\" class=\"stretched-link text-decoration-none text-white\">
<div class=\"ratio ratio-4x5\">
<img src=\"";
// line 85
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl(((("img/offer/circuit/" . CoreExtension::getAttribute($this->env, $this->source, $context["o"], "slug", [], "any", false, false, false, 85)) . "/") . CoreExtension::getAttribute($this->env, $this->source, $context["o"], "img", [], "any", false, false, false, 85))), "html", null, true);
yield "\" alt=\"";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["o"], "file", [], "any", false, false, false, 85), "html", null, true);
yield "\" class=\"object-fit-cover w-100 h-100\">
";
} elseif ((CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, // line 86
$context["o"], "type", [], "any", false, false, false, 86), "id", [], "any", false, false, false, 86) == "3")) {
// line 87
yield " <a href=\"";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("o.roadtrip.destination", ["slug" => CoreExtension::getAttribute($this->env, $this->source, $context["o"], "slug", [], "any", false, false, false, 87)]), "html", null, true);
yield "\" class=\"stretched-link text-decoration-none text-white\">
<div class=\"ratio ratio-4x5\">
<img src=\"";
// line 89
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl(((("img/offer/road/" . CoreExtension::getAttribute($this->env, $this->source, $context["o"], "slug", [], "any", false, false, false, 89)) . "/") . CoreExtension::getAttribute($this->env, $this->source, $context["o"], "img", [], "any", false, false, false, 89))), "html", null, true);
yield "\" alt=\"";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["o"], "title", [], "any", false, false, false, 89), "html", null, true);
yield "\" class=\"object-fit-cover w-100 h-100\">
";
} elseif ((CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, // line 90
$context["o"], "type", [], "any", false, false, false, 90), "id", [], "any", false, false, false, 90) == "4")) {
// line 91
yield " <a href=\"";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("o.croisiere.destination", ["slug" => CoreExtension::getAttribute($this->env, $this->source, $context["o"], "slug", [], "any", false, false, false, 91)]), "html", null, true);
yield "\" class=\"stretched-link text-decoration-none text-white\">
<div class=\"ratio ratio-4x5\">
<img src=\"";
// line 93
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl(((("img/offer/croisiere/" . CoreExtension::getAttribute($this->env, $this->source, $context["o"], "slug", [], "any", false, false, false, 93)) . "/") . CoreExtension::getAttribute($this->env, $this->source, $context["o"], "img", [], "any", false, false, false, 93))), "html", null, true);
yield "\" alt=\"";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["o"], "title", [], "any", false, false, false, 93), "html", null, true);
yield "\" class=\"object-fit-cover w-100 h-100\">
";
}
// line 95
yield " </div>
<div class=\"card-img-overlay d-flex flex-column justify-content-end p-3 p-md-4\">
<h3 class=\"h5 fw-bold text-white text-shadow-sm mb-3\">";
// line 97
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["o"], "title", [], "any", false, false, false, 97), "html", null, true);
yield "</h3>
<div>
<span class=\"btn btn-outline-light btn-sm rounded-pill\">Découvrir</span>
</div>
</div>
</a>
</article>
</div>
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['o'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 106
yield " </div>
<div class=\"section-divider mx-auto my-5\"></div>
</div>
</section>
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
return; yield '';
}
// line 114
public function block_extra_head($context, array $blocks = [])
{
$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", "extra_head"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "extra_head"));
// line 115
yield " ";
yield from $this->yieldParentBlock("extra_head", $context, $blocks);
yield "
<link rel=\"stylesheet\" href=\"https://cdn.jsdelivr.net/npm/bootstrap-icons@1.11.3/font/bootstrap-icons.css\">
<style>
.text-shadow-sm{ text-shadow:0 2px 4px rgba(0,0,0,.35); }
.text-ot-green{ color: var(--ot-primary, #2ea37a); }
.bg-ot-green{ background: var(--ot-primary, #2ea37a); }
</style>
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
return; yield '';
}
/**
* @codeCoverageIgnore
*/
public function getTemplateName()
{
return "default/offers.html.twig";
}
/**
* @codeCoverageIgnore
*/
public function isTraitable()
{
return false;
}
/**
* @codeCoverageIgnore
*/
public function getDebugInfo()
{
return array ( 365 => 115, 355 => 114, 338 => 106, 323 => 97, 319 => 95, 312 => 93, 306 => 91, 304 => 90, 298 => 89, 292 => 87, 290 => 86, 284 => 85, 278 => 83, 276 => 82, 268 => 81, 262 => 79, 260 => 78, 256 => 76, 252 => 75, 245 => 71, 239 => 70, 234 => 67, 228 => 61, 224 => 60, 220 => 58, 211 => 51, 205 => 48, 202 => 47, 197 => 46, 193 => 45, 189 => 44, 185 => 43, 177 => 37, 171 => 34, 166 => 33, 160 => 30, 155 => 29, 153 => 28, 149 => 26, 146 => 22, 136 => 21, 124 => 17, 120 => 16, 116 => 15, 111 => 12, 107 => 11, 103 => 10, 98 => 8, 92 => 6, 82 => 5, 62 => 4, 39 => 2,);
}
public function getSourceContext()
{
return new Source("{# templates/escapade/show.html.twig #}
{% extends 'base.html.twig' %}
{% block title %}{{typeOffer.title}}{% endblock %}
{% block seo %}
<meta name=\"description\" content=\"{{typeOffer.description}}\" >
\t<meta property=\"og:title\" content=\"{{typeOffer.metaTitle}}\" />
\t<meta property=\"og:type\" content=\"Website\" />
\t<meta property=\"og:description\" content=\"{{typeOffer.metaDescription}}\" />
\t<meta property=\"og:url\" content=\"{{absolute_url( app.request.uri)}}\" />
\t<meta property=\"og:image\" content=\"{#{asset('img/asset/cardimg-fb.jpg')}#}\" />
\t<meta name =\"twitter:card\" content=\"summary_large_image\" />
\t<meta name=\"twitter:title\" content=\"{{typeOffer.metaTitle}}\">
\t<meta name=\"twitter:description\" content=\"{{typeOffer.metaDescription}}\">
\t<meta name=\"twitter:image\" content=\"{#{asset('img/asset/cardimg-fb.jpg')}#}\">
{% endblock %}
{# Header standard ou overlay si besoin sur le hero #}
{% block body %}
{# -----------------------------
HERO Escapade (avec inclus)
------------------------------ #}
<section class=\"hero hero--type is-animated position-relative text-white\">
<div class=\"hero__media ratio ratio-21x9\">
{% if typeOffer.img %}
<img src=\"{{ asset('img/offer/') ~ typeOffer.img }}\"
alt=\"{{ typeOffer.name }}\"
class=\"hero__img object-fit-cover w-100 h-100\">
{% else %}
<img src=\"{{ asset('img/2633.jpg') }}\"
alt=\"{{ typeOffer.name }}\"
class=\"hero__img object-fit-cover w-100 h-100\">
{% endif %}
</div>
<div class=\"hero__overlay hero__overlay--left\">
<div class=\"container\">
<div class=\"hero__card\" style=\"max-width: 600px;\">
<h1 class=\"hero__title display-5 fw-bold mb-3
{% if typeOffer.id == '1' %} txt-ot-green
{% elseif typeOffer.id == '2' %} txt-ot-yellow
{% elseif typeOffer.id == '3' %} txt-ot-brown
{% elseif typeOffer.id == '4' %} txt-ot-blue
{% endif %}\">
{{ typeOffer.name }}
</h1>
<p class=\"hero__subtitle mb-0\">{{ typeOffer.hook }}</p>
</div>
</div>
</div>
</section>
{# Fil d'Ariane #}
<nav class=\"container my-4\" aria-label=\"breadcrumb\">
<ol class=\"breadcrumb small\">
<li class=\"breadcrumb-item\"><a href=\"{{ path('app') }}\">Accueil</a></li>
<li class=\"breadcrumb-item active\">{{typeOffer.name}}</li>
</ol>
</nav>
{# -----------------------------
OFFRES DU MOMENT — réutilisation grille cartes maquette
------------------------------ #}
<section class=\"py-5 bg-white\">
<div class=\"container\">
<header class=\"mb-3\">
<h2 class=\"h3 txt-ot-{{typeOffer.color}} mb-1 fw-bold\">Notre sélection {{typeOffer.name}}.</h2>
<p class=\"text-muted mb-0\">{{typeOffer.summary}}</p>
</header>
<div class=\"row g-3 g-md-4\">
{% for o in offers %}
<div class=\"col-12 col-sm-6 col-lg-3\">
<article class=\"card card-offer border-0 shadow-sm h-100 overflow-hidden rounded-4\">
{% if o.type.id == '1' %}
<a href=\"{{ path('o.escapade.destination',{slug:o.destination.slug}) }}\" class=\"stretched-link text-decoration-none text-white\">
<div class=\"ratio ratio-4x5\">
<img src=\"{{asset('img/destination/' ~ o.destination.slug ~ '/' ~ o.destination.img)}}\" alt=\"{{ o.title }}\" alt=\"{{ o.title }}\" class=\"object-fit-cover w-100 h-100\">
{% elseif o.type.id == '2' %}
<a href=\"{{ path('o.circuit.destination',{slug:o.slug})}}\" class=\"stretched-link text-decoration-none text-white\">
<div class=\"ratio ratio-4x5\">
<img src=\"{{asset('img/offer/circuit/' ~ o.slug ~ '/' ~ o.img)}}\" alt=\"{{ o.file }}\" class=\"object-fit-cover w-100 h-100\">
{% elseif o.type.id == \"3\" %}
<a href=\"{{ path('o.roadtrip.destination',{slug:o.slug})}}\" class=\"stretched-link text-decoration-none text-white\">
<div class=\"ratio ratio-4x5\">
<img src=\"{{asset('img/offer/road/' ~ o.slug ~ '/' ~ o.img)}}\" alt=\"{{ o.title }}\" class=\"object-fit-cover w-100 h-100\">
{% elseif o.type.id == \"4\" %}
<a href=\"{{ path('o.croisiere.destination',{slug:o.slug})}}\" class=\"stretched-link text-decoration-none text-white\">
<div class=\"ratio ratio-4x5\">
<img src=\"{{asset('img/offer/croisiere/' ~ o.slug ~ '/' ~ o.img)}}\" alt=\"{{ o.title }}\" class=\"object-fit-cover w-100 h-100\">
{% endif %}
</div>
<div class=\"card-img-overlay d-flex flex-column justify-content-end p-3 p-md-4\">
<h3 class=\"h5 fw-bold text-white text-shadow-sm mb-3\">{{ o.title }}</h3>
<div>
<span class=\"btn btn-outline-light btn-sm rounded-pill\">Découvrir</span>
</div>
</div>
</a>
</article>
</div>
{% endfor %}
</div>
<div class=\"section-divider mx-auto my-5\"></div>
</div>
</section>
{% endblock %}
{% block extra_head %}
{{ parent() }}
<link rel=\"stylesheet\" href=\"https://cdn.jsdelivr.net/npm/bootstrap-icons@1.11.3/font/bootstrap-icons.css\">
<style>
.text-shadow-sm{ text-shadow:0 2px 4px rgba(0,0,0,.35); }
.text-ot-green{ color: var(--ot-primary, #2ea37a); }
.bg-ot-green{ background: var(--ot-primary, #2ea37a); }
</style>
{% endblock %}
", "default/offers.html.twig", "/home/ladomitiyc/otropik/templates/default/offers.html.twig");
}
}