var/cache/dev/twig/0b/0bb042f9e44b47ca4877d13b86cc476d.php line 42

Open in your IDE?
  1. <?php
  2. use Twig\Environment;
  3. use Twig\Error\LoaderError;
  4. use Twig\Error\RuntimeError;
  5. use Twig\Extension\CoreExtension;
  6. use Twig\Extension\SandboxExtension;
  7. use Twig\Markup;
  8. use Twig\Sandbox\SecurityError;
  9. use Twig\Sandbox\SecurityNotAllowedTagError;
  10. use Twig\Sandbox\SecurityNotAllowedFilterError;
  11. use Twig\Sandbox\SecurityNotAllowedFunctionError;
  12. use Twig\Source;
  13. use Twig\Template;
  14. /* default/offers.html.twig */
  15. class __TwigTemplate_d0e56149a0499b970c9d5ab1e754b8a7 extends Template
  16. {
  17.     private $source;
  18.     private $macros = [];
  19.     public function __construct(Environment $env)
  20.     {
  21.         parent::__construct($env);
  22.         $this->source $this->getSourceContext();
  23.         $this->blocks = [
  24.             'title' => [$this'block_title'],
  25.             'seo' => [$this'block_seo'],
  26.             'body' => [$this'block_body'],
  27.             'extra_head' => [$this'block_extra_head'],
  28.         ];
  29.     }
  30.     protected function doGetParent(array $context)
  31.     {
  32.         // line 2
  33.         return "base.html.twig";
  34.     }
  35.     protected function doDisplay(array $context, array $blocks = [])
  36.     {
  37.         $macros $this->macros;
  38.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  39.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""default/offers.html.twig"));
  40.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  41.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""default/offers.html.twig"));
  42.         $this->parent $this->loadTemplate("base.html.twig""default/offers.html.twig"2);
  43.         yield from $this->parent->unwrap()->yield($contextarray_merge($this->blocks$blocks));
  44.         
  45.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  46.         
  47.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  48.     }
  49.     // line 4
  50.     public function block_title($context, array $blocks = [])
  51.     {
  52.         $macros $this->macros;
  53.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  54.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""title"));
  55.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  56.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""title"));
  57.         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"falsefalsefalse4), "html"nulltrue);
  58.         
  59.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  60.         
  61.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  62.         return; yield '';
  63.     }
  64.     // line 5
  65.     public function block_seo($context, array $blocks = [])
  66.     {
  67.         $macros $this->macros;
  68.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  69.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""seo"));
  70.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  71.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""seo"));
  72.         // line 6
  73.         yield " <meta name=\"description\" content=\"";
  74.         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"falsefalsefalse6), "html"nulltrue);
  75.         yield "\" >
  76. \t<meta property=\"og:title\" content=\"";
  77.         // line 8
  78.         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"falsefalsefalse8), "html"nulltrue);
  79.         yield "\" />
  80. \t<meta property=\"og:type\" content=\"Website\" />
  81. \t<meta property=\"og:description\" content=\"";
  82.         // line 10
  83.         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"falsefalsefalse10), "html"nulltrue);
  84.         yield "\" />
  85. \t<meta property=\"og:url\" content=\"";
  86.         // line 11
  87.         yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\HttpFoundationExtension']->generateAbsoluteUrl(CoreExtension::getAttribute($this->env$this->sourceCoreExtension::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"falsefalsefalse11), "uri", [], "any"falsefalsefalse11)), "html"nulltrue);
  88.         yield "\" />
  89. \t<meta property=\"og:image\" content=\"";
  90.         // line 12
  91.         yield "\" />
  92. \t<meta name =\"twitter:card\" content=\"summary_large_image\" />
  93. \t<meta name=\"twitter:title\" content=\"";
  94.         // line 15
  95.         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"falsefalsefalse15), "html"nulltrue);
  96.         yield "\">
  97. \t<meta name=\"twitter:description\" content=\"";
  98.         // line 16
  99.         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"falsefalsefalse16), "html"nulltrue);
  100.         yield "\">
  101. \t<meta name=\"twitter:image\" content=\"";
  102.         // line 17
  103.         yield "\">
  104. ";
  105.         
  106.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  107.         
  108.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  109.         return; yield '';
  110.     }
  111.     // line 21
  112.     public function block_body($context, array $blocks = [])
  113.     {
  114.         $macros $this->macros;
  115.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  116.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""body"));
  117.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  118.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""body"));
  119.         // line 22
  120.         yield "
  121. ";
  122.         // line 26
  123.         yield "<section class=\"hero hero--type is-animated position-relative text-white\">
  124.   <div class=\"hero__media ratio ratio-21x9\">
  125.     ";
  126.         // line 28
  127.         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"falsefalsefalse28)) {
  128.             // line 29
  129.             yield "      <img src=\"";
  130.             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"falsefalsefalse29)), "html"nulltrue);
  131.             yield "\"
  132.            alt=\"";
  133.             // line 30
  134.             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"falsefalsefalse30), "html"nulltrue);
  135.             yield "\"
  136.            class=\"hero__img object-fit-cover w-100 h-100\">
  137.     ";
  138.         } else {
  139.             // line 33
  140.             yield "      <img src=\"";
  141.             yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("img/2633.jpg"), "html"nulltrue);
  142.             yield "\"
  143.            alt=\"";
  144.             // line 34
  145.             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"falsefalsefalse34), "html"nulltrue);
  146.             yield "\"
  147.            class=\"hero__img object-fit-cover w-100 h-100\">
  148.     ";
  149.         }
  150.         // line 37
  151.         yield "  </div>
  152.   <div class=\"hero__overlay hero__overlay--left\">
  153.     <div class=\"container\">
  154.       <div class=\"hero__card\" style=\"max-width: 600px;\">
  155.         <h1 class=\"hero__title display-5 fw-bold mb-3
  156.           ";
  157.         // line 43
  158.         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"falsefalsefalse43) == "1")) {
  159.             yield " txt-ot-green
  160.           ";
  161.         } elseif ((CoreExtension::getAttribute($this->env$this->source,         // line 44
  162. (isset($context["typeOffer"]) || array_key_exists("typeOffer"$context) ? $context["typeOffer"] : (function () { throw new RuntimeError('Variable "typeOffer" does not exist.'44$this->source); })()), "id", [], "any"falsefalsefalse44) == "2")) {
  163.             yield " txt-ot-yellow
  164.           ";
  165.         } elseif ((CoreExtension::getAttribute($this->env$this->source,         // line 45
  166. (isset($context["typeOffer"]) || array_key_exists("typeOffer"$context) ? $context["typeOffer"] : (function () { throw new RuntimeError('Variable "typeOffer" does not exist.'45$this->source); })()), "id", [], "any"falsefalsefalse45) == "3")) {
  167.             yield " txt-ot-brown
  168.           ";
  169.         } elseif ((CoreExtension::getAttribute($this->env$this->source,         // line 46
  170. (isset($context["typeOffer"]) || array_key_exists("typeOffer"$context) ? $context["typeOffer"] : (function () { throw new RuntimeError('Variable "typeOffer" does not exist.'46$this->source); })()), "id", [], "any"falsefalsefalse46) == "4")) {
  171.             yield " txt-ot-blue
  172.           ";
  173.         }
  174.         // line 47
  175.         yield "\">
  176.           ";
  177.         // line 48
  178.         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"falsefalsefalse48), "html"nulltrue);
  179.         yield "
  180.         </h1>
  181.         <p class=\"hero__subtitle mb-0\">";
  182.         // line 51
  183.         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"falsefalsefalse51), "html"nulltrue);
  184.         yield "</p>
  185.       </div>
  186.     </div>
  187.   </div>
  188. </section>
  189. ";
  190.         // line 58
  191.         yield "<nav class=\"container my-4\" aria-label=\"breadcrumb\">
  192.   <ol class=\"breadcrumb small\">
  193.     <li class=\"breadcrumb-item\"><a href=\"";
  194.         // line 60
  195.         yield $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("app");
  196.         yield "\">Accueil</a></li>
  197.     <li class=\"breadcrumb-item active\">";
  198.         // line 61
  199.         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"falsefalsefalse61), "html"nulltrue);
  200.         yield "</li>
  201.   </ol>
  202. </nav>
  203. ";
  204.         // line 67
  205.         yield "<section class=\"py-5 bg-white\">
  206.   <div class=\"container\">
  207.     <header class=\"mb-3\">
  208.       <h2 class=\"h3 txt-ot-";
  209.         // line 70
  210.         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"falsefalsefalse70), "html"nulltrue);
  211.         yield " mb-1 fw-bold\">Notre sélection ";
  212.         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"falsefalsefalse70), "html"nulltrue);
  213.         yield ".</h2>
  214.       <p class=\"text-muted mb-0\">";
  215.         // line 71
  216.         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"falsefalsefalse71), "html"nulltrue);
  217.         yield "</p>
  218.     </header>
  219.   <div class=\"row g-3 g-md-4\">
  220.       ";
  221.         // line 75
  222.         $context['_parent'] = $context;
  223.         $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); })()));
  224.         foreach ($context['_seq'] as $context["_key"] => $context["o"]) {
  225.             // line 76
  226.             yield "      <div class=\"col-12 col-sm-6 col-lg-3\">
  227.         <article class=\"card card-offer border-0 shadow-sm h-100 overflow-hidden rounded-4\">
  228.         ";
  229.             // line 78
  230.             if ((CoreExtension::getAttribute($this->env$this->sourceCoreExtension::getAttribute($this->env$this->source$context["o"], "type", [], "any"falsefalsefalse78), "id", [], "any"falsefalsefalse78) == "1")) {
  231.                 // line 79
  232.                 yield "          <a href=\"";
  233.                 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->sourceCoreExtension::getAttribute($this->env$this->source$context["o"], "destination", [], "any"falsefalsefalse79), "slug", [], "any"falsefalsefalse79)]), "html"nulltrue);
  234.                 yield "\" class=\"stretched-link text-decoration-none text-white\">
  235.           <div class=\"ratio ratio-4x5\">
  236.               <img src=\"";
  237.                 // line 81
  238.                 yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl(((("img/destination/" CoreExtension::getAttribute($this->env$this->sourceCoreExtension::getAttribute($this->env$this->source$context["o"], "destination", [], "any"falsefalsefalse81), "slug", [], "any"falsefalsefalse81)) . "/") . CoreExtension::getAttribute($this->env$this->sourceCoreExtension::getAttribute($this->env$this->source$context["o"], "destination", [], "any"falsefalsefalse81), "img", [], "any"falsefalsefalse81))), "html"nulltrue);
  239.                 yield "\" alt=\"";
  240.                 yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env$this->source$context["o"], "title", [], "any"falsefalsefalse81), "html"nulltrue);
  241.                 yield "\" alt=\"";
  242.                 yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env$this->source$context["o"], "title", [], "any"falsefalsefalse81), "html"nulltrue);
  243.                 yield "\" class=\"object-fit-cover w-100 h-100\">
  244.         ";
  245.             } elseif ((CoreExtension::getAttribute($this->env$this->sourceCoreExtension::getAttribute($this->env$this->source,             // line 82
  246. $context["o"], "type", [], "any"falsefalsefalse82), "id", [], "any"falsefalsefalse82) == "2")) {
  247.                 // line 83
  248.                 yield "          <a href=\"";
  249.                 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"falsefalsefalse83)]), "html"nulltrue);
  250.                 yield "\" class=\"stretched-link text-decoration-none text-white\">
  251.           <div class=\"ratio ratio-4x5\">
  252.               <img src=\"";
  253.                 // line 85
  254.                 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"falsefalsefalse85)) . "/") . CoreExtension::getAttribute($this->env$this->source$context["o"], "img", [], "any"falsefalsefalse85))), "html"nulltrue);
  255.                 yield "\" alt=\"";
  256.                 yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env$this->source$context["o"], "file", [], "any"falsefalsefalse85), "html"nulltrue);
  257.                 yield "\" class=\"object-fit-cover w-100 h-100\">
  258.         ";
  259.             } elseif ((CoreExtension::getAttribute($this->env$this->sourceCoreExtension::getAttribute($this->env$this->source,             // line 86
  260. $context["o"], "type", [], "any"falsefalsefalse86), "id", [], "any"falsefalsefalse86) == "3")) {
  261.                 // line 87
  262.                 yield "          <a href=\"";
  263.                 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"falsefalsefalse87)]), "html"nulltrue);
  264.                 yield "\" class=\"stretched-link text-decoration-none text-white\">
  265.           <div class=\"ratio ratio-4x5\">
  266.               <img src=\"";
  267.                 // line 89
  268.                 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"falsefalsefalse89)) . "/") . CoreExtension::getAttribute($this->env$this->source$context["o"], "img", [], "any"falsefalsefalse89))), "html"nulltrue);
  269.                 yield "\" alt=\"";
  270.                 yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env$this->source$context["o"], "title", [], "any"falsefalsefalse89), "html"nulltrue);
  271.                 yield "\" class=\"object-fit-cover w-100 h-100\">
  272.         ";
  273.             } elseif ((CoreExtension::getAttribute($this->env$this->sourceCoreExtension::getAttribute($this->env$this->source,             // line 90
  274. $context["o"], "type", [], "any"falsefalsefalse90), "id", [], "any"falsefalsefalse90) == "4")) {
  275.                 // line 91
  276.                 yield "          <a href=\"";
  277.                 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"falsefalsefalse91)]), "html"nulltrue);
  278.                 yield "\" class=\"stretched-link text-decoration-none text-white\">
  279.           <div class=\"ratio ratio-4x5\">
  280.               <img src=\"";
  281.                 // line 93
  282.                 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"falsefalsefalse93)) . "/") . CoreExtension::getAttribute($this->env$this->source$context["o"], "img", [], "any"falsefalsefalse93))), "html"nulltrue);
  283.                 yield "\" alt=\"";
  284.                 yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env$this->source$context["o"], "title", [], "any"falsefalsefalse93), "html"nulltrue);
  285.                 yield "\" class=\"object-fit-cover w-100 h-100\">
  286.         ";
  287.             }
  288.             // line 95
  289.             yield "            </div>
  290.             <div class=\"card-img-overlay d-flex flex-column justify-content-end p-3 p-md-4\">
  291.               <h3 class=\"h5 fw-bold text-white text-shadow-sm mb-3\">";
  292.             // line 97
  293.             yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env$this->source$context["o"], "title", [], "any"falsefalsefalse97), "html"nulltrue);
  294.             yield "</h3>
  295.               <div>
  296.                 <span class=\"btn btn-outline-light btn-sm rounded-pill\">Découvrir</span>
  297.               </div>
  298.             </div>
  299.           </a>
  300.         </article>
  301.       </div>
  302.       ";
  303.         }
  304.         $_parent $context['_parent'];
  305.         unset($context['_seq'], $context['_iterated'], $context['_key'], $context['o'], $context['_parent'], $context['loop']);
  306.         $context array_intersect_key($context$_parent) + $_parent;
  307.         // line 106
  308.         yield "    </div>
  309.     <div class=\"section-divider mx-auto my-5\"></div>
  310.   </div>
  311. </section>
  312. ";
  313.         
  314.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  315.         
  316.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  317.         return; yield '';
  318.     }
  319.     // line 114
  320.     public function block_extra_head($context, array $blocks = [])
  321.     {
  322.         $macros $this->macros;
  323.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  324.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""extra_head"));
  325.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  326.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""extra_head"));
  327.         // line 115
  328.         yield "  ";
  329.         yield from $this->yieldParentBlock("extra_head"$context$blocks);
  330.         yield "
  331.   <link rel=\"stylesheet\" href=\"https://cdn.jsdelivr.net/npm/bootstrap-icons@1.11.3/font/bootstrap-icons.css\">
  332.   <style>
  333.     .text-shadow-sm{ text-shadow:0 2px 4px rgba(0,0,0,.35); }
  334.     .text-ot-green{ color: var(--ot-primary, #2ea37a); }
  335.     .bg-ot-green{ background: var(--ot-primary, #2ea37a); }
  336.   </style>
  337. ";
  338.         
  339.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  340.         
  341.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  342.         return; yield '';
  343.     }
  344.     /**
  345.      * @codeCoverageIgnore
  346.      */
  347.     public function getTemplateName()
  348.     {
  349.         return "default/offers.html.twig";
  350.     }
  351.     /**
  352.      * @codeCoverageIgnore
  353.      */
  354.     public function isTraitable()
  355.     {
  356.         return false;
  357.     }
  358.     /**
  359.      * @codeCoverageIgnore
  360.      */
  361.     public function getDebugInfo()
  362.     {
  363.         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,);
  364.     }
  365.     public function getSourceContext()
  366.     {
  367.         return new Source("{# templates/escapade/show.html.twig #}
  368. {% extends 'base.html.twig' %}
  369. {% block title %}{{typeOffer.title}}{% endblock %}
  370. {% block seo %}
  371.  <meta name=\"description\" content=\"{{typeOffer.description}}\" >
  372. \t<meta property=\"og:title\" content=\"{{typeOffer.metaTitle}}\" />
  373. \t<meta property=\"og:type\" content=\"Website\" />
  374. \t<meta property=\"og:description\" content=\"{{typeOffer.metaDescription}}\" />
  375. \t<meta property=\"og:url\" content=\"{{absolute_url( app.request.uri)}}\" />
  376. \t<meta property=\"og:image\" content=\"{#{asset('img/asset/cardimg-fb.jpg')}#}\" />
  377. \t<meta name =\"twitter:card\" content=\"summary_large_image\" />
  378. \t<meta name=\"twitter:title\" content=\"{{typeOffer.metaTitle}}\">
  379. \t<meta name=\"twitter:description\" content=\"{{typeOffer.metaDescription}}\">
  380. \t<meta name=\"twitter:image\" content=\"{#{asset('img/asset/cardimg-fb.jpg')}#}\">
  381. {% endblock %}
  382. {# Header standard ou overlay si besoin sur le hero #}
  383. {% block body %}
  384. {# -----------------------------
  385.    HERO Escapade (avec inclus)
  386. ------------------------------ #}
  387. <section class=\"hero hero--type is-animated position-relative text-white\">
  388.   <div class=\"hero__media ratio ratio-21x9\">
  389.     {% if typeOffer.img %}
  390.       <img src=\"{{ asset('img/offer/') ~ typeOffer.img }}\"
  391.            alt=\"{{ typeOffer.name }}\"
  392.            class=\"hero__img object-fit-cover w-100 h-100\">
  393.     {% else %}
  394.       <img src=\"{{ asset('img/2633.jpg') }}\"
  395.            alt=\"{{ typeOffer.name }}\"
  396.            class=\"hero__img object-fit-cover w-100 h-100\">
  397.     {% endif %}
  398.   </div>
  399.   <div class=\"hero__overlay hero__overlay--left\">
  400.     <div class=\"container\">
  401.       <div class=\"hero__card\" style=\"max-width: 600px;\">
  402.         <h1 class=\"hero__title display-5 fw-bold mb-3
  403.           {% if typeOffer.id == '1' %} txt-ot-green
  404.           {% elseif typeOffer.id == '2' %} txt-ot-yellow
  405.           {% elseif typeOffer.id == '3' %} txt-ot-brown
  406.           {% elseif typeOffer.id == '4' %} txt-ot-blue
  407.           {% endif %}\">
  408.           {{ typeOffer.name }}
  409.         </h1>
  410.         <p class=\"hero__subtitle mb-0\">{{ typeOffer.hook }}</p>
  411.       </div>
  412.     </div>
  413.   </div>
  414. </section>
  415. {# Fil d'Ariane #}
  416. <nav class=\"container my-4\" aria-label=\"breadcrumb\">
  417.   <ol class=\"breadcrumb small\">
  418.     <li class=\"breadcrumb-item\"><a href=\"{{ path('app') }}\">Accueil</a></li>
  419.     <li class=\"breadcrumb-item active\">{{typeOffer.name}}</li>
  420.   </ol>
  421. </nav>
  422. {# -----------------------------
  423.    OFFRES DU MOMENT — réutilisation grille cartes maquette
  424. ------------------------------ #}
  425. <section class=\"py-5 bg-white\">
  426.   <div class=\"container\">
  427.     <header class=\"mb-3\">
  428.       <h2 class=\"h3 txt-ot-{{typeOffer.color}} mb-1 fw-bold\">Notre sélection {{typeOffer.name}}.</h2>
  429.       <p class=\"text-muted mb-0\">{{typeOffer.summary}}</p>
  430.     </header>
  431.   <div class=\"row g-3 g-md-4\">
  432.       {% for o in offers %}
  433.       <div class=\"col-12 col-sm-6 col-lg-3\">
  434.         <article class=\"card card-offer border-0 shadow-sm h-100 overflow-hidden rounded-4\">
  435.         {% if o.type.id == '1' %}
  436.           <a href=\"{{ path('o.escapade.destination',{slug:o.destination.slug}) }}\" class=\"stretched-link text-decoration-none text-white\">
  437.           <div class=\"ratio ratio-4x5\">
  438.               <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\">
  439.         {% elseif o.type.id == '2' %}
  440.           <a href=\"{{ path('o.circuit.destination',{slug:o.slug})}}\" class=\"stretched-link text-decoration-none text-white\">
  441.           <div class=\"ratio ratio-4x5\">
  442.               <img src=\"{{asset('img/offer/circuit/' ~ o.slug  ~ '/' ~ o.img)}}\" alt=\"{{ o.file }}\" class=\"object-fit-cover w-100 h-100\">
  443.         {% elseif o.type.id == \"3\" %}
  444.           <a href=\"{{ path('o.roadtrip.destination',{slug:o.slug})}}\" class=\"stretched-link text-decoration-none text-white\">
  445.           <div class=\"ratio ratio-4x5\">
  446.               <img src=\"{{asset('img/offer/road/' ~ o.slug  ~ '/' ~ o.img)}}\" alt=\"{{ o.title }}\" class=\"object-fit-cover w-100 h-100\">
  447.         {% elseif o.type.id == \"4\" %}
  448.           <a href=\"{{ path('o.croisiere.destination',{slug:o.slug})}}\" class=\"stretched-link text-decoration-none text-white\">
  449.           <div class=\"ratio ratio-4x5\">
  450.               <img src=\"{{asset('img/offer/croisiere/' ~ o.slug  ~ '/' ~ o.img)}}\" alt=\"{{ o.title }}\" class=\"object-fit-cover w-100 h-100\">
  451.         {% endif %}
  452.             </div>
  453.             <div class=\"card-img-overlay d-flex flex-column justify-content-end p-3 p-md-4\">
  454.               <h3 class=\"h5 fw-bold text-white text-shadow-sm mb-3\">{{ o.title }}</h3>
  455.               <div>
  456.                 <span class=\"btn btn-outline-light btn-sm rounded-pill\">Découvrir</span>
  457.               </div>
  458.             </div>
  459.           </a>
  460.         </article>
  461.       </div>
  462.       {% endfor %}
  463.     </div>
  464.     <div class=\"section-divider mx-auto my-5\"></div>
  465.   </div>
  466. </section>
  467. {% endblock %}
  468. {% block extra_head %}
  469.   {{ parent() }}
  470.   <link rel=\"stylesheet\" href=\"https://cdn.jsdelivr.net/npm/bootstrap-icons@1.11.3/font/bootstrap-icons.css\">
  471.   <style>
  472.     .text-shadow-sm{ text-shadow:0 2px 4px rgba(0,0,0,.35); }
  473.     .text-ot-green{ color: var(--ot-primary, #2ea37a); }
  474.     .bg-ot-green{ background: var(--ot-primary, #2ea37a); }
  475.   </style>
  476. {% endblock %}
  477. ""default/offers.html.twig""/home/ladomitiyc/otropik/templates/default/offers.html.twig");
  478.     }
  479. }