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

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