var/cache/dev/twig/d0/d0cfe8cd51622b2c3f11b19d3b1a18de.php line 51

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/legal.html.twig */
  15. class __TwigTemplate_58e20ba1e0b3a6319b626aeaa5e44813 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.         ];
  28.     }
  29.     protected function doGetParent(array $context)
  30.     {
  31.         // line 1
  32.         return "base.html.twig";
  33.     }
  34.     protected function doDisplay(array $context, array $blocks = [])
  35.     {
  36.         $macros $this->macros;
  37.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  38.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""default/legal.html.twig"));
  39.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  40.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""default/legal.html.twig"));
  41.         $this->parent $this->loadTemplate("base.html.twig""default/legal.html.twig"1);
  42.         yield from $this->parent->unwrap()->yield($contextarray_merge($this->blocks$blocks));
  43.         
  44.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  45.         
  46.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  47.     }
  48.     // line 3
  49.     public function block_title($context, array $blocks = [])
  50.     {
  51.         $macros $this->macros;
  52.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  53.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""title"));
  54.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  55.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""title"));
  56.         yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env$this->source, (isset($context["page"]) || array_key_exists("page"$context) ? $context["page"] : (function () { throw new RuntimeError('Variable "page" does not exist.'3$this->source); })()), "title", [], "any"falsefalsefalse3), "html"nulltrue);
  57.         yield " — OTropik";
  58.         
  59.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  60.         
  61.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  62.         return; yield '';
  63.     }
  64.     // line 4
  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 5
  73.         yield "  <meta name=\"description\" content=\"";
  74.         yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env$this->source, (isset($context["page"]) || array_key_exists("page"$context) ? $context["page"] : (function () { throw new RuntimeError('Variable "page" does not exist.'5$this->source); })()), "title", [], "any"falsefalsefalse5), "html"nulltrue);
  75.         yield " — OTropik, agence de voyage en Guadeloupe.\">
  76.   <meta name=\"robots\" content=\"noindex\">
  77. ";
  78.         
  79.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  80.         
  81.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  82.         return; yield '';
  83.     }
  84.     // line 9
  85.     public function block_body($context, array $blocks = [])
  86.     {
  87.         $macros $this->macros;
  88.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  89.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""body"));
  90.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  91.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""body"));
  92.         // line 10
  93.         yield "<div class=\"d-flex align-items-center justify-content-center text-white text-center\"
  94.      style=\"height:200px; background: linear-gradient(135deg, #2ea37a 0%, #1a7a58 100%);\">
  95.   <h1 class=\"fw-bold mb-0 display-6\">";
  96.         // line 12
  97.         yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env$this->source, (isset($context["page"]) || array_key_exists("page"$context) ? $context["page"] : (function () { throw new RuntimeError('Variable "page" does not exist.'12$this->source); })()), "title", [], "any"falsefalsefalse12), "html"nulltrue);
  98.         yield "</h1>
  99. </div>
  100. <section class=\"container py-5\" style=\"min-height:60vh;\">
  101.   <nav aria-label=\"breadcrumb\" class=\"mb-4\">
  102.     <ol class=\"breadcrumb small\">
  103.       <li class=\"breadcrumb-item\"><a href=\"";
  104.         // line 18
  105.         yield $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("app");
  106.         yield "\">Accueil</a></li>
  107.       <li class=\"breadcrumb-item active\">";
  108.         // line 19
  109.         yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env$this->source, (isset($context["page"]) || array_key_exists("page"$context) ? $context["page"] : (function () { throw new RuntimeError('Variable "page" does not exist.'19$this->source); })()), "title", [], "any"falsefalsefalse19), "html"nulltrue);
  110.         yield "</li>
  111.     </ol>
  112.   </nav>
  113.   <div class=\"row justify-content-center\">
  114.     <div class=\"col-12 col-lg-9\">
  115.       <div class=\"mb-4 d-flex gap-3 flex-wrap\">
  116.         <a href=\"";
  117.         // line 27
  118.         yield $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("legal.mentions");
  119.         yield "\" class=\"btn btn-sm ";
  120.         yield (((CoreExtension::getAttribute($this->env$this->source, (isset($context["page"]) || array_key_exists("page"$context) ? $context["page"] : (function () { throw new RuntimeError('Variable "page" does not exist.'27$this->source); })()), "type", [], "any"falsefalsefalse27) == "mentions-legales")) ? ("btn-primary") : ("btn-outline-primary"));
  121.         yield "\">Mentions légales</a>
  122.         <a href=\"";
  123.         // line 28
  124.         yield $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("legal.cgu");
  125.         yield "\" class=\"btn btn-sm ";
  126.         yield (((CoreExtension::getAttribute($this->env$this->source, (isset($context["page"]) || array_key_exists("page"$context) ? $context["page"] : (function () { throw new RuntimeError('Variable "page" does not exist.'28$this->source); })()), "type", [], "any"falsefalsefalse28) == "cgu")) ? ("btn-primary") : ("btn-outline-primary"));
  127.         yield "\">CGU</a>
  128.         <a href=\"";
  129.         // line 29
  130.         yield $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("legal.privacy");
  131.         yield "\" class=\"btn btn-sm ";
  132.         yield (((CoreExtension::getAttribute($this->env$this->source, (isset($context["page"]) || array_key_exists("page"$context) ? $context["page"] : (function () { throw new RuntimeError('Variable "page" does not exist.'29$this->source); })()), "type", [], "any"falsefalsefalse29) == "politique-de-confidentialite")) ? ("btn-primary") : ("btn-outline-primary"));
  133.         yield "\">Politique de confidentialité</a>
  134.       </div>
  135.       <div class=\"legal-content\">
  136.         ";
  137.         // line 33
  138.         yield CoreExtension::getAttribute($this->env$this->source, (isset($context["page"]) || array_key_exists("page"$context) ? $context["page"] : (function () { throw new RuntimeError('Variable "page" does not exist.'33$this->source); })()), "content", [], "any"falsefalsefalse33);
  139.         yield "
  140.       </div>
  141.       <p class=\"text-muted small mt-5\">Dernière mise à jour : ";
  142.         // line 36
  143.         yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Twig\Extension\CoreExtension']->formatDate(CoreExtension::getAttribute($this->env$this->source, (isset($context["page"]) || array_key_exists("page"$context) ? $context["page"] : (function () { throw new RuntimeError('Variable "page" does not exist.'36$this->source); })()), "updatedAt", [], "any"falsefalsefalse36), "d/m/Y"), "html"nulltrue);
  144.         yield "</p>
  145.     </div>
  146.   </div>
  147. </section>
  148. ";
  149.         
  150.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  151.         
  152.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  153.         return; yield '';
  154.     }
  155.     /**
  156.      * @codeCoverageIgnore
  157.      */
  158.     public function getTemplateName()
  159.     {
  160.         return "default/legal.html.twig";
  161.     }
  162.     /**
  163.      * @codeCoverageIgnore
  164.      */
  165.     public function isTraitable()
  166.     {
  167.         return false;
  168.     }
  169.     /**
  170.      * @codeCoverageIgnore
  171.      */
  172.     public function getDebugInfo()
  173.     {
  174.         return array (  172 => 36,  166 => 33,  157 => 29,  151 => 28,  145 => 27,  134 => 19,  130 => 18,  121 => 12,  117 => 10,  107 => 9,  92 => 5,  82 => 4,  61 => 3,  38 => 1,);
  175.     }
  176.     public function getSourceContext()
  177.     {
  178.         return new Source("{% extends 'base.html.twig' %}
  179. {% block title %}{{ page.title }} — OTropik{% endblock %}
  180. {% block seo %}
  181.   <meta name=\"description\" content=\"{{ page.title }} — OTropik, agence de voyage en Guadeloupe.\">
  182.   <meta name=\"robots\" content=\"noindex\">
  183. {% endblock %}
  184. {% block body %}
  185. <div class=\"d-flex align-items-center justify-content-center text-white text-center\"
  186.      style=\"height:200px; background: linear-gradient(135deg, #2ea37a 0%, #1a7a58 100%);\">
  187.   <h1 class=\"fw-bold mb-0 display-6\">{{ page.title }}</h1>
  188. </div>
  189. <section class=\"container py-5\" style=\"min-height:60vh;\">
  190.   <nav aria-label=\"breadcrumb\" class=\"mb-4\">
  191.     <ol class=\"breadcrumb small\">
  192.       <li class=\"breadcrumb-item\"><a href=\"{{ path('app') }}\">Accueil</a></li>
  193.       <li class=\"breadcrumb-item active\">{{ page.title }}</li>
  194.     </ol>
  195.   </nav>
  196.   <div class=\"row justify-content-center\">
  197.     <div class=\"col-12 col-lg-9\">
  198.       <div class=\"mb-4 d-flex gap-3 flex-wrap\">
  199.         <a href=\"{{ path('legal.mentions') }}\" class=\"btn btn-sm {{ page.type == 'mentions-legales' ? 'btn-primary' : 'btn-outline-primary' }}\">Mentions légales</a>
  200.         <a href=\"{{ path('legal.cgu') }}\" class=\"btn btn-sm {{ page.type == 'cgu' ? 'btn-primary' : 'btn-outline-primary' }}\">CGU</a>
  201.         <a href=\"{{ path('legal.privacy') }}\" class=\"btn btn-sm {{ page.type == 'politique-de-confidentialite' ? 'btn-primary' : 'btn-outline-primary' }}\">Politique de confidentialité</a>
  202.       </div>
  203.       <div class=\"legal-content\">
  204.         {{ page.content|raw }}
  205.       </div>
  206.       <p class=\"text-muted small mt-5\">Dernière mise à jour : {{ page.updatedAt|date('d/m/Y') }}</p>
  207.     </div>
  208.   </div>
  209. </section>
  210. {% endblock %}
  211. ""default/legal.html.twig""/home/ladomitiyc/otropik/templates/default/legal.html.twig");
  212.     }
  213. }