var/cache/dev/twig/25/25adf793f3f49e6c96c36ccecf8b819c.php line 79

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. /* home.html.twig */
  14. class __TwigTemplate_05272afa71382bc2d6572bffd0a35951 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""home.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""home.html.twig"));
  40.         $this->parent $this->loadTemplate("base.html.twig""home.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 "- Le guide des festivals de bridge";
  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 text-md-center\">
  83.                 <!-- Heading -->
  84.                 <h1 class=\"display-1\">
  85.                     <span class=\"font-weight-bolder\">B</span>ridge <span class=\"font-weight-bolder\">F</span>estival
  86.                 </h1>
  87.                 <!-- Text -->
  88.                 <p class=\"lead text-muted mt-4\">
  89.                     Le guide des <span class=\"font-weight-bold\">tournois et festivals</span> de bridge.
  90.                 </p>
  91.             </div>
  92.         </div>
  93.         ";
  94.         // line 23
  95.         echo $this->env->getRuntime('Symfony\Bridge\Twig\Extension\HttpKernelRuntime')->renderFragment(Symfony\Bridge\Twig\Extension\HttpKernelExtension::controller("App\\Controller\\SearchController::homesearch"));
  96.         echo "
  97.     </div>
  98. </section>
  99. ";
  100.         
  101.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  102.         
  103.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  104.     }
  105.     // line 28
  106.     public function block_body($context, array $blocks = [])
  107.     {
  108.         $macros $this->macros;
  109.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  110.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""body"));
  111.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  112.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""body"));
  113.         // line 29
  114.         echo "<main>
  115.    ";
  116.         // line 30
  117.         if ((twig_length_filter($this->env, (isset($context["bfeditions"]) || array_key_exists("bfeditions"$context) ? $context["bfeditions"] : (function () { throw new RuntimeError('Variable "bfeditions" does not exist.'30$this->source); })())) > 0)) {
  118.             // line 31
  119.             echo "    <div class=\"section section-lg\">
  120.         <div class=\"container\">
  121.             ";
  122.             // line 33
  123.             echo $this->env->getRuntime('Symfony\Bridge\Twig\Extension\HttpKernelRuntime')->renderFragment(Symfony\Bridge\Twig\Extension\HttpKernelExtension::controller("App\\Controller\\BFFestivalController::ShowHomeSubscriptions"));
  124.             echo "
  125.             <div class=\"row mb-4\">
  126.                 <div class=\"col-12\">
  127.                     <h4 class=\"mb-5\">Prochains tournois et festivals</h4>
  128.                 </div>
  129.                 <div class=\"col-12\">
  130.                 </div>
  131.                 ";
  132.             // line 40
  133.             $context['_parent'] = $context;
  134.             $context['_seq'] = twig_ensure_traversable((isset($context["bfeditions"]) || array_key_exists("bfeditions"$context) ? $context["bfeditions"] : (function () { throw new RuntimeError('Variable "bfeditions" does not exist.'40$this->source); })()));
  135.             foreach ($context['_seq'] as $context["_key"] => $context["bfedition"]) {
  136.                 // line 41
  137.                 echo "                ";
  138.                 echo $this->env->getRuntime('Symfony\Bridge\Twig\Extension\HttpKernelRuntime')->renderFragment(Symfony\Bridge\Twig\Extension\HttpKernelExtension::controller("App\\Controller\\BFEditionController::ShowSmallView", ["id" => twig_get_attribute($this->env$this->source$context["bfedition"], "id", [], "any"falsefalsefalse41)]));
  139.                 echo "
  140.                 ";
  141.             }
  142.             $_parent $context['_parent'];
  143.             unset($context['_seq'], $context['_iterated'], $context['_key'], $context['bfedition'], $context['_parent'], $context['loop']);
  144.             $context array_intersect_key($context$_parent) + $_parent;
  145.             // line 43
  146.             echo "            </div>
  147.             ";
  148.             // line 44
  149.             echo $this->env->getRuntime('Symfony\Bridge\Twig\Extension\HttpKernelRuntime')->renderFragment(Symfony\Bridge\Twig\Extension\HttpKernelExtension::controller("App\\Controller\\BFChallengeEditionController::ShowBFChallengeEditionsHome"));
  150.             echo "
  151.         </div>
  152.     </div>
  153.     ";
  154.         }
  155.         // line 48
  156.         echo "    ";
  157.         echo twig_include($this->env$context"about/howitworks.html.twig");
  158.         echo "
  159. </main>
  160. ";
  161.         
  162.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  163.         
  164.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  165.     }
  166.     public function getTemplateName()
  167.     {
  168.         return "home.html.twig";
  169.     }
  170.     public function isTraitable()
  171.     {
  172.         return false;
  173.     }
  174.     public function getDebugInfo()
  175.     {
  176.         return array (  180 => 48,  173 => 44,  170 => 43,  161 => 41,  157 => 40,  147 => 33,  143 => 31,  141 => 30,  138 => 29,  128 => 28,  114 => 23,  97 => 9,  92 => 7,  89 => 6,  79 => 5,  60 => 3,  37 => 1,);
  177.     }
  178.     public function getSourceContext()
  179.     {
  180.         return new Source("{% extends 'base.html.twig' %}
  181. {% block title %}- Le guide des festivals de bridge{% endblock %}
  182. {% block headersection %}
  183. <div class=\"fixed-top\">
  184.     {{ include('flashmessages/flashmessages.html.twig') }}
  185. </div>
  186. <section class=\"section section-xl bg-primary overlay-dark text-white rounded covernorepeat\" data-background=\"{{ asset('assets/img/cards-3662554_1920.jpg') }}\">
  187.     <div class=\"container\">
  188.         <div class=\"row justify-content-center\">
  189.             <div class=\"col-12 text-md-center\">
  190.                 <!-- Heading -->
  191.                 <h1 class=\"display-1\">
  192.                     <span class=\"font-weight-bolder\">B</span>ridge <span class=\"font-weight-bolder\">F</span>estival
  193.                 </h1>
  194.                 <!-- Text -->
  195.                 <p class=\"lead text-muted mt-4\">
  196.                     Le guide des <span class=\"font-weight-bold\">tournois et festivals</span> de bridge.
  197.                 </p>
  198.             </div>
  199.         </div>
  200.         {{ render(controller('App\\\\Controller\\\\SearchController::homesearch')) }}
  201.     </div>
  202. </section>
  203. {%endblock%}
  204. {%block body%}
  205. <main>
  206.    {%if bfeditions|length > 0%}
  207.     <div class=\"section section-lg\">
  208.         <div class=\"container\">
  209.             {{ render(controller('App\\\\Controller\\\\BFFestivalController::ShowHomeSubscriptions')) }}
  210.             <div class=\"row mb-4\">
  211.                 <div class=\"col-12\">
  212.                     <h4 class=\"mb-5\">Prochains tournois et festivals</h4>
  213.                 </div>
  214.                 <div class=\"col-12\">
  215.                 </div>
  216.                 {% for bfedition in bfeditions %}
  217.                 {{ render(controller('App\\\\Controller\\\\BFEditionController::ShowSmallView', {id:bfedition.id})) }}
  218.                 {%endfor%}
  219.             </div>
  220.             {{ render(controller('App\\\\Controller\\\\BFChallengeEditionController::ShowBFChallengeEditionsHome')) }}
  221.         </div>
  222.     </div>
  223.     {%endif%}
  224.     {{ include('about/howitworks.html.twig') }}
  225. </main>
  226. {%endblock%}
  227. ""home.html.twig""/home/maixmebouz/www/dev/bridgefestival/templates/home.html.twig");
  228.     }
  229. }