<?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;
use Twig\TemplateWrapper;
/* base.html.twig */
class __TwigTemplate_6ab75492f851760584880149ff37fb50 extends Template
{
private Source $source;
/**
* @var array<string, Template>
*/
private array $macros = [];
public function __construct(Environment $env)
{
parent::__construct($env);
$this->source = $this->getSourceContext();
$this->parent = false;
$this->blocks = [
'title' => [$this, 'block_title'],
'stylesheets' => [$this, 'block_stylesheets'],
'javascripts' => [$this, 'block_javascripts'],
'menu' => [$this, 'block_menu'],
'body' => [$this, 'block_body'],
];
}
protected function doDisplay(array $context, array $blocks = []): iterable
{
$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", "base.html.twig"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "base.html.twig"));
// line 1
yield "<!DOCTYPE html>
<html>
<head>
<meta charset=\"UTF-8\">
";
// line 5
if ((CoreExtension::getAttribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 5, $this->source); })()), "environment", [], "any", false, false, false, 5) != "prod")) {
// line 6
yield " <meta name=\"robots\" content=\"noindex, nofollow\">
";
}
// line 8
yield " <title>";
yield from $this->unwrap()->yieldBlock('title', $context, $blocks);
yield "</title>
";
// line 10
yield from $this->unwrap()->yieldBlock('stylesheets', $context, $blocks);
// line 14
yield "
";
// line 15
yield from $this->unwrap()->yieldBlock('javascripts', $context, $blocks);
// line 18
yield " </head>
<body class=\"";
// line 19
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['App\Twig\AppExtension']->getBodyCLasses(), "html", null, true);
yield "\">
<div id=\"entete\">
<div id=\"logos\">
<div id=\"logos-left\">
<a id=\"home\" href=\"";
// line 24
yield $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("home");
yield "\"></a>
</div>
<div id=\"logos-right\">
<a id=\"girci-go\" target=\"_blank\" href=\"https://www.girci-go.org/\">Accéder au Girci GO</a>
<a id=\"extranet\" target=\"_blank\" href=\"https://extranet.chu-hugo.fr/index.php/login\">Extranet</a>
</div>
</div>
";
// line 31
if ((($tmp = $this->extensions['Symfony\Bridge\Twig\Extension\SecurityExtension']->isGranted("IS_AUTHENTICATED_FULLY")) && $tmp instanceof Markup ? (string) $tmp : $tmp)) {
// line 32
yield " <div id=\"menus\">
";
// line 33
yield Twig\Extension\CoreExtension::include($this->env, $context, "_menu.html.twig");
yield "
";
// line 34
yield from $this->unwrap()->yieldBlock('menu', $context, $blocks);
// line 36
yield " </div>
";
}
// line 38
yield " <div id=\"profil\">
";
// line 39
if ((($tmp = $this->extensions['Symfony\Bridge\Twig\Extension\SecurityExtension']->isGranted("IS_AUTHENTICATED_FULLY")) && $tmp instanceof Markup ? (string) $tmp : $tmp)) {
// line 40
yield " <div id=\"profil-left\">
Bonjour ";
// line 41
if ((($tmp = CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 41, $this->source); })()), "user", [], "any", false, false, false, 41), "name", [], "any", false, false, false, 41)) && $tmp instanceof Markup ? (string) $tmp : $tmp)) {
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 41, $this->source); })()), "user", [], "any", false, false, false, 41), "firstname", [], "any", false, false, false, 41), "html", null, true);
yield " ";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 41, $this->source); })()), "user", [], "any", false, false, false, 41), "name", [], "any", false, false, false, 41), "html", null, true);
} else {
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 41, $this->source); })()), "user", [], "any", false, false, false, 41), "userIdentifier", [], "any", false, false, false, 41), "html", null, true);
}
// line 42
yield " </div>
<div id=\"profil-right\">
<a href=\"";
// line 44
yield $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("profil");
yield "\">Mon compte</a>
<a href=\"";
// line 45
yield $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("app_logout");
yield "\">Se déconnecter</a>
</div>
";
} else {
// line 48
yield " <div id=\"profil-right\">
<a href=\"";
// line 49
yield $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("app_register");
yield "\">Créer un compte</a>
<a href=\"";
// line 50
yield $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("app_login");
yield "\">Se connecter</a>
</div>
";
}
// line 53
yield " </div>
</div>
<div id=\"container\">
";
// line 56
$context['_parent'] = $context;
$context['_seq'] = CoreExtension::ensureTraversable(CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 56, $this->source); })()), "session", [], "any", false, false, false, 56), "flashBag", [], "any", false, false, false, 56), "all", [], "any", false, false, false, 56));
foreach ($context['_seq'] as $context["type"] => $context["messages"]) {
// line 57
yield " <div class=\"message ";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($context["type"], "html", null, true);
yield "\">
<ul>
";
// line 59
$context['_parent'] = $context;
$context['_seq'] = CoreExtension::ensureTraversable($context["messages"]);
foreach ($context['_seq'] as $context["_key"] => $context["message"]) {
// line 60
yield " <li>";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($context["message"], "html", null, true);
yield "</li>
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_key'], $context['message'], $context['_parent']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 62
yield " </ul>
</div>
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['type'], $context['messages'], $context['_parent']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 65
yield " ";
yield from $this->unwrap()->yieldBlock('body', $context, $blocks);
// line 66
yield " </div>
<div id=\"footer\">
<div id=\"footer-left\">
<strong>Girci Grand-Ouest</strong> | 4, rue Larrey 49933 Angers<br/>
02 41 35 63 43 - contact@girci-go.org
</div>
<div id=\"footer-right\">
Réalisation : <a target=\"_blank\" href=\"https://www.ascomedia.com\">Ascomedia</a>
</div>
</div>
</body>
</html>
";
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
yield from [];
}
// line 8
/**
* @return iterable<null|scalar|\Stringable>
*/
public function block_title(array $context, array $blocks = []): iterable
{
$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 "Girci GO - Plateforme d'appels à projets";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
yield from [];
}
// line 10
/**
* @return iterable<null|scalar|\Stringable>
*/
public function block_stylesheets(array $context, array $blocks = []): iterable
{
$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", "stylesheets"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "stylesheets"));
// line 11
yield " ";
yield $this->extensions['Symfony\WebpackEncoreBundle\Twig\EntryFilesTwigExtension']->renderWebpackLinkTags("app");
yield "
";
// line 12
yield $this->extensions['Symfony\WebpackEncoreBundle\Twig\EntryFilesTwigExtension']->renderWebpackLinkTags("headerFooter");
yield "
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
yield from [];
}
// line 15
/**
* @return iterable<null|scalar|\Stringable>
*/
public function block_javascripts(array $context, array $blocks = []): iterable
{
$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", "javascripts"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "javascripts"));
// line 16
yield " <script type=\"text/javascript\" src=\"";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("js/vendor/jquery.js"), "html", null, true);
yield "\"></script>
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
yield from [];
}
// line 34
/**
* @return iterable<null|scalar|\Stringable>
*/
public function block_menu(array $context, array $blocks = []): iterable
{
$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", "menu"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "menu"));
// line 35
yield " ";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
yield from [];
}
// line 65
/**
* @return iterable<null|scalar|\Stringable>
*/
public function block_body(array $context, array $blocks = []): iterable
{
$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"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
yield from [];
}
/**
* @codeCoverageIgnore
*/
public function getTemplateName(): string
{
return "base.html.twig";
}
/**
* @codeCoverageIgnore
*/
public function isTraitable(): bool
{
return false;
}
/**
* @codeCoverageIgnore
*/
public function getDebugInfo(): array
{
return array ( 325 => 65, 314 => 35, 301 => 34, 287 => 16, 274 => 15, 261 => 12, 256 => 11, 243 => 10, 220 => 8, 196 => 66, 193 => 65, 185 => 62, 176 => 60, 172 => 59, 166 => 57, 162 => 56, 157 => 53, 151 => 50, 147 => 49, 144 => 48, 138 => 45, 134 => 44, 130 => 42, 122 => 41, 119 => 40, 117 => 39, 114 => 38, 110 => 36, 108 => 34, 104 => 33, 101 => 32, 99 => 31, 89 => 24, 81 => 19, 78 => 18, 76 => 15, 73 => 14, 71 => 10, 65 => 8, 61 => 6, 59 => 5, 53 => 1,);
}
public function getSourceContext(): Source
{
return new Source("<!DOCTYPE html>
<html>
<head>
<meta charset=\"UTF-8\">
{% if app.environment != 'prod' %}
<meta name=\"robots\" content=\"noindex, nofollow\">
{% endif %}
<title>{% block title %}Girci GO - Plateforme d'appels à projets{% endblock %}</title>
{% block stylesheets %}
{{ encore_entry_link_tags('app') }}
{{ encore_entry_link_tags('headerFooter') }}
{% endblock %}
{% block javascripts %}
<script type=\"text/javascript\" src=\"{{ asset('js/vendor/jquery.js') }}\"></script>
{% endblock %}
</head>
<body class=\"{{ getBodyCLasses() }}\">
<div id=\"entete\">
<div id=\"logos\">
<div id=\"logos-left\">
<a id=\"home\" href=\"{{ path('home') }}\"></a>
</div>
<div id=\"logos-right\">
<a id=\"girci-go\" target=\"_blank\" href=\"https://www.girci-go.org/\">Accéder au Girci GO</a>
<a id=\"extranet\" target=\"_blank\" href=\"https://extranet.chu-hugo.fr/index.php/login\">Extranet</a>
</div>
</div>
{% if is_granted('IS_AUTHENTICATED_FULLY') %}
<div id=\"menus\">
{{ include('_menu.html.twig') }}
{% block menu %}
{% endblock %}
</div>
{% endif %}
<div id=\"profil\">
{% if is_granted('IS_AUTHENTICATED_FULLY') %}
<div id=\"profil-left\">
Bonjour {% if app.user.name %}{{ app.user.firstname }} {{ app.user.name }}{% else %}{{ app.user.userIdentifier }}{% endif %}
</div>
<div id=\"profil-right\">
<a href=\"{{ path('profil') }}\">Mon compte</a>
<a href=\"{{ path('app_logout') }}\">Se déconnecter</a>
</div>
{% else %}
<div id=\"profil-right\">
<a href=\"{{ path('app_register') }}\">Créer un compte</a>
<a href=\"{{ path('app_login') }}\">Se connecter</a>
</div>
{% endif %}
</div>
</div>
<div id=\"container\">
{% for type, messages in app.session.flashBag.all %}
<div class=\"message {{ type }}\">
<ul>
{% for message in messages %}
<li>{{ message }}</li>
{% endfor %}
</ul>
</div>
{% endfor %}
{% block body %}{% endblock %}
</div>
<div id=\"footer\">
<div id=\"footer-left\">
<strong>Girci Grand-Ouest</strong> | 4, rue Larrey 49933 Angers<br/>
02 41 35 63 43 - contact@girci-go.org
</div>
<div id=\"footer-right\">
Réalisation : <a target=\"_blank\" href=\"https://www.ascomedia.com\">Ascomedia</a>
</div>
</div>
</body>
</html>
", "base.html.twig", "/home/clients/acb4fc297720bccaee1604666d4dcedb/girci_go_demo/templates/base.html.twig");
}
}