<?php
use Twig\Environment;
use Twig\Error\LoaderError;
use Twig\Error\RuntimeError;
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;
/* homeall.html.twig */
class __TwigTemplate_2c2462d46be73e4cd77b8b9d6d8ea2d8 extends Template
{
private $source;
private $macros = [];
public function __construct(Environment $env)
{
parent::__construct($env);
$this->source = $this->getSourceContext();
$this->blocks = [
'title' => [$this, 'block_title'],
'headersection' => [$this, 'block_headersection'],
'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", "homeall.html.twig"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "homeall.html.twig"));
$this->parent = $this->loadTemplate("base.html.twig", "homeall.html.twig", 1);
$this->parent->display($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"));
echo "- Tous les festivals et tournois";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
// line 5
public function block_headersection($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", "headersection"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "headersection"));
// line 6
echo "<div class=\"fixed-top\">
";
// line 7
echo twig_include($this->env, $context, "flashmessages/flashmessages.html.twig");
echo "
</div>
<section class=\"section section-xl bg-primary overlay-dark text-white rounded covernorepeat\" data-background=\"";
// line 9
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/img/cards-3662554_1920.jpg"), "html", null, true);
echo "\">
<div class=\"container\">
<div class=\"row justify-content-center\">
<div class=\"col-12\">
<nav aria-label=\"breadcrumb\">
<ol class=\"breadcrumb breadcrumb-transparent\">
<li class=\"breadcrumb-item\"><a href=\"/\">Accueil</a></li>
<li class=\"breadcrumb-item active\">Tout</li>
</ol>
</nav>
<!-- Heading -->
<h1 class=\"display-2\">
<i class=\"far fa-list-alt mr-2\"></i>Tous les tournois et festivals
</h1>
<!-- Text -->
<p class=\"lead text-muted mt-4\">
Liste de tous les tournois et festivals inscrits sur le site.
</p>
</div>
</div>
</div>
</section>
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
// line 33
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 34
echo "<main>
<div class=\"section pt-5 pt-lg-6\" style=\"min-height: 50vh;\">
<div id=\"spaces-container\" class=\"container\">
<div class=\"row justify-content-around\">
";
// line 38
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable((isset($context["bffestivals"]) || array_key_exists("bffestivals", $context) ? $context["bffestivals"] : (function () { throw new RuntimeError('Variable "bffestivals" does not exist.', 38, $this->source); })()));
foreach ($context['_seq'] as $context["_key"] => $context["bffestival"]) {
// line 39
echo " <div class=\"col-4 border\">
";
// line 40
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["bffestival"], "name", [], "any", false, false, false, 40), "html", null, true);
echo " :
";
// line 41
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env, $this->source, $context["bffestival"], "editions", [], "any", false, false, false, 41));
foreach ($context['_seq'] as $context["_key"] => $context["bfedition"]) {
// line 42
echo " ";
if ((twig_get_attribute($this->env, $this->source, $context["bfedition"], "isactive", [], "any", false, false, false, 42) == true)) {
// line 43
echo " ";
if (($this->extensions['Symfony\Bridge\Twig\Extension\SecurityExtension']->isGranted("option_uniqueurl_festival", $context["bffestival"]) && (twig_get_attribute($this->env, $this->source, $context["bffestival"], "route", [], "any", false, false, false, 43) != null))) {
// line 44
echo " <a href=\"";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("home_route", ["routename" => twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["bffestival"], "route", [], "any", false, false, false, 44), "route", [], "any", false, false, false, 44)], false), "html", null, true);
echo "\">";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["bfedition"], "name", [], "any", false, false, false, 44), "html", null, true);
echo "</a> ;
";
} elseif (($this->extensions['Symfony\Bridge\Twig\Extension\SecurityExtension']->isGranted("option_uniqueurl_edition", // line 45
$context["bfedition"]) && (twig_get_attribute($this->env, $this->source, $context["bfedition"], "route", [], "any", false, false, false, 45) != null))) {
// line 46
echo " <a href=\"";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("home_route", ["routename" => twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["bfedition"], "route", [], "any", false, false, false, 46), "route", [], "any", false, false, false, 46)], false), "html", null, true);
echo "\">";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["bfedition"], "name", [], "any", false, false, false, 46), "html", null, true);
echo "</a> ;
";
} else {
// line 48
echo " <a href=\"";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("edition_view", ["id" => twig_get_attribute($this->env, $this->source, $context["bfedition"], "id", [], "any", false, false, false, 48)], false), "html", null, true);
echo "\">";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["bfedition"], "name", [], "any", false, false, false, 48), "html", null, true);
echo "</a> ;
";
}
// line 50
echo " ";
}
// line 51
echo " ";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['bfedition'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 52
echo " </div>
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['bffestival'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 54
echo " </div>
</div>
</div>
</main>
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
public function getTemplateName()
{
return "homeall.html.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
return array ( 208 => 54, 201 => 52, 195 => 51, 192 => 50, 184 => 48, 176 => 46, 174 => 45, 167 => 44, 164 => 43, 161 => 42, 157 => 41, 153 => 40, 150 => 39, 146 => 38, 140 => 34, 130 => 33, 97 => 9, 92 => 7, 89 => 6, 79 => 5, 60 => 3, 37 => 1,);
}
public function getSourceContext()
{
return new Source("{% extends 'base.html.twig' %}
{% block title %}- Tous les festivals et tournois{% endblock %}
{% block headersection %}
<div class=\"fixed-top\">
{{ include('flashmessages/flashmessages.html.twig') }}
</div>
<section class=\"section section-xl bg-primary overlay-dark text-white rounded covernorepeat\" data-background=\"{{ asset('assets/img/cards-3662554_1920.jpg') }}\">
<div class=\"container\">
<div class=\"row justify-content-center\">
<div class=\"col-12\">
<nav aria-label=\"breadcrumb\">
<ol class=\"breadcrumb breadcrumb-transparent\">
<li class=\"breadcrumb-item\"><a href=\"/\">Accueil</a></li>
<li class=\"breadcrumb-item active\">Tout</li>
</ol>
</nav>
<!-- Heading -->
<h1 class=\"display-2\">
<i class=\"far fa-list-alt mr-2\"></i>Tous les tournois et festivals
</h1>
<!-- Text -->
<p class=\"lead text-muted mt-4\">
Liste de tous les tournois et festivals inscrits sur le site.
</p>
</div>
</div>
</div>
</section>
{%endblock%}
{%block body%}
<main>
<div class=\"section pt-5 pt-lg-6\" style=\"min-height: 50vh;\">
<div id=\"spaces-container\" class=\"container\">
<div class=\"row justify-content-around\">
{% for bffestival in bffestivals %}
<div class=\"col-4 border\">
{{bffestival.name}} :
{%for bfedition in bffestival.editions%}
{%if bfedition.isactive==true%}
{%if is_granted('option_uniqueurl_festival', bffestival) and bffestival.route!=null%}
<a href=\"{{ path('home_route', {'routename':bffestival.route.route}, relative = false) }}\">{{bfedition.name}}</a> ;
{%elseif is_granted('option_uniqueurl_edition', bfedition) and bfedition.route!=null%}
<a href=\"{{ path('home_route', {'routename':bfedition.route.route}, relative = false) }}\">{{bfedition.name}}</a> ;
{%else%}
<a href=\"{{ path('edition_view', {'id':bfedition.id}, relative = false) }}\">{{bfedition.name}}</a> ;
{%endif%}
{%endif%}
{%endfor%}
</div>
{%endfor%}
</div>
</div>
</div>
</main>
{%endblock%}
", "homeall.html.twig", "/home/maixmebouz/www/dev/bridgefestival/templates/homeall.html.twig");
}
}