<?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;
/* homeeditiondetails.html.twig */
class __TwigTemplate_6ab2203dab0dab4a047195ff24181c38 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 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", "homeeditiondetails.html.twig"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "homeeditiondetails.html.twig"));
$this->parent = $this->loadTemplate("base.html.twig", "homeeditiondetails.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_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 4
echo "<meta property=\"og:type\" content=\"website\">
<meta property=\"og:url\" content=\"https://bridgefestival.fr\">
<meta property=\"og:title\" content=\"";
// line 6
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["bfedition"]) || array_key_exists("bfedition", $context) ? $context["bfedition"] : (function () { throw new RuntimeError('Variable "bfedition" does not exist.', 6, $this->source); })()), "festival", [], "any", false, false, false, 6), "name", [], "any", false, false, false, 6), "html", null, true);
echo " - ";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["bfedition"]) || array_key_exists("bfedition", $context) ? $context["bfedition"] : (function () { throw new RuntimeError('Variable "bfedition" does not exist.', 6, $this->source); })()), "name", [], "any", false, false, false, 6), "html", null, true);
echo "\">
<meta property=\"og:description\" content=\"Bridge Festival - Le guide des tournois et festivals de bridge\">
";
// line 8
if ((twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["bfedition"]) || array_key_exists("bfedition", $context) ? $context["bfedition"] : (function () { throw new RuntimeError('Variable "bfedition" does not exist.', 8, $this->source); })()), "festival", [], "any", false, false, false, 8), "description", [], "any", false, false, false, 8), "image1", [], "any", false, false, false, 8) != null)) {
// line 9
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["bfedition"]) || array_key_exists("bfedition", $context) ? $context["bfedition"] : (function () { throw new RuntimeError('Variable "bfedition" does not exist.', 9, $this->source); })()), "festival", [], "any", false, false, false, 9), "description", [], "any", false, false, false, 9), "image1File")), "html", null, true);
echo "\">
";
} else {
// line 11
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 15
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 16
echo "<meta property=\"twitter:card\" content=\"summary_large_image\">
<meta property=\"twitter:url\" content=\"https://bridgefestival.fr\">
<meta property=\"twitter:title\" content=\"";
// line 18
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["bfedition"]) || array_key_exists("bfedition", $context) ? $context["bfedition"] : (function () { throw new RuntimeError('Variable "bfedition" does not exist.', 18, $this->source); })()), "festival", [], "any", false, false, false, 18), "name", [], "any", false, false, false, 18), "html", null, true);
echo " - ";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["bfedition"]) || array_key_exists("bfedition", $context) ? $context["bfedition"] : (function () { throw new RuntimeError('Variable "bfedition" does not exist.', 18, $this->source); })()), "name", [], "any", false, false, false, 18), "html", null, true);
echo "\">
<meta property=\"twitter:description\" content=\"Bridge Festival - Le guide des tournois et festivals de bridge\">
";
// line 20
if ((twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["bfedition"]) || array_key_exists("bfedition", $context) ? $context["bfedition"] : (function () { throw new RuntimeError('Variable "bfedition" does not exist.', 20, $this->source); })()), "festival", [], "any", false, false, false, 20), "description", [], "any", false, false, false, 20), "image1", [], "any", false, false, false, 20) != null)) {
// line 21
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["bfedition"]) || array_key_exists("bfedition", $context) ? $context["bfedition"] : (function () { throw new RuntimeError('Variable "bfedition" does not exist.', 21, $this->source); })()), "festival", [], "any", false, false, false, 21), "description", [], "any", false, false, false, 21), "image1File")), "html", null, true);
echo "\">
";
} else {
// line 23
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 27
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["bfedition"]) || array_key_exists("bfedition", $context) ? $context["bfedition"] : (function () { throw new RuntimeError('Variable "bfedition" does not exist.', 27, $this->source); })()), "festival", [], "any", false, false, false, 27), "name", [], "any", false, false, false, 27), "html", null, true);
echo ": ";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["bfedition"]) || array_key_exists("bfedition", $context) ? $context["bfedition"] : (function () { throw new RuntimeError('Variable "bfedition" does not exist.', 27, $this->source); })()), "name", [], "any", false, false, false, 27), "html", null, true);
echo " ";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
// line 29
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 30
if ((twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["bfedition"]) || array_key_exists("bfedition", $context) ? $context["bfedition"] : (function () { throw new RuntimeError('Variable "bfedition" does not exist.', 30, $this->source); })()), "festival", [], "any", false, false, false, 30), "description", [], "any", false, false, false, 30), "image1", [], "any", false, false, false, 30) != null)) {
// line 31
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["bfedition"]) || array_key_exists("bfedition", $context) ? $context["bfedition"] : (function () { throw new RuntimeError('Variable "bfedition" does not exist.', 31, $this->source); })()), "festival", [], "any", false, false, false, 31), "description", [], "any", false, false, false, 31), "image1File"), "html", null, true);
echo "\">
";
} else {
// line 33
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 35
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 40
echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("home", [], false);
echo "\">Accueil</a></li>
<li class=\"breadcrumb-item active\"> <a href=\"";
// line 41
echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("home_route", ["routename" => "search"], false);
echo "\">Festivals</a></li>
</ol>
</nav>
<!-- Heading -->
<h1 class=\"display-2\">
";
// line 46
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["bfedition"]) || array_key_exists("bfedition", $context) ? $context["bfedition"] : (function () { throw new RuntimeError('Variable "bfedition" does not exist.', 46, $this->source); })()), "festival", [], "any", false, false, false, 46), "name", [], "any", false, false, false, 46), "html", null, true);
echo "
</h1>
<h5>
";
// line 49
if (((twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["bfedition"]) || array_key_exists("bfedition", $context) ? $context["bfedition"] : (function () { throw new RuntimeError('Variable "bfedition" does not exist.', 49, $this->source); })()), "description", [], "any", false, false, false, 49), "website", [], "any", false, false, false, 49) != null) && $this->extensions['Symfony\Bridge\Twig\Extension\SecurityExtension']->isGranted("option_website", (isset($context["bfedition"]) || array_key_exists("bfedition", $context) ? $context["bfedition"] : (function () { throw new RuntimeError('Variable "bfedition" does not exist.', 49, $this->source); })())))) {
// line 50
echo " <a href=\"";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["bfedition"]) || array_key_exists("bfedition", $context) ? $context["bfedition"] : (function () { throw new RuntimeError('Variable "bfedition" does not exist.', 50, $this->source); })()), "description", [], "any", false, false, false, 50), "website", [], "any", false, false, false, 50), "html", null, true);
echo "\" target=\"_blank\" class=\"font-weight-bold primary mb-0 mr-1\">
<i class=\"fas fa-globe mr-2\"></i>";
// line 51
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["bfedition"]) || array_key_exists("bfedition", $context) ? $context["bfedition"] : (function () { throw new RuntimeError('Variable "bfedition" does not exist.', 51, $this->source); })()), "description", [], "any", false, false, false, 51), "website", [], "any", false, false, false, 51), "html", null, true);
echo "
</a>
";
}
// line 54
echo " </h5>
<!-- Text -->
<p class=\"lead text-muted mt-4\">
";
// line 57
echo twig_nl2br(twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["bfedition"]) || array_key_exists("bfedition", $context) ? $context["bfedition"] : (function () { throw new RuntimeError('Variable "bfedition" does not exist.', 57, $this->source); })()), "festival", [], "any", false, false, false, 57), "description", [], "any", false, false, false, 57), "longdescription", [], "any", false, false, false, 57), "html", null, true));
echo "
</p>
";
// line 59
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.', 59, $this->source); })()), 'form');
echo "
</div>
</div>
</div>
</section>
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
// line 66
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 67
echo " <main>
<div class=\"section pt-5 pt-lg-6\">
<div class=\"container\">
";
// line 70
echo twig_include($this->env, $context, "flashmessages/flashmessages.html.twig");
echo "
</div>
<div class=\"container\">
<div class=\"row\">
<div class=\"col\">
<div class=\"tab-content mb-3\">
<div class=\"card\" aria-labelledby=\"nav-about-tab\">
<h2 class=\"font-weight-normal\">";
// line 78
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["bfedition"]) || array_key_exists("bfedition", $context) ? $context["bfedition"] : (function () { throw new RuntimeError('Variable "bfedition" does not exist.', 78, $this->source); })()), "festival", [], "any", false, false, false, 78), "name", [], "any", false, false, false, 78), "html", null, true);
echo " - ";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["bfedition"]) || array_key_exists("bfedition", $context) ? $context["bfedition"] : (function () { throw new RuntimeError('Variable "bfedition" does not exist.', 78, $this->source); })()), "name", [], "any", false, false, false, 78), "html", null, true);
echo "
</h2>
<div class=\"d-block d-md-flex\">
";
// line 82
if ((twig_get_attribute($this->env, $this->source, (isset($context["bfedition"]) || array_key_exists("bfedition", $context) ? $context["bfedition"] : (function () { throw new RuntimeError('Variable "bfedition" does not exist.', 82, $this->source); })()), "haschallengeeditionsactive", [], "any", false, false, false, 82) == true)) {
// line 83
echo " ";
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env, $this->source, (isset($context["bfedition"]) || array_key_exists("bfedition", $context) ? $context["bfedition"] : (function () { throw new RuntimeError('Variable "bfedition" does not exist.', 83, $this->source); })()), "challengeeditionsactive", [], "any", false, false, false, 83));
foreach ($context['_seq'] as $context["_key"] => $context["bfchallengeedition"]) {
// line 84
echo " <a href=\"";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("challenge_view", ["idedition" => twig_get_attribute($this->env, $this->source, $context["bfchallengeedition"], "id", [], "any", false, false, false, 84)], false), "html", null, true);
echo "\">
<span class=\"badge badge-primary mr-2\" style=\"background-color:";
// line 85
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["bfchallengeedition"], "description", [], "any", false, false, false, 85), "labelcolor", [], "any", false, false, false, 85), "html", null, true);
echo "\">
<span class=\"font-weight-normal font-xs\">";
// line 86
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["bfchallengeedition"], "description", [], "any", false, false, false, 86), "labeltext", [], "any", false, false, false, 86), "html", null, true);
echo "</span>
</span>
</a>
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['bfchallengeedition'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 90
echo " ";
}
// line 91
echo " </div>
<div class=\"d-block d-md-flex\">
<span class=\"lh-120 ml-md-2 mt-2 mb-2\"><i class=\"far fa-calendar-alt mr-1 pr-1\"></i>";
// line 93
echo twig_escape_filter($this->env, twig_date_format_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["bfedition"]) || array_key_exists("bfedition", $context) ? $context["bfedition"] : (function () { throw new RuntimeError('Variable "bfedition" does not exist.', 93, $this->source); })()), "startdate", [], "any", false, false, false, 93), "d/m/Y"), "html", null, true);
echo " - ";
echo twig_escape_filter($this->env, twig_date_format_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["bfedition"]) || array_key_exists("bfedition", $context) ? $context["bfedition"] : (function () { throw new RuntimeError('Variable "bfedition" does not exist.', 93, $this->source); })()), "enddate", [], "any", false, false, false, 93), "d/m/Y"), "html", null, true);
echo "</span>
</div>
<div class=\"d-block d-md-flex\">
<span class=\"lh-120 ml-md-2\"><i class=\"fas fa-map-marker-alt mr-1 pr-1\"></i>";
// line 96
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["bfedition"]) || array_key_exists("bfedition", $context) ? $context["bfedition"] : (function () { throw new RuntimeError('Variable "bfedition" does not exist.', 96, $this->source); })()), "location", [], "any", false, false, false, 96), "html", null, true);
echo "</span>
</div>
";
// line 98
if ($this->extensions['Symfony\Bridge\Twig\Extension\SecurityExtension']->isGranted("option_inscription", (isset($context["bfedition"]) || array_key_exists("bfedition", $context) ? $context["bfedition"] : (function () { throw new RuntimeError('Variable "bfedition" does not exist.', 98, $this->source); })()))) {
// line 99
echo " <nav class=\"row mt-4\">
<div class=\"nav col nav-tabs flex-column flex-md-row border-light mb-3\" id=\"nav-tab\" role=\"tablist\">
<a class=\"nav-item nav-link active grey\" id=\"nav-about-tab\" data-toggle=\"tab\" href=\"#nav-about\" role=\"tab\" aria-controls=\"nav-about\" aria-selected=\"true\"><i class=\"far fa-address-card mr-2\"></i>A propos</a>
<a class=\"nav-item nav-link greay\" id=\"nav-video-tab\" data-toggle=\"tab\" href=\"#nav-video\" role=\"tab\" aria-controls=\"nav-video\" aria-selected=\"false\"><i class=\"fas fa-signature mr-2\"></i>Inscriptions</a>
</div>
</nav>
<div class=\"tab-content mb-3\" id=\"nav-tabContent\">
<div class=\"tab-pane fade show active \" id=\"nav-about\" role=\"tabpanel\" aria-labelledby=\"nav-about-tab\">
";
// line 107
$this->loadTemplate("editions/editionabout.html.twig", "homeeditiondetails.html.twig", 107)->display($context);
// line 108
echo " </div>
<div class=\"tab-pane fade\" id=\"nav-video\" role=\"tabpanel\" aria-labelledby=\"nav-video-tab\">
";
// line 110
$this->loadTemplate("editions/editioninscription.html.twig", "homeeditiondetails.html.twig", 110)->display($context);
// line 111
echo " </div>
</div>
";
} else {
// line 114
echo " ";
$this->loadTemplate("editions/editionabout.html.twig", "homeeditiondetails.html.twig", 114)->display($context);
// line 115
echo " ";
}
// line 116
echo " </div>
</div>
</div>
<aside class=\"col-12 col-lg-4\">
";
// line 120
if (($this->extensions['Symfony\Bridge\Twig\Extension\SecurityExtension']->isGranted("canpay", twig_get_attribute($this->env, $this->source, (isset($context["bfedition"]) || array_key_exists("bfedition", $context) ? $context["bfedition"] : (function () { throw new RuntimeError('Variable "bfedition" does not exist.', 120, $this->source); })()), "festival", [], "any", false, false, false, 120)) && $this->extensions['Symfony\Bridge\Twig\Extension\SecurityExtension']->isGranted("option_payment", twig_get_attribute($this->env, $this->source, (isset($context["bfedition"]) || array_key_exists("bfedition", $context) ? $context["bfedition"] : (function () { throw new RuntimeError('Variable "bfedition" does not exist.', 120, $this->source); })()), "festival", [], "any", false, false, false, 120)))) {
// line 121
echo " ";
echo $this->env->getRuntime('Symfony\Bridge\Twig\Extension\HttpKernelRuntime')->renderFragment(Symfony\Bridge\Twig\Extension\HttpKernelExtension::controller("App\\Controller\\BFProductEditionController::ShowBFProductEditionForEditionDetail", ["idedition" => twig_get_attribute($this->env, $this->source, (isset($context["bfedition"]) || array_key_exists("bfedition", $context) ? $context["bfedition"] : (function () { throw new RuntimeError('Variable "bfedition" does not exist.', 121, $this->source); })()), "id", [], "any", false, false, false, 121)]));
echo "
";
}
// line 123
echo " <div class=\"card border-light p-3\">
<h5 class=\"font-weight-normal mb-3\">Demande d'informations</h5>
";
// line 125
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->renderBlock((isset($context["formaskmail"]) || array_key_exists("formaskmail", $context) ? $context["formaskmail"] : (function () { throw new RuntimeError('Variable "formaskmail" does not exist.', 125, $this->source); })()), 'form');
echo "
</div>
<div class=\"card border-light mt-4 p-3\">
<h5 class=\"font-weight-normal\">Contact</h5>
<div class=\"my-3\">
";
// line 130
if ((twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["bfedition"]) || array_key_exists("bfedition", $context) ? $context["bfedition"] : (function () { throw new RuntimeError('Variable "bfedition" does not exist.', 130, $this->source); })()), "description", [], "any", false, false, false, 130), "displayedcontactnumber", [], "any", false, false, false, 130) != null)) {
// line 131
echo " <div><i class=\"fas fa-phone mr-2\"></i>";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["bfedition"]) || array_key_exists("bfedition", $context) ? $context["bfedition"] : (function () { throw new RuntimeError('Variable "bfedition" does not exist.', 131, $this->source); })()), "description", [], "any", false, false, false, 131), "displayedcontactnumber", [], "any", false, false, false, 131), "html", null, true);
echo " </div>
";
}
// line 133
echo " ";
if ((twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["bfedition"]) || array_key_exists("bfedition", $context) ? $context["bfedition"] : (function () { throw new RuntimeError('Variable "bfedition" does not exist.', 133, $this->source); })()), "description", [], "any", false, false, false, 133), "displayedcontactmail", [], "any", false, false, false, 133) != null)) {
// line 134
echo " <div>
<i class=\"fas fa-envelope mr-2\"></i>";
// line 135
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["bfedition"]) || array_key_exists("bfedition", $context) ? $context["bfedition"] : (function () { throw new RuntimeError('Variable "bfedition" does not exist.', 135, $this->source); })()), "description", [], "any", false, false, false, 135), "displayedcontactmail", [], "any", false, false, false, 135), "html", null, true);
echo "
</div>
";
}
// line 138
echo " </div>
</div>
</aside>
</div>
</div>
</div>
</main>
<!-- Recaptcha -->
<script src=\"https://www.google.com/recaptcha/api.js?render=6Le2aesUAAAAAG4fDNIF_lqShoh6-PvS2lHexW2K\"></script>
<script src=\"";
// line 148
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("/assets/js/recaptcha.js"), "html", null, true);
echo "\"></script>
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
public function getTemplateName()
{
return "homeeditiondetails.html.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
return array ( 429 => 148, 417 => 138, 411 => 135, 408 => 134, 405 => 133, 399 => 131, 397 => 130, 389 => 125, 385 => 123, 379 => 121, 377 => 120, 371 => 116, 368 => 115, 365 => 114, 360 => 111, 358 => 110, 354 => 108, 352 => 107, 342 => 99, 340 => 98, 335 => 96, 327 => 93, 323 => 91, 320 => 90, 310 => 86, 306 => 85, 301 => 84, 296 => 83, 294 => 82, 285 => 78, 274 => 70, 269 => 67, 259 => 66, 243 => 59, 238 => 57, 233 => 54, 227 => 51, 222 => 50, 220 => 49, 214 => 46, 206 => 41, 202 => 40, 195 => 35, 189 => 33, 183 => 31, 181 => 30, 171 => 29, 148 => 27, 134 => 23, 128 => 21, 126 => 20, 119 => 18, 115 => 16, 105 => 15, 91 => 11, 85 => 9, 83 => 8, 76 => 6, 72 => 4, 62 => 3, 39 => 1,);
}
public function getSourceContext()
{
return new Source("{% extends 'base.html.twig' %}
{%block facebook%}
<meta property=\"og:type\" content=\"website\">
<meta property=\"og:url\" content=\"https://bridgefestival.fr\">
<meta property=\"og:title\" content=\"{{bfedition.festival.name}} - {{bfedition.name}}\">
<meta property=\"og:description\" content=\"Bridge Festival - Le guide des tournois et festivals de bridge\">
{%if bfedition.festival.description.image1 != null%}
<meta property=\"og:image\" content=\"{{ absolute_url(vich_uploader_asset(bfedition.festival.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=\"{{bfedition.festival.name}} - {{bfedition.name}}\">
<meta property=\"twitter:description\" content=\"Bridge Festival - Le guide des tournois et festivals de bridge\">
{%if bfedition.festival.description.image1 != null%}
<meta property=\"twitter:image\" content=\"{{ absolute_url(vich_uploader_asset(bfedition.festival.description, 'image1File')) }}\">
{%else%}
<meta property=\"twitter:image\" content=\"{{ absolute_url(asset('assets/img/cards-3662554_1920.jpg')) }}\">
{%endif%}
{%endblock%}
{% block title %}- {{bfedition.festival.name}}: {{bfedition.name}} {% endblock %}
{% block headersection %}
{%if bfedition.festival.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(bfedition.festival.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\"> <a href=\"{{ path('home_route', {'routename':'search'}, relative = false) }}\">Festivals</a></li>
</ol>
</nav>
<!-- Heading -->
<h1 class=\"display-2\">
{{bfedition.festival.name}}
</h1>
<h5>
{%if bfedition.description.website != null and is_granted('option_website', bfedition)%}
<a href=\"{{bfedition.description.website}}\" target=\"_blank\" class=\"font-weight-bold primary mb-0 mr-1\">
<i class=\"fas fa-globe mr-2\"></i>{{bfedition.description.website}}
</a>
{%endif%}
</h5>
<!-- Text -->
<p class=\"lead text-muted mt-4\">
{{bfedition.festival.description.longdescription|nl2br}}
</p>
{{form(formsubscription)}}
</div>
</div>
</div>
</section>
{%endblock%}
{%block body%}
<main>
<div class=\"section pt-5 pt-lg-6\">
<div class=\"container\">
{{ include('flashmessages/flashmessages.html.twig') }}
</div>
<div class=\"container\">
<div class=\"row\">
<div class=\"col\">
<div class=\"tab-content mb-3\">
<div class=\"card\" aria-labelledby=\"nav-about-tab\">
<h2 class=\"font-weight-normal\">{{bfedition.festival.name}} - {{bfedition.name}}
</h2>
<div class=\"d-block d-md-flex\">
{%if bfedition.haschallengeeditionsactive==true %}
{% for bfchallengeedition in bfedition.challengeeditionsactive %}
<a href=\"{{ path('challenge_view', {'idedition':bfchallengeedition.id}, relative = false) }}\">
<span class=\"badge badge-primary mr-2\" style=\"background-color:{{bfchallengeedition.description.labelcolor}}\">
<span class=\"font-weight-normal font-xs\">{{bfchallengeedition.description.labeltext}}</span>
</span>
</a>
{%endfor%}
{%endif%}
</div>
<div class=\"d-block d-md-flex\">
<span class=\"lh-120 ml-md-2 mt-2 mb-2\"><i class=\"far fa-calendar-alt mr-1 pr-1\"></i>{{bfedition.startdate|date(\"d/m/Y\")}} - {{bfedition.enddate|date(\"d/m/Y\")}}</span>
</div>
<div class=\"d-block d-md-flex\">
<span class=\"lh-120 ml-md-2\"><i class=\"fas fa-map-marker-alt mr-1 pr-1\"></i>{{bfedition.location}}</span>
</div>
{%if is_granted('option_inscription', bfedition)%}
<nav class=\"row mt-4\">
<div class=\"nav col nav-tabs flex-column flex-md-row border-light mb-3\" id=\"nav-tab\" role=\"tablist\">
<a class=\"nav-item nav-link active grey\" id=\"nav-about-tab\" data-toggle=\"tab\" href=\"#nav-about\" role=\"tab\" aria-controls=\"nav-about\" aria-selected=\"true\"><i class=\"far fa-address-card mr-2\"></i>A propos</a>
<a class=\"nav-item nav-link greay\" id=\"nav-video-tab\" data-toggle=\"tab\" href=\"#nav-video\" role=\"tab\" aria-controls=\"nav-video\" aria-selected=\"false\"><i class=\"fas fa-signature mr-2\"></i>Inscriptions</a>
</div>
</nav>
<div class=\"tab-content mb-3\" id=\"nav-tabContent\">
<div class=\"tab-pane fade show active \" id=\"nav-about\" role=\"tabpanel\" aria-labelledby=\"nav-about-tab\">
{%include('editions/editionabout.html.twig')%}
</div>
<div class=\"tab-pane fade\" id=\"nav-video\" role=\"tabpanel\" aria-labelledby=\"nav-video-tab\">
{%include('editions/editioninscription.html.twig')%}
</div>
</div>
{%else%}
{%include('editions/editionabout.html.twig')%}
{%endif%}
</div>
</div>
</div>
<aside class=\"col-12 col-lg-4\">
{%if is_granted('canpay', bfedition.festival) and is_granted('option_payment', bfedition.festival) %}
{{ render(controller('App\\\\Controller\\\\BFProductEditionController::ShowBFProductEditionForEditionDetail', {idedition:bfedition.id} )) }}
{%endif%}
<div class=\"card border-light p-3\">
<h5 class=\"font-weight-normal mb-3\">Demande d'informations</h5>
{{form(formaskmail)}}
</div>
<div class=\"card border-light mt-4 p-3\">
<h5 class=\"font-weight-normal\">Contact</h5>
<div class=\"my-3\">
{%if bfedition.description.displayedcontactnumber != null %}
<div><i class=\"fas fa-phone mr-2\"></i>{{bfedition.description.displayedcontactnumber}} </div>
{%endif%}
{%if bfedition.description.displayedcontactmail != null %}
<div>
<i class=\"fas fa-envelope mr-2\"></i>{{bfedition.description.displayedcontactmail}}
</div>
{%endif%}
</div>
</div>
</aside>
</div>
</div>
</div>
</main>
<!-- Recaptcha -->
<script src=\"https://www.google.com/recaptcha/api.js?render=6Le2aesUAAAAAG4fDNIF_lqShoh6-PvS2lHexW2K\"></script>
<script src=\"{{ asset('/assets/js/recaptcha.js') }}\"></script>
{%endblock%}
", "homeeditiondetails.html.twig", "/home/maixmebouz/www/dev/bridgefestival/templates/homeeditiondetails.html.twig");
}
}