<?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;
/* homeallchallenges.html.twig */
class __TwigTemplate_8e33ef5f0bbd9eaad163bbde9bc6ff2d 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", "homeallchallenges.html.twig"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "homeallchallenges.html.twig"));
$this->parent = $this->loadTemplate("base.html.twig", "homeallchallenges.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 challenges";
$__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 challenges
</h1>
<!-- Text -->
<p class=\"lead text-muted mt-4\">
Liste de tous les challenges 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["pagination"]) || array_key_exists("pagination", $context) ? $context["pagination"] : (function () { throw new RuntimeError('Variable "pagination" does not exist.', 38, $this->source); })()));
foreach ($context['_seq'] as $context["_key"] => $context["bfchallenge"]) {
// line 39
echo " <div class=\"col-12 mb-1\">
<div class=\"h4\">
";
// line 41
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["bfchallenge"], "name", [], "any", false, false, false, 41), "html", null, true);
echo "
</div>
<div class=\"row mt-1\">
";
// line 44
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env, $this->source, $context["bfchallenge"], "editions", [], "any", false, false, false, 44));
foreach ($context['_seq'] as $context["_key"] => $context["bfchallengeedition"]) {
// line 45
echo " ";
if ((twig_get_attribute($this->env, $this->source, $context["bfchallengeedition"], "isactive", [], "any", false, false, false, 45) == true)) {
// line 46
echo " ";
echo $this->env->getRuntime('Symfony\Bridge\Twig\Extension\HttpKernelRuntime')->renderFragment(Symfony\Bridge\Twig\Extension\HttpKernelExtension::controller("App\\Controller\\BFChallengeEditionController::ShowSmallView", ["id" => twig_get_attribute($this->env, $this->source, $context["bfchallengeedition"], "id", [], "any", false, false, false, 46)]));
echo "
";
}
// line 48
echo " ";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['bfchallengeedition'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 49
echo " </div>
</div>
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['bfchallenge'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 52
echo " </div>
";
// line 53
echo $this->extensions['Knp\Bundle\PaginatorBundle\Twig\Extension\PaginationExtension']->render($this->env, (isset($context["pagination"]) || array_key_exists("pagination", $context) ? $context["pagination"] : (function () { throw new RuntimeError('Variable "pagination" does not exist.', 53, $this->source); })()));
echo "
</div>
</div>
</main>
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
public function getTemplateName()
{
return "homeallchallenges.html.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
return array ( 190 => 53, 187 => 52, 179 => 49, 173 => 48, 167 => 46, 164 => 45, 160 => 44, 154 => 41, 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 challenges{% 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 challenges
</h1>
<!-- Text -->
<p class=\"lead text-muted mt-4\">
Liste de tous les challenges 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 bfchallenge in pagination %}
<div class=\"col-12 mb-1\">
<div class=\"h4\">
{{bfchallenge.name}}
</div>
<div class=\"row mt-1\">
{%for bfchallengeedition in bfchallenge.editions%}
{%if bfchallengeedition.isactive==true%}
{{ render(controller('App\\\\Controller\\\\BFChallengeEditionController::ShowSmallView', {id:bfchallengeedition.id})) }}
{%endif%}
{%endfor%}
</div>
</div>
{%endfor%}
</div>
{{ knp_pagination_render(pagination) }}
</div>
</div>
</main>
{%endblock%}
", "homeallchallenges.html.twig", "/home/maixmebouz/www/dev/bridgefestival/templates/homeallchallenges.html.twig");
}
}