var/cache/dev/twig/5d/5d005edd43ecc32389eb16bf47c6e1f1.php line 40

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. /* homeall.html.twig */
  14. class __TwigTemplate_2c2462d46be73e4cd77b8b9d6d8ea2d8 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""homeall.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""homeall.html.twig"));
  40.         $this->parent $this->loadTemplate("base.html.twig""homeall.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 festivals et tournois";
  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 tournois et festivals
  92.                 </h1>
  93.                 <!-- Text -->
  94.                 <p class=\"lead text-muted mt-4\">
  95.                     Liste de tous les tournois et festivals 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["bffestivals"]) || array_key_exists("bffestivals"$context) ? $context["bffestivals"] : (function () { throw new RuntimeError('Variable "bffestivals" does not exist.'38$this->source); })()));
  124.         foreach ($context['_seq'] as $context["_key"] => $context["bffestival"]) {
  125.             // line 39
  126.             echo "                <div class=\"col-4 border\">
  127.                     ";
  128.             // line 40
  129.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["bffestival"], "name", [], "any"falsefalsefalse40), "html"nulltrue);
  130.             echo " :
  131.                     ";
  132.             // line 41
  133.             $context['_parent'] = $context;
  134.             $context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env$this->source$context["bffestival"], "editions", [], "any"falsefalsefalse41));
  135.             foreach ($context['_seq'] as $context["_key"] => $context["bfedition"]) {
  136.                 // line 42
  137.                 echo "                    ";
  138.                 if ((twig_get_attribute($this->env$this->source$context["bfedition"], "isactive", [], "any"falsefalsefalse42) == true)) {
  139.                     // line 43
  140.                     echo "                    ";
  141.                     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"falsefalsefalse43) != null))) {
  142.                         // line 44
  143.                         echo "                    <a href=\"";
  144.                         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("home_route", ["routename" => twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["bffestival"], "route", [], "any"falsefalsefalse44), "route", [], "any"falsefalsefalse44)], false), "html"nulltrue);
  145.                         echo "\">";
  146.                         echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["bfedition"], "name", [], "any"falsefalsefalse44), "html"nulltrue);
  147.                         echo "</a> ;
  148.                     ";
  149.                     } elseif (($this->extensions['Symfony\Bridge\Twig\Extension\SecurityExtension']->isGranted("option_uniqueurl_edition",                     // line 45
  150. $context["bfedition"]) && (twig_get_attribute($this->env$this->source$context["bfedition"], "route", [], "any"falsefalsefalse45) != null))) {
  151.                         // line 46
  152.                         echo "                    <a href=\"";
  153.                         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("home_route", ["routename" => twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["bfedition"], "route", [], "any"falsefalsefalse46), "route", [], "any"falsefalsefalse46)], false), "html"nulltrue);
  154.                         echo "\">";
  155.                         echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["bfedition"], "name", [], "any"falsefalsefalse46), "html"nulltrue);
  156.                         echo "</a> ;
  157.                     ";
  158.                     } else {
  159.                         // line 48
  160.                         echo "                    <a href=\"";
  161.                         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"falsefalsefalse48)], false), "html"nulltrue);
  162.                         echo "\">";
  163.                         echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["bfedition"], "name", [], "any"falsefalsefalse48), "html"nulltrue);
  164.                         echo "</a> ;
  165.                     ";
  166.                     }
  167.                     // line 50
  168.                     echo "                    ";
  169.                 }
  170.                 // line 51
  171.                 echo "                    ";
  172.             }
  173.             $_parent $context['_parent'];
  174.             unset($context['_seq'], $context['_iterated'], $context['_key'], $context['bfedition'], $context['_parent'], $context['loop']);
  175.             $context array_intersect_key($context$_parent) + $_parent;
  176.             // line 52
  177.             echo "                </div>
  178.                 ";
  179.         }
  180.         $_parent $context['_parent'];
  181.         unset($context['_seq'], $context['_iterated'], $context['_key'], $context['bffestival'], $context['_parent'], $context['loop']);
  182.         $context array_intersect_key($context$_parent) + $_parent;
  183.         // line 54
  184.         echo "            </div>
  185.         </div>
  186.     </div>
  187. </main>
  188. ";
  189.         
  190.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  191.         
  192.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  193.     }
  194.     public function getTemplateName()
  195.     {
  196.         return "homeall.html.twig";
  197.     }
  198.     public function isTraitable()
  199.     {
  200.         return false;
  201.     }
  202.     public function getDebugInfo()
  203.     {
  204.         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,);
  205.     }
  206.     public function getSourceContext()
  207.     {
  208.         return new Source("{% extends 'base.html.twig' %}
  209. {% block title %}- Tous les festivals et tournois{% endblock %}
  210. {% block headersection %}
  211. <div class=\"fixed-top\">
  212.     {{ include('flashmessages/flashmessages.html.twig') }}
  213. </div>
  214. <section class=\"section section-xl bg-primary overlay-dark text-white rounded covernorepeat\" data-background=\"{{ asset('assets/img/cards-3662554_1920.jpg') }}\">
  215.     <div class=\"container\">
  216.         <div class=\"row justify-content-center\">
  217.             <div class=\"col-12\">
  218.                 <nav aria-label=\"breadcrumb\">
  219.                     <ol class=\"breadcrumb breadcrumb-transparent\">
  220.                         <li class=\"breadcrumb-item\"><a href=\"/\">Accueil</a></li>
  221.                         <li class=\"breadcrumb-item active\">Tout</li>
  222.                     </ol>
  223.                 </nav>
  224.                 <!-- Heading -->
  225.                 <h1 class=\"display-2\">
  226.                     <i class=\"far fa-list-alt mr-2\"></i>Tous les tournois et festivals
  227.                 </h1>
  228.                 <!-- Text -->
  229.                 <p class=\"lead text-muted mt-4\">
  230.                     Liste de tous les tournois et festivals inscrits sur le site.
  231.                 </p>
  232.             </div>
  233.         </div>
  234.     </div>
  235. </section>
  236. {%endblock%}
  237. {%block body%}
  238. <main>
  239.     <div class=\"section pt-5 pt-lg-6\" style=\"min-height: 50vh;\">
  240.         <div id=\"spaces-container\" class=\"container\">
  241.             <div class=\"row justify-content-around\">
  242.                 {% for bffestival in bffestivals %}
  243.                 <div class=\"col-4 border\">
  244.                     {{bffestival.name}} :
  245.                     {%for bfedition in bffestival.editions%}
  246.                     {%if bfedition.isactive==true%}
  247.                     {%if is_granted('option_uniqueurl_festival', bffestival) and bffestival.route!=null%}
  248.                     <a href=\"{{ path('home_route', {'routename':bffestival.route.route}, relative = false) }}\">{{bfedition.name}}</a> ;
  249.                     {%elseif is_granted('option_uniqueurl_edition', bfedition) and bfedition.route!=null%}
  250.                     <a href=\"{{ path('home_route', {'routename':bfedition.route.route}, relative = false) }}\">{{bfedition.name}}</a> ;
  251.                     {%else%}
  252.                     <a href=\"{{ path('edition_view', {'id':bfedition.id}, relative = false) }}\">{{bfedition.name}}</a> ;
  253.                     {%endif%}
  254.                     {%endif%}
  255.                     {%endfor%}
  256.                 </div>
  257.                 {%endfor%}
  258.             </div>
  259.         </div>
  260.     </div>
  261. </main>
  262. {%endblock%}
  263. ""homeall.html.twig""/home/maixmebouz/www/dev/bridgefestival/templates/homeall.html.twig");
  264.     }
  265. }