<?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;
/* home.html.twig */
class __TwigTemplate_05272afa71382bc2d6572bffd0a35951 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", "home.html.twig"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "home.html.twig"));
$this->parent = $this->loadTemplate("base.html.twig", "home.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 "- Le guide des festivals de bridge";
$__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 text-md-center\">
<!-- Heading -->
<h1 class=\"display-1\">
<span class=\"font-weight-bolder\">B</span>ridge <span class=\"font-weight-bolder\">F</span>estival
</h1>
<!-- Text -->
<p class=\"lead text-muted mt-4\">
Le guide des <span class=\"font-weight-bold\">tournois et festivals</span> de bridge.
</p>
</div>
</div>
";
// line 23
echo $this->env->getRuntime('Symfony\Bridge\Twig\Extension\HttpKernelRuntime')->renderFragment(Symfony\Bridge\Twig\Extension\HttpKernelExtension::controller("App\\Controller\\SearchController::homesearch"));
echo "
</div>
</section>
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
// line 28
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 29
echo "<main>
";
// line 30
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)) {
// line 31
echo " <div class=\"section section-lg\">
<div class=\"container\">
";
// line 33
echo $this->env->getRuntime('Symfony\Bridge\Twig\Extension\HttpKernelRuntime')->renderFragment(Symfony\Bridge\Twig\Extension\HttpKernelExtension::controller("App\\Controller\\BFFestivalController::ShowHomeSubscriptions"));
echo "
<div class=\"row mb-4\">
<div class=\"col-12\">
<h4 class=\"mb-5\">Prochains tournois et festivals</h4>
</div>
<div class=\"col-12\">
</div>
";
// line 40
$context['_parent'] = $context;
$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); })()));
foreach ($context['_seq'] as $context["_key"] => $context["bfedition"]) {
// line 41
echo " ";
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", false, false, false, 41)]));
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 43
echo " </div>
";
// line 44
echo $this->env->getRuntime('Symfony\Bridge\Twig\Extension\HttpKernelRuntime')->renderFragment(Symfony\Bridge\Twig\Extension\HttpKernelExtension::controller("App\\Controller\\BFChallengeEditionController::ShowBFChallengeEditionsHome"));
echo "
</div>
</div>
";
}
// line 48
echo " ";
echo twig_include($this->env, $context, "about/howitworks.html.twig");
echo "
</main>
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
public function getTemplateName()
{
return "home.html.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
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,);
}
public function getSourceContext()
{
return new Source("{% extends 'base.html.twig' %}
{% block title %}- Le guide des festivals de bridge{% 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 text-md-center\">
<!-- Heading -->
<h1 class=\"display-1\">
<span class=\"font-weight-bolder\">B</span>ridge <span class=\"font-weight-bolder\">F</span>estival
</h1>
<!-- Text -->
<p class=\"lead text-muted mt-4\">
Le guide des <span class=\"font-weight-bold\">tournois et festivals</span> de bridge.
</p>
</div>
</div>
{{ render(controller('App\\\\Controller\\\\SearchController::homesearch')) }}
</div>
</section>
{%endblock%}
{%block body%}
<main>
{%if bfeditions|length > 0%}
<div class=\"section section-lg\">
<div class=\"container\">
{{ render(controller('App\\\\Controller\\\\BFFestivalController::ShowHomeSubscriptions')) }}
<div class=\"row mb-4\">
<div class=\"col-12\">
<h4 class=\"mb-5\">Prochains tournois et festivals</h4>
</div>
<div class=\"col-12\">
</div>
{% for bfedition in bfeditions %}
{{ render(controller('App\\\\Controller\\\\BFEditionController::ShowSmallView', {id:bfedition.id})) }}
{%endfor%}
</div>
{{ render(controller('App\\\\Controller\\\\BFChallengeEditionController::ShowBFChallengeEditionsHome')) }}
</div>
</div>
{%endif%}
{{ include('about/howitworks.html.twig') }}
</main>
{%endblock%}
", "home.html.twig", "/home/maixmebouz/www/dev/bridgefestival/templates/home.html.twig");
}
}