<?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;
/* homechallenge.html.twig */
class __TwigTemplate_a1d7ae6c851b821a3a511946a1d969c3 extends Template
{
private $source;
private $macros = [];
public function __construct(Environment $env)
{
parent::__construct($env);
$this->source = $this->getSourceContext();
$this->blocks = [
'facebook' => [$this, 'block_facebook'],
'twitter' => [$this, 'block_twitter'],
'title' => [$this, 'block_title'],
'headersection' => [$this, 'block_headersection'],
'body' => [$this, 'block_body'],
];
}
protected function doGetParent(array $context)
{
// line 26
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", "homechallenge.html.twig"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "homechallenge.html.twig"));
$this->parent = $this->loadTemplate("base.html.twig", "homechallenge.html.twig", 26);
$this->parent->display($context, array_merge($this->blocks, $blocks));
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
}
// line 4
public function block_facebook($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", "facebook"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "facebook"));
// line 5
echo "<meta property=\"og:type\" content=\"website\">
<meta property=\"og:url\" content=\"https://bridgefestival.fr\">
<meta property=\"og:title\" content=\"";
// line 7
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["bfchallenge"]) || array_key_exists("bfchallenge", $context) ? $context["bfchallenge"] : (function () { throw new RuntimeError('Variable "bfchallenge" does not exist.', 7, $this->source); })()), "name", [], "any", false, false, false, 7), "html", null, true);
echo " - ";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["bfchallengeedition"]) || array_key_exists("bfchallengeedition", $context) ? $context["bfchallengeedition"] : (function () { throw new RuntimeError('Variable "bfchallengeedition" does not exist.', 7, $this->source); })()), "name", [], "any", false, false, false, 7), "html", null, true);
echo "\">
<meta property=\"og:description\" content=\"Bridge Festival - Le guide des tournois et festivals de bridge\">
";
// line 9
if ((twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["bfchallengeedition"]) || array_key_exists("bfchallengeedition", $context) ? $context["bfchallengeedition"] : (function () { throw new RuntimeError('Variable "bfchallengeedition" does not exist.', 9, $this->source); })()), "challenge", [], "any", false, false, false, 9), "description", [], "any", false, false, false, 9), "image1", [], "any", false, false, false, 9) != null)) {
// line 10
echo "<meta property=\"og:image\" content=\"";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\HttpFoundationExtension']->generateAbsoluteUrl($this->env->getRuntime('Vich\UploaderBundle\Twig\Extension\UploaderExtensionRuntime')->asset(twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["bfchallengeedition"]) || array_key_exists("bfchallengeedition", $context) ? $context["bfchallengeedition"] : (function () { throw new RuntimeError('Variable "bfchallengeedition" does not exist.', 10, $this->source); })()), "challenge", [], "any", false, false, false, 10), "description", [], "any", false, false, false, 10), "image1File")), "html", null, true);
echo "\">
";
} else {
// line 12
echo "<meta property=\"og:image\" content=\"";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\HttpFoundationExtension']->generateAbsoluteUrl($this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/img/cards-3662554_1920.jpg")), "html", null, true);
echo "\">
";
}
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
// line 16
public function block_twitter($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", "twitter"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "twitter"));
// line 17
echo "<meta property=\"twitter:card\" content=\"summary_large_image\">
<meta property=\"twitter:url\" content=\"https://bridgefestival.fr\">
<meta property=\"twitter:title\" content=\"";
// line 19
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["bfchallenge"]) || array_key_exists("bfchallenge", $context) ? $context["bfchallenge"] : (function () { throw new RuntimeError('Variable "bfchallenge" does not exist.', 19, $this->source); })()), "name", [], "any", false, false, false, 19), "html", null, true);
echo " - ";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["bfchallengeedition"]) || array_key_exists("bfchallengeedition", $context) ? $context["bfchallengeedition"] : (function () { throw new RuntimeError('Variable "bfchallengeedition" does not exist.', 19, $this->source); })()), "name", [], "any", false, false, false, 19), "html", null, true);
echo "\">
<meta property=\"twitter:description\" content=\"Bridge Festival - Le guide des tournois et festivals de bridge\">
";
// line 21
if ((twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["bfchallengeedition"]) || array_key_exists("bfchallengeedition", $context) ? $context["bfchallengeedition"] : (function () { throw new RuntimeError('Variable "bfchallengeedition" does not exist.', 21, $this->source); })()), "challenge", [], "any", false, false, false, 21), "description", [], "any", false, false, false, 21), "image1", [], "any", false, false, false, 21) != null)) {
// line 22
echo "<meta property=\"twitter:image\" content=\"";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\HttpFoundationExtension']->generateAbsoluteUrl($this->env->getRuntime('Vich\UploaderBundle\Twig\Extension\UploaderExtensionRuntime')->asset(twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["bfchallengeedition"]) || array_key_exists("bfchallengeedition", $context) ? $context["bfchallengeedition"] : (function () { throw new RuntimeError('Variable "bfchallengeedition" does not exist.', 22, $this->source); })()), "challenge", [], "any", false, false, false, 22), "description", [], "any", false, false, false, 22), "image1File")), "html", null, true);
echo "\">
";
} else {
// line 24
echo "<meta property=\"twitter:image\" content=\"";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\HttpFoundationExtension']->generateAbsoluteUrl($this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/img/cards-3662554_1920.jpg")), "html", null, true);
echo "\">
";
}
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
// line 28
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 "- ";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["bfchallengeedition"]) || array_key_exists("bfchallengeedition", $context) ? $context["bfchallengeedition"] : (function () { throw new RuntimeError('Variable "bfchallengeedition" does not exist.', 28, $this->source); })()), "challenge", [], "any", false, false, false, 28), "name", [], "any", false, false, false, 28), "html", null, true);
echo " : ";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["bfchallengeedition"]) || array_key_exists("bfchallengeedition", $context) ? $context["bfchallengeedition"] : (function () { throw new RuntimeError('Variable "bfchallengeedition" does not exist.', 28, $this->source); })()), "name", [], "any", false, false, false, 28), "html", null, true);
echo " ";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
// line 30
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 31
echo "<div class=\"fixed-top\">
";
// line 32
echo twig_include($this->env, $context, "flashmessages/flashmessages.html.twig");
echo "
</div>
";
// line 34
if ((twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["bfchallengeedition"]) || array_key_exists("bfchallengeedition", $context) ? $context["bfchallengeedition"] : (function () { throw new RuntimeError('Variable "bfchallengeedition" does not exist.', 34, $this->source); })()), "challenge", [], "any", false, false, false, 34), "description", [], "any", false, false, false, 34), "image1", [], "any", false, false, false, 34) != null)) {
// line 35
echo "<section class=\"section section-header section-image bg-primary overlay-primary text-white overflow-hidden pb-6 covernorepeat\" data-background=\"";
echo twig_escape_filter($this->env, $this->env->getRuntime('Vich\UploaderBundle\Twig\Extension\UploaderExtensionRuntime')->asset(twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["bfchallengeedition"]) || array_key_exists("bfchallengeedition", $context) ? $context["bfchallengeedition"] : (function () { throw new RuntimeError('Variable "bfchallengeedition" does not exist.', 35, $this->source); })()), "challenge", [], "any", false, false, false, 35), "description", [], "any", false, false, false, 35), "image1File"), "html", null, true);
echo "\">
";
} else {
// line 37
echo " <section class=\"section section-header section-image bg-primary overlay-primary text-white overflow-hidden pb-6 covernorepeat\" data-background=\"";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/img/cards-3662554_1920.jpg"), "html", null, true);
echo "\">
";
}
// line 39
echo " <div class=\"container\">
<div class=\"row justify-content-center\">
<div class=\"col-12 text-center pt-3\">
<nav aria-label=\"breadcrumb\">
<ol class=\"breadcrumb breadcrumb-transparent justify-content-center mb-4\">
<li class=\"breadcrumb-item\"><a href=\"";
// line 44
echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("home", [], false);
echo "\">Accueil</a></li>
<li class=\"breadcrumb-item active\">Challenges</li>
</ol>
</nav>
<!-- Heading -->
<h1 class=\"display-2\">
";
// line 50
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["bfchallenge"]) || array_key_exists("bfchallenge", $context) ? $context["bfchallenge"] : (function () { throw new RuntimeError('Variable "bfchallenge" does not exist.', 50, $this->source); })()), "name", [], "any", false, false, false, 50), "html", null, true);
echo "
</h1>
<p class=\"lead text-muted mt-4\">
";
// line 53
echo twig_nl2br(twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["bfchallenge"]) || array_key_exists("bfchallenge", $context) ? $context["bfchallenge"] : (function () { throw new RuntimeError('Variable "bfchallenge" does not exist.', 53, $this->source); })()), "description", [], "any", false, false, false, 53), "longdescription", [], "any", false, false, false, 53), "html", null, true));
echo "
</p>
";
// line 55
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->renderBlock((isset($context["formsubscription"]) || array_key_exists("formsubscription", $context) ? $context["formsubscription"] : (function () { throw new RuntimeError('Variable "formsubscription" does not exist.', 55, $this->source); })()), 'form');
echo "
</div>
</div>
</div>
</section>
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
// line 62
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 63
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-center\">
<div class=\"col-12 col-lg-9 order-lg-1\">
<div class=\"card\" aria-labelledby=\"nav-about-tab\">
<h2 class=\"font-weight-normal mb-0 pb-0\">";
// line 69
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["bfchallengeedition"]) || array_key_exists("bfchallengeedition", $context) ? $context["bfchallengeedition"] : (function () { throw new RuntimeError('Variable "bfchallengeedition" does not exist.', 69, $this->source); })()), "name", [], "any", false, false, false, 69), "html", null, true);
echo "</h2>
";
// line 70
if ((twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["bfchallengeedition"]) || array_key_exists("bfchallengeedition", $context) ? $context["bfchallengeedition"] : (function () { throw new RuntimeError('Variable "bfchallengeedition" does not exist.', 70, $this->source); })()), "description", [], "any", false, false, false, 70), "website", [], "any", false, false, false, 70) != null)) {
// line 71
echo " <p class=\"mt-0 mb-0 pt-0 pb-0\">
<a href=\"";
// line 72
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["bfchallengeedition"]) || array_key_exists("bfchallengeedition", $context) ? $context["bfchallengeedition"] : (function () { throw new RuntimeError('Variable "bfchallengeedition" does not exist.', 72, $this->source); })()), "description", [], "any", false, false, false, 72), "website", [], "any", false, false, false, 72), "html", null, true);
echo "\" target=\"_blank\">";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["bfchallengeedition"]) || array_key_exists("bfchallengeedition", $context) ? $context["bfchallengeedition"] : (function () { throw new RuntimeError('Variable "bfchallengeedition" does not exist.', 72, $this->source); })()), "description", [], "any", false, false, false, 72), "website", [], "any", false, false, false, 72), "html", null, true);
echo "</a>
</p>
";
}
// line 75
echo " <p class=\"mt-1\">
";
// line 76
echo twig_nl2br(twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["bfchallengeedition"]) || array_key_exists("bfchallengeedition", $context) ? $context["bfchallengeedition"] : (function () { throw new RuntimeError('Variable "bfchallengeedition" does not exist.', 76, $this->source); })()), "description", [], "any", false, false, false, 76), "longdescription", [], "any", false, false, false, 76), "html", null, true));
echo "
</p>
<p class=\"mt-1\">
";
// line 79
if ((twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["bfchallengeedition"]) || array_key_exists("bfchallengeedition", $context) ? $context["bfchallengeedition"] : (function () { throw new RuntimeError('Variable "bfchallengeedition" does not exist.', 79, $this->source); })()), "description", [], "any", false, false, false, 79), "poster", [], "any", false, false, false, 79) != null)) {
// line 80
echo " <a href=\"";
echo twig_escape_filter($this->env, $this->env->getRuntime('Vich\UploaderBundle\Twig\Extension\UploaderExtensionRuntime')->asset(twig_get_attribute($this->env, $this->source, (isset($context["bfchallengeedition"]) || array_key_exists("bfchallengeedition", $context) ? $context["bfchallengeedition"] : (function () { throw new RuntimeError('Variable "bfchallengeedition" does not exist.', 80, $this->source); })()), "description", [], "any", false, false, false, 80), "posterFile"), "html", null, true);
echo "\" target=\"_blank\" class=\"font-weight-bold primary mb-0 mr-1\">
<i class=\"far fa-file mr-2\"></i>Affiche
</a> <br />
";
}
// line 84
echo " ";
if ((twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["bfchallengeedition"]) || array_key_exists("bfchallengeedition", $context) ? $context["bfchallengeedition"] : (function () { throw new RuntimeError('Variable "bfchallengeedition" does not exist.', 84, $this->source); })()), "description", [], "any", false, false, false, 84), "ranking", [], "any", false, false, false, 84) != null)) {
// line 85
echo " <a href=\"";
echo twig_escape_filter($this->env, $this->env->getRuntime('Vich\UploaderBundle\Twig\Extension\UploaderExtensionRuntime')->asset(twig_get_attribute($this->env, $this->source, (isset($context["bfchallengeedition"]) || array_key_exists("bfchallengeedition", $context) ? $context["bfchallengeedition"] : (function () { throw new RuntimeError('Variable "bfchallengeedition" does not exist.', 85, $this->source); })()), "description", [], "any", false, false, false, 85), "rankingFile"), "html", null, true);
echo "\" target=\"_blank\" class=\"font-weight-bold primary mb-0 mr-1\">
<i class=\"far fa-file mr-2\"></i>Classement
</a>
";
}
// line 89
echo " </p>
</div>
<div class=\"text-right\">
<p class=\"mb-0 font-small\">
Nombre de tournois : ";
// line 94
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["pagination"]) || array_key_exists("pagination", $context) ? $context["pagination"] : (function () { throw new RuntimeError('Variable "pagination" does not exist.', 94, $this->source); })()), "getTotalItemCount", [], "any", false, false, false, 94), "html", null, true);
echo "
</p>
</div>
<div class=\"tab-content mt-4 mt-lg-4 \" id=\"tabcontentexample-5\">
<div class=\"tab-pane fade show active\" id=\"link-example-13\" role=\"tabpanel\" aria-labelledby=\"tab-link-example-13\">
";
// line 99
$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.', 99, $this->source); })()));
foreach ($context['_seq'] as $context["_key"] => $context["bfedition"]) {
// line 100
echo " ";
if (((twig_get_attribute($this->env, $this->source, $context["bfedition"], "isactive", [], "any", false, false, false, 100) == true) && (twig_date_converter($this->env, twig_get_attribute($this->env, $this->source, $context["bfedition"], "enddate", [], "any", false, false, false, 100)) > twig_date_converter($this->env)))) {
// line 101
echo " ";
echo $this->env->getRuntime('Symfony\Bridge\Twig\Extension\HttpKernelRuntime')->renderFragment(Symfony\Bridge\Twig\Extension\HttpKernelExtension::controller("App\\Controller\\BFEditionController::ShowListView", ["id" => twig_get_attribute($this->env, $this->source, $context["bfedition"], "id", [], "any", false, false, false, 101)]));
echo "
";
} else {
// line 103
echo " ";
echo $this->env->getRuntime('Symfony\Bridge\Twig\Extension\HttpKernelRuntime')->renderFragment(Symfony\Bridge\Twig\Extension\HttpKernelExtension::controller("App\\Controller\\BFEditionController::ShowListViewInactive", ["id" => twig_get_attribute($this->env, $this->source, $context["bfedition"], "id", [], "any", false, false, false, 103)]));
echo "
";
}
// line 105
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 106
echo " </div>
</div>
";
// line 108
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.', 108, $this->source); })()));
echo "
</div>
</div>
</div>
</div>
</main>
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
public function getTemplateName()
{
return "homechallenge.html.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
return array ( 355 => 108, 351 => 106, 345 => 105, 339 => 103, 333 => 101, 330 => 100, 326 => 99, 318 => 94, 311 => 89, 303 => 85, 300 => 84, 292 => 80, 290 => 79, 284 => 76, 281 => 75, 273 => 72, 270 => 71, 268 => 70, 264 => 69, 256 => 63, 246 => 62, 230 => 55, 225 => 53, 219 => 50, 210 => 44, 203 => 39, 197 => 37, 191 => 35, 189 => 34, 184 => 32, 181 => 31, 171 => 30, 148 => 28, 134 => 24, 128 => 22, 126 => 21, 119 => 19, 115 => 17, 105 => 16, 91 => 12, 85 => 10, 83 => 9, 76 => 7, 72 => 5, 62 => 4, 39 => 26,);
}
public function getSourceContext()
{
return new Source("
{%block facebook%}
<meta property=\"og:type\" content=\"website\">
<meta property=\"og:url\" content=\"https://bridgefestival.fr\">
<meta property=\"og:title\" content=\"{{bfchallenge.name}} - {{bfchallengeedition.name}}\">
<meta property=\"og:description\" content=\"Bridge Festival - Le guide des tournois et festivals de bridge\">
{%if bfchallengeedition.challenge.description.image1 != null%}
<meta property=\"og:image\" content=\"{{ absolute_url(vich_uploader_asset(bfchallengeedition.challenge.description, 'image1File')) }}\">
{%else%}
<meta property=\"og:image\" content=\"{{ absolute_url(asset('assets/img/cards-3662554_1920.jpg')) }}\">
{%endif%}
{%endblock%}
{%block twitter %}
<meta property=\"twitter:card\" content=\"summary_large_image\">
<meta property=\"twitter:url\" content=\"https://bridgefestival.fr\">
<meta property=\"twitter:title\" content=\"{{bfchallenge.name}} - {{bfchallengeedition.name}}\">
<meta property=\"twitter:description\" content=\"Bridge Festival - Le guide des tournois et festivals de bridge\">
{%if bfchallengeedition.challenge.description.image1 != null%}
<meta property=\"twitter:image\" content=\"{{ absolute_url(vich_uploader_asset(bfchallengeedition.challenge.description, 'image1File')) }}\">
{%else%}
<meta property=\"twitter:image\" content=\"{{ absolute_url(asset('assets/img/cards-3662554_1920.jpg')) }}\">
{%endif%}
{%endblock%}{% extends 'base.html.twig' %}
{% block title %}- {{bfchallengeedition.challenge.name}} : {{bfchallengeedition.name}} {% endblock %}
{% block headersection %}
<div class=\"fixed-top\">
{{ include('flashmessages/flashmessages.html.twig') }}
</div>
{%if bfchallengeedition.challenge.description.image1 != null%}
<section class=\"section section-header section-image bg-primary overlay-primary text-white overflow-hidden pb-6 covernorepeat\" data-background=\"{{ vich_uploader_asset(bfchallengeedition.challenge.description, 'image1File') }}\">
{%else%}
<section class=\"section section-header section-image bg-primary overlay-primary text-white overflow-hidden pb-6 covernorepeat\" data-background=\"{{ asset('assets/img/cards-3662554_1920.jpg') }}\">
{%endif%}
<div class=\"container\">
<div class=\"row justify-content-center\">
<div class=\"col-12 text-center pt-3\">
<nav aria-label=\"breadcrumb\">
<ol class=\"breadcrumb breadcrumb-transparent justify-content-center mb-4\">
<li class=\"breadcrumb-item\"><a href=\"{{ path('home', {}, relative = false) }}\">Accueil</a></li>
<li class=\"breadcrumb-item active\">Challenges</li>
</ol>
</nav>
<!-- Heading -->
<h1 class=\"display-2\">
{{bfchallenge.name}}
</h1>
<p class=\"lead text-muted mt-4\">
{{bfchallenge.description.longdescription|nl2br}}
</p>
{{form(formsubscription)}}
</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-center\">
<div class=\"col-12 col-lg-9 order-lg-1\">
<div class=\"card\" aria-labelledby=\"nav-about-tab\">
<h2 class=\"font-weight-normal mb-0 pb-0\">{{bfchallengeedition.name}}</h2>
{%if bfchallengeedition.description.website!=null%}
<p class=\"mt-0 mb-0 pt-0 pb-0\">
<a href=\"{{bfchallengeedition.description.website}}\" target=\"_blank\">{{bfchallengeedition.description.website}}</a>
</p>
{%endif%}
<p class=\"mt-1\">
{{bfchallengeedition.description.longdescription|nl2br}}
</p>
<p class=\"mt-1\">
{%if bfchallengeedition.description.poster != null%}
<a href=\"{{ vich_uploader_asset(bfchallengeedition.description, 'posterFile') }}\" target=\"_blank\" class=\"font-weight-bold primary mb-0 mr-1\">
<i class=\"far fa-file mr-2\"></i>Affiche
</a> <br />
{%endif%}
{%if bfchallengeedition.description.ranking != null%}
<a href=\"{{ vich_uploader_asset(bfchallengeedition.description, 'rankingFile') }}\" target=\"_blank\" class=\"font-weight-bold primary mb-0 mr-1\">
<i class=\"far fa-file mr-2\"></i>Classement
</a>
{%endif%}
</p>
</div>
<div class=\"text-right\">
<p class=\"mb-0 font-small\">
Nombre de tournois : {{ pagination.getTotalItemCount }}
</p>
</div>
<div class=\"tab-content mt-4 mt-lg-4 \" id=\"tabcontentexample-5\">
<div class=\"tab-pane fade show active\" id=\"link-example-13\" role=\"tabpanel\" aria-labelledby=\"tab-link-example-13\">
{% for bfedition in pagination %}
{% if bfedition.isactive==true and date(bfedition.enddate)>date() %}
{{ render(controller('App\\\\Controller\\\\BFEditionController::ShowListView', {id:bfedition.id})) }}
{%else%}
{{ render(controller('App\\\\Controller\\\\BFEditionController::ShowListViewInactive', {id:bfedition.id})) }}
{%endif%}
{%endfor%}
</div>
</div>
{{ knp_pagination_render(pagination) }}
</div>
</div>
</div>
</div>
</main>
{%endblock%}
", "homechallenge.html.twig", "/home/maixmebouz/www/dev/bridgefestival/templates/homechallenge.html.twig");
}
}