<?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/legal.html.twig */
class __TwigTemplate_58e20ba1e0b3a6319b626aeaa5e44813 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'],
];
}
protected function doGetParent(array $context)
{
// line 1
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/legal.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/legal.html.twig"));
$this->parent = $this->loadTemplate("base.html.twig", "default/legal.html.twig", 1);
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 3
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["page"]) || array_key_exists("page", $context) ? $context["page"] : (function () { throw new RuntimeError('Variable "page" does not exist.', 3, $this->source); })()), "title", [], "any", false, false, false, 3), "html", null, true);
yield " — OTropik";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
return; yield '';
}
// line 4
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 5
yield " <meta name=\"description\" content=\"";
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", false, false, false, 5), "html", null, true);
yield " — OTropik, agence de voyage en Guadeloupe.\">
<meta name=\"robots\" content=\"noindex\">
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
return; yield '';
}
// line 9
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 10
yield "<div class=\"d-flex align-items-center justify-content-center text-white text-center\"
style=\"height:200px; background: linear-gradient(135deg, #2ea37a 0%, #1a7a58 100%);\">
<h1 class=\"fw-bold mb-0 display-6\">";
// line 12
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", false, false, false, 12), "html", null, true);
yield "</h1>
</div>
<section class=\"container py-5\" style=\"min-height:60vh;\">
<nav aria-label=\"breadcrumb\" class=\"mb-4\">
<ol class=\"breadcrumb small\">
<li class=\"breadcrumb-item\"><a href=\"";
// line 18
yield $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("app");
yield "\">Accueil</a></li>
<li class=\"breadcrumb-item active\">";
// line 19
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", false, false, false, 19), "html", null, true);
yield "</li>
</ol>
</nav>
<div class=\"row justify-content-center\">
<div class=\"col-12 col-lg-9\">
<div class=\"mb-4 d-flex gap-3 flex-wrap\">
<a href=\"";
// line 27
yield $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("legal.mentions");
yield "\" class=\"btn btn-sm ";
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", false, false, false, 27) == "mentions-legales")) ? ("btn-primary") : ("btn-outline-primary"));
yield "\">Mentions légales</a>
<a href=\"";
// line 28
yield $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("legal.cgu");
yield "\" class=\"btn btn-sm ";
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", false, false, false, 28) == "cgu")) ? ("btn-primary") : ("btn-outline-primary"));
yield "\">CGU</a>
<a href=\"";
// line 29
yield $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("legal.privacy");
yield "\" class=\"btn btn-sm ";
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", false, false, false, 29) == "politique-de-confidentialite")) ? ("btn-primary") : ("btn-outline-primary"));
yield "\">Politique de confidentialité</a>
</div>
<div class=\"legal-content\">
";
// line 33
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", false, false, false, 33);
yield "
</div>
<p class=\"text-muted small mt-5\">Dernière mise à jour : ";
// line 36
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", false, false, false, 36), "d/m/Y"), "html", null, true);
yield "</p>
</div>
</div>
</section>
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
return; yield '';
}
/**
* @codeCoverageIgnore
*/
public function getTemplateName()
{
return "default/legal.html.twig";
}
/**
* @codeCoverageIgnore
*/
public function isTraitable()
{
return false;
}
/**
* @codeCoverageIgnore
*/
public function getDebugInfo()
{
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,);
}
public function getSourceContext()
{
return new Source("{% extends 'base.html.twig' %}
{% block title %}{{ page.title }} — OTropik{% endblock %}
{% block seo %}
<meta name=\"description\" content=\"{{ page.title }} — OTropik, agence de voyage en Guadeloupe.\">
<meta name=\"robots\" content=\"noindex\">
{% endblock %}
{% block body %}
<div class=\"d-flex align-items-center justify-content-center text-white text-center\"
style=\"height:200px; background: linear-gradient(135deg, #2ea37a 0%, #1a7a58 100%);\">
<h1 class=\"fw-bold mb-0 display-6\">{{ page.title }}</h1>
</div>
<section class=\"container py-5\" style=\"min-height:60vh;\">
<nav aria-label=\"breadcrumb\" class=\"mb-4\">
<ol class=\"breadcrumb small\">
<li class=\"breadcrumb-item\"><a href=\"{{ path('app') }}\">Accueil</a></li>
<li class=\"breadcrumb-item active\">{{ page.title }}</li>
</ol>
</nav>
<div class=\"row justify-content-center\">
<div class=\"col-12 col-lg-9\">
<div class=\"mb-4 d-flex gap-3 flex-wrap\">
<a href=\"{{ path('legal.mentions') }}\" class=\"btn btn-sm {{ page.type == 'mentions-legales' ? 'btn-primary' : 'btn-outline-primary' }}\">Mentions légales</a>
<a href=\"{{ path('legal.cgu') }}\" class=\"btn btn-sm {{ page.type == 'cgu' ? 'btn-primary' : 'btn-outline-primary' }}\">CGU</a>
<a href=\"{{ path('legal.privacy') }}\" class=\"btn btn-sm {{ page.type == 'politique-de-confidentialite' ? 'btn-primary' : 'btn-outline-primary' }}\">Politique de confidentialité</a>
</div>
<div class=\"legal-content\">
{{ page.content|raw }}
</div>
<p class=\"text-muted small mt-5\">Dernière mise à jour : {{ page.updatedAt|date('d/m/Y') }}</p>
</div>
</div>
</section>
{% endblock %}
", "default/legal.html.twig", "/home/ladomitiyc/otropik/templates/default/legal.html.twig");
}
}