var/cache/dev/twig/51/5147bf03a295577119341ee55969e138.php line 130

Open in your IDE?
  1. <?php
  2. use Twig\Environment;
  3. use Twig\Error\LoaderError;
  4. use Twig\Error\RuntimeError;
  5. use Twig\Extension\SandboxExtension;
  6. use Twig\Markup;
  7. use Twig\Sandbox\SecurityError;
  8. use Twig\Sandbox\SecurityNotAllowedTagError;
  9. use Twig\Sandbox\SecurityNotAllowedFilterError;
  10. use Twig\Sandbox\SecurityNotAllowedFunctionError;
  11. use Twig\Source;
  12. use Twig\Template;
  13. /* homeallchallenges.html.twig */
  14. class __TwigTemplate_8e33ef5f0bbd9eaad163bbde9bc6ff2d extends Template
  15. {
  16.     private $source;
  17.     private $macros = [];
  18.     public function __construct(Environment $env)
  19.     {
  20.         parent::__construct($env);
  21.         $this->source $this->getSourceContext();
  22.         $this->blocks = [
  23.             'title' => [$this'block_title'],
  24.             'headersection' => [$this'block_headersection'],
  25.             'body' => [$this'block_body'],
  26.         ];
  27.     }
  28.     protected function doGetParent(array $context)
  29.     {
  30.         // line 1
  31.         return "base.html.twig";
  32.     }
  33.     protected function doDisplay(array $context, array $blocks = [])
  34.     {
  35.         $macros $this->macros;
  36.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  37.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""homeallchallenges.html.twig"));
  38.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  39.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""homeallchallenges.html.twig"));
  40.         $this->parent $this->loadTemplate("base.html.twig""homeallchallenges.html.twig"1);
  41.         $this->parent->display($contextarray_merge($this->blocks$blocks));
  42.         
  43.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  44.         
  45.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  46.     }
  47.     // line 3
  48.     public function block_title($context, array $blocks = [])
  49.     {
  50.         $macros $this->macros;
  51.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  52.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""title"));
  53.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  54.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""title"));
  55.         echo "- Tous les challenges";
  56.         
  57.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  58.         
  59.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  60.     }
  61.     // line 5
  62.     public function block_headersection($context, array $blocks = [])
  63.     {
  64.         $macros $this->macros;
  65.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  66.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""headersection"));
  67.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  68.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""headersection"));
  69.         // line 6
  70.         echo "<div class=\"fixed-top\">
  71.     ";
  72.         // line 7
  73.         echo twig_include($this->env$context"flashmessages/flashmessages.html.twig");
  74.         echo "
  75. </div>
  76. <section class=\"section section-xl bg-primary overlay-dark text-white rounded covernorepeat\" data-background=\"";
  77.         // line 9
  78.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/img/cards-3662554_1920.jpg"), "html"nulltrue);
  79.         echo "\">
  80.     <div class=\"container\">
  81.         <div class=\"row justify-content-center\">
  82.             <div class=\"col-12\">
  83.                 <nav aria-label=\"breadcrumb\">
  84.                     <ol class=\"breadcrumb breadcrumb-transparent\">
  85.                         <li class=\"breadcrumb-item\"><a href=\"/\">Accueil</a></li>
  86.                         <li class=\"breadcrumb-item active\">Tout</li>
  87.                     </ol>
  88.                 </nav>
  89.                 <!-- Heading -->
  90.                 <h1 class=\"display-2\">
  91.                     <i class=\"far fa-list-alt mr-2\"></i>Tous les challenges
  92.                 </h1>
  93.                 <!-- Text -->
  94.                 <p class=\"lead text-muted mt-4\">
  95.                     Liste de tous les challenges inscrits sur le site
  96.                 </p>
  97.             </div>
  98.         </div>
  99.     </div>
  100. </section>
  101. ";
  102.         
  103.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  104.         
  105.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  106.     }
  107.     // line 33
  108.     public function block_body($context, array $blocks = [])
  109.     {
  110.         $macros $this->macros;
  111.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  112.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""body"));
  113.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  114.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""body"));
  115.         // line 34
  116.         echo "<main>
  117.     <div class=\"section pt-5 pt-lg-6\" style=\"min-height: 50vh;\">
  118.         <div id=\"spaces-container\" class=\"container\">
  119.             <div class=\"row justify-content-around\">
  120.                 ";
  121.         // line 38
  122.         $context['_parent'] = $context;
  123.         $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); })()));
  124.         foreach ($context['_seq'] as $context["_key"] => $context["bfchallenge"]) {
  125.             // line 39
  126.             echo "                <div class=\"col-12 mb-1\">
  127.                     <div class=\"h4\">
  128.                         ";
  129.             // line 41
  130.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["bfchallenge"], "name", [], "any"falsefalsefalse41), "html"nulltrue);
  131.             echo "
  132.                     </div>
  133.                     <div class=\"row mt-1\">
  134.                         ";
  135.             // line 44
  136.             $context['_parent'] = $context;
  137.             $context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env$this->source$context["bfchallenge"], "editions", [], "any"falsefalsefalse44));
  138.             foreach ($context['_seq'] as $context["_key"] => $context["bfchallengeedition"]) {
  139.                 // line 45
  140.                 echo "                        ";
  141.                 if ((twig_get_attribute($this->env$this->source$context["bfchallengeedition"], "isactive", [], "any"falsefalsefalse45) == true)) {
  142.                     // line 46
  143.                     echo "                        ";
  144.                     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"falsefalsefalse46)]));
  145.                     echo "
  146.                         ";
  147.                 }
  148.                 // line 48
  149.                 echo "                        ";
  150.             }
  151.             $_parent $context['_parent'];
  152.             unset($context['_seq'], $context['_iterated'], $context['_key'], $context['bfchallengeedition'], $context['_parent'], $context['loop']);
  153.             $context array_intersect_key($context$_parent) + $_parent;
  154.             // line 49
  155.             echo "                    </div>
  156.                 </div>
  157.                 ";
  158.         }
  159.         $_parent $context['_parent'];
  160.         unset($context['_seq'], $context['_iterated'], $context['_key'], $context['bfchallenge'], $context['_parent'], $context['loop']);
  161.         $context array_intersect_key($context$_parent) + $_parent;
  162.         // line 52
  163.         echo "            </div>
  164.             ";
  165.         // line 53
  166.         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); })()));
  167.         echo "
  168.         </div>
  169.     </div>
  170. </main>
  171. ";
  172.         
  173.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  174.         
  175.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  176.     }
  177.     public function getTemplateName()
  178.     {
  179.         return "homeallchallenges.html.twig";
  180.     }
  181.     public function isTraitable()
  182.     {
  183.         return false;
  184.     }
  185.     public function getDebugInfo()
  186.     {
  187.         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,);
  188.     }
  189.     public function getSourceContext()
  190.     {
  191.         return new Source("{% extends 'base.html.twig' %}
  192. {% block title %}- Tous les challenges{% endblock %}
  193. {% block headersection %}
  194. <div class=\"fixed-top\">
  195.     {{ include('flashmessages/flashmessages.html.twig') }}
  196. </div>
  197. <section class=\"section section-xl bg-primary overlay-dark text-white rounded covernorepeat\" data-background=\"{{ asset('assets/img/cards-3662554_1920.jpg') }}\">
  198.     <div class=\"container\">
  199.         <div class=\"row justify-content-center\">
  200.             <div class=\"col-12\">
  201.                 <nav aria-label=\"breadcrumb\">
  202.                     <ol class=\"breadcrumb breadcrumb-transparent\">
  203.                         <li class=\"breadcrumb-item\"><a href=\"/\">Accueil</a></li>
  204.                         <li class=\"breadcrumb-item active\">Tout</li>
  205.                     </ol>
  206.                 </nav>
  207.                 <!-- Heading -->
  208.                 <h1 class=\"display-2\">
  209.                     <i class=\"far fa-list-alt mr-2\"></i>Tous les challenges
  210.                 </h1>
  211.                 <!-- Text -->
  212.                 <p class=\"lead text-muted mt-4\">
  213.                     Liste de tous les challenges inscrits sur le site
  214.                 </p>
  215.             </div>
  216.         </div>
  217.     </div>
  218. </section>
  219. {%endblock%}
  220. {%block body%}
  221. <main>
  222.     <div class=\"section pt-5 pt-lg-6\" style=\"min-height: 50vh;\">
  223.         <div id=\"spaces-container\" class=\"container\">
  224.             <div class=\"row justify-content-around\">
  225.                 {% for bfchallenge in pagination %}
  226.                 <div class=\"col-12 mb-1\">
  227.                     <div class=\"h4\">
  228.                         {{bfchallenge.name}}
  229.                     </div>
  230.                     <div class=\"row mt-1\">
  231.                         {%for bfchallengeedition in bfchallenge.editions%}
  232.                         {%if bfchallengeedition.isactive==true%}
  233.                         {{ render(controller('App\\\\Controller\\\\BFChallengeEditionController::ShowSmallView', {id:bfchallengeedition.id})) }}
  234.                         {%endif%}
  235.                         {%endfor%}
  236.                     </div>
  237.                 </div>
  238.                 {%endfor%}
  239.             </div>
  240.             {{ knp_pagination_render(pagination) }}
  241.         </div>
  242.     </div>
  243. </main>
  244. {%endblock%}
  245. ""homeallchallenges.html.twig""/home/maixmebouz/www/dev/bridgefestival/templates/homeallchallenges.html.twig");
  246.     }
  247. }