var/cache/dev/twig/4f/4fc693132344fdd37d51255fb2ec5b2e.php line 259

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. /* homeeditiondetails.html.twig */
  14. class __TwigTemplate_6ab2203dab0dab4a047195ff24181c38 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.             'facebook' => [$this'block_facebook'],
  24.             'twitter' => [$this'block_twitter'],
  25.             'title' => [$this'block_title'],
  26.             'headersection' => [$this'block_headersection'],
  27.             'body' => [$this'block_body'],
  28.         ];
  29.     }
  30.     protected function doGetParent(array $context)
  31.     {
  32.         // line 1
  33.         return "base.html.twig";
  34.     }
  35.     protected function doDisplay(array $context, array $blocks = [])
  36.     {
  37.         $macros $this->macros;
  38.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  39.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""homeeditiondetails.html.twig"));
  40.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  41.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""homeeditiondetails.html.twig"));
  42.         $this->parent $this->loadTemplate("base.html.twig""homeeditiondetails.html.twig"1);
  43.         $this->parent->display($contextarray_merge($this->blocks$blocks));
  44.         
  45.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  46.         
  47.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  48.     }
  49.     // line 3
  50.     public function block_facebook($context, array $blocks = [])
  51.     {
  52.         $macros $this->macros;
  53.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  54.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""facebook"));
  55.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  56.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""facebook"));
  57.         // line 4
  58.         echo "<meta property=\"og:type\" content=\"website\">
  59. <meta property=\"og:url\" content=\"https://bridgefestival.fr\">
  60. <meta property=\"og:title\" content=\"";
  61.         // line 6
  62.         echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_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"falsefalsefalse6), "name", [], "any"falsefalsefalse6), "html"nulltrue);
  63.         echo " - ";
  64.         echo twig_escape_filter($this->envtwig_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"falsefalsefalse6), "html"nulltrue);
  65.         echo "\">
  66. <meta property=\"og:description\" content=\"Bridge Festival - Le guide des tournois et festivals de bridge\">
  67. ";
  68.         // line 8
  69.         if ((twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_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"falsefalsefalse8), "description", [], "any"falsefalsefalse8), "image1", [], "any"falsefalsefalse8) != null)) {
  70.             // line 9
  71.             echo "<meta property=\"og:image\" content=\"";
  72.             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->sourcetwig_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"falsefalsefalse9), "description", [], "any"falsefalsefalse9), "image1File")), "html"nulltrue);
  73.             echo "\">
  74. ";
  75.         } else {
  76.             // line 11
  77.             echo "<meta property=\"og:image\" content=\"";
  78.             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"nulltrue);
  79.             echo "\">
  80. ";
  81.         }
  82.         
  83.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  84.         
  85.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  86.     }
  87.     // line 15
  88.     public function block_twitter($context, array $blocks = [])
  89.     {
  90.         $macros $this->macros;
  91.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  92.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""twitter"));
  93.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  94.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""twitter"));
  95.         // line 16
  96.         echo "<meta property=\"twitter:card\" content=\"summary_large_image\">
  97. <meta property=\"twitter:url\" content=\"https://bridgefestival.fr\">
  98. <meta property=\"twitter:title\" content=\"";
  99.         // line 18
  100.         echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_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"falsefalsefalse18), "name", [], "any"falsefalsefalse18), "html"nulltrue);
  101.         echo " - ";
  102.         echo twig_escape_filter($this->envtwig_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"falsefalsefalse18), "html"nulltrue);
  103.         echo "\">
  104. <meta property=\"twitter:description\" content=\"Bridge Festival - Le guide des tournois et festivals de bridge\">
  105. ";
  106.         // line 20
  107.         if ((twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_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"falsefalsefalse20), "description", [], "any"falsefalsefalse20), "image1", [], "any"falsefalsefalse20) != null)) {
  108.             // line 21
  109.             echo "<meta property=\"twitter:image\" content=\"";
  110.             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->sourcetwig_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"falsefalsefalse21), "description", [], "any"falsefalsefalse21), "image1File")), "html"nulltrue);
  111.             echo "\">
  112. ";
  113.         } else {
  114.             // line 23
  115.             echo "<meta property=\"twitter:image\" content=\"";
  116.             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"nulltrue);
  117.             echo "\">
  118. ";
  119.         }
  120.         
  121.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  122.         
  123.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  124.     }
  125.     // line 27
  126.     public function block_title($context, array $blocks = [])
  127.     {
  128.         $macros $this->macros;
  129.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  130.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""title"));
  131.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  132.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""title"));
  133.         echo "- ";
  134.         echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_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"falsefalsefalse27), "name", [], "any"falsefalsefalse27), "html"nulltrue);
  135.         echo ": ";
  136.         echo twig_escape_filter($this->envtwig_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"falsefalsefalse27), "html"nulltrue);
  137.         echo " ";
  138.         
  139.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  140.         
  141.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  142.     }
  143.     // line 29
  144.     public function block_headersection($context, array $blocks = [])
  145.     {
  146.         $macros $this->macros;
  147.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  148.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""headersection"));
  149.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  150.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""headersection"));
  151.         // line 30
  152.         if ((twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_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"falsefalsefalse30), "description", [], "any"falsefalsefalse30), "image1", [], "any"falsefalsefalse30) != null)) {
  153.             // line 31
  154.             echo "<section class=\"section section-header section-image bg-primary overlay-primary text-white overflow-hidden pb-6 covernorepeat\" data-background=\"";
  155.             echo twig_escape_filter($this->env$this->env->getRuntime('Vich\UploaderBundle\Twig\Extension\UploaderExtensionRuntime')->asset(twig_get_attribute($this->env$this->sourcetwig_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"falsefalsefalse31), "description", [], "any"falsefalsefalse31), "image1File"), "html"nulltrue);
  156.             echo "\">
  157.     ";
  158.         } else {
  159.             // line 33
  160.             echo "    <section class=\"section section-header section-image bg-primary overlay-primary text-white overflow-hidden pb-6 covernorepeat\" data-background=\"";
  161.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/img/cards-3662554_1920.jpg"), "html"nulltrue);
  162.             echo "\">
  163.         ";
  164.         }
  165.         // line 35
  166.         echo "        <div class=\"container\">
  167.             <div class=\"row justify-content-center\">
  168.                 <div class=\"col-12 text-center pt-3\">
  169.                     <nav aria-label=\"breadcrumb\">
  170.                         <ol class=\"breadcrumb breadcrumb-transparent justify-content-center mb-4\">
  171.                             <li class=\"breadcrumb-item\"><a href=\"";
  172.         // line 40
  173.         echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("home", [], false);
  174.         echo "\">Accueil</a></li>
  175.                             <li class=\"breadcrumb-item active\"> <a href=\"";
  176.         // line 41
  177.         echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("home_route", ["routename" => "search"], false);
  178.         echo "\">Festivals</a></li>
  179.                         </ol>
  180.                     </nav>
  181.                     <!-- Heading -->
  182.                     <h1 class=\"display-2\">
  183.                         ";
  184.         // line 46
  185.         echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_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"falsefalsefalse46), "name", [], "any"falsefalsefalse46), "html"nulltrue);
  186.         echo "
  187.                     </h1>
  188.                     <h5>
  189.                         ";
  190.         // line 49
  191.         if (((twig_get_attribute($this->env$this->sourcetwig_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"falsefalsefalse49), "website", [], "any"falsefalsefalse49) != 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); })())))) {
  192.             // line 50
  193.             echo "                        <a href=\"";
  194.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_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"falsefalsefalse50), "website", [], "any"falsefalsefalse50), "html"nulltrue);
  195.             echo "\" target=\"_blank\" class=\"font-weight-bold primary mb-0 mr-1\">
  196.                             <i class=\"fas fa-globe mr-2\"></i>";
  197.             // line 51
  198.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_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"falsefalsefalse51), "website", [], "any"falsefalsefalse51), "html"nulltrue);
  199.             echo "
  200.                         </a>
  201.                         ";
  202.         }
  203.         // line 54
  204.         echo "                    </h5>
  205.                     <!-- Text -->
  206.                     <p class=\"lead text-muted mt-4\">
  207.                         ";
  208.         // line 57
  209.         echo twig_nl2br(twig_escape_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_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"falsefalsefalse57), "description", [], "any"falsefalsefalse57), "longdescription", [], "any"falsefalsefalse57), "html"nulltrue));
  210.         echo "
  211.                     </p>
  212.                     ";
  213.         // line 59
  214.         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');
  215.         echo "
  216.                 </div>
  217.             </div>
  218.         </div>
  219.     </section>
  220.     ";
  221.         
  222.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  223.         
  224.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  225.     }
  226.     // line 66
  227.     public function block_body($context, array $blocks = [])
  228.     {
  229.         $macros $this->macros;
  230.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  231.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""body"));
  232.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  233.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""body"));
  234.         // line 67
  235.         echo "    <main>
  236.         <div class=\"section pt-5 pt-lg-6\">
  237.             <div class=\"container\">
  238.                 ";
  239.         // line 70
  240.         echo twig_include($this->env$context"flashmessages/flashmessages.html.twig");
  241.         echo "
  242.             </div>
  243.             <div class=\"container\">
  244.                 <div class=\"row\">
  245.                     <div class=\"col\">
  246.                         <div class=\"tab-content mb-3\">
  247.                             <div class=\"card\" aria-labelledby=\"nav-about-tab\">
  248.                                 <h2 class=\"font-weight-normal\">";
  249.         // line 78
  250.         echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_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"falsefalsefalse78), "name", [], "any"falsefalsefalse78), "html"nulltrue);
  251.         echo " - ";
  252.         echo twig_escape_filter($this->envtwig_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"falsefalsefalse78), "html"nulltrue);
  253.         echo "
  254.                                 </h2>
  255.                                 <div class=\"d-block d-md-flex\">
  256.                                     ";
  257.         // line 82
  258.         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"falsefalsefalse82) == true)) {
  259.             // line 83
  260.             echo "                                    ";
  261.             $context['_parent'] = $context;
  262.             $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"falsefalsefalse83));
  263.             foreach ($context['_seq'] as $context["_key"] => $context["bfchallengeedition"]) {
  264.                 // line 84
  265.                 echo "                                    <a href=\"";
  266.                 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"falsefalsefalse84)], false), "html"nulltrue);
  267.                 echo "\">
  268.                                         <span class=\"badge badge-primary mr-2\" style=\"background-color:";
  269.                 // line 85
  270.                 echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["bfchallengeedition"], "description", [], "any"falsefalsefalse85), "labelcolor", [], "any"falsefalsefalse85), "html"nulltrue);
  271.                 echo "\">
  272.                                             <span class=\"font-weight-normal font-xs\">";
  273.                 // line 86
  274.                 echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["bfchallengeedition"], "description", [], "any"falsefalsefalse86), "labeltext", [], "any"falsefalsefalse86), "html"nulltrue);
  275.                 echo "</span>
  276.                                         </span>
  277.                                     </a>
  278.                                     ";
  279.             }
  280.             $_parent $context['_parent'];
  281.             unset($context['_seq'], $context['_iterated'], $context['_key'], $context['bfchallengeedition'], $context['_parent'], $context['loop']);
  282.             $context array_intersect_key($context$_parent) + $_parent;
  283.             // line 90
  284.             echo "                                    ";
  285.         }
  286.         // line 91
  287.         echo "                                </div>
  288.                                 <div class=\"d-block d-md-flex\">
  289.                                     <span class=\"lh-120 ml-md-2 mt-2 mb-2\"><i class=\"far fa-calendar-alt  mr-1 pr-1\"></i>";
  290.         // line 93
  291.         echo twig_escape_filter($this->envtwig_date_format_filter($this->envtwig_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"falsefalsefalse93), "d/m/Y"), "html"nulltrue);
  292.         echo " - ";
  293.         echo twig_escape_filter($this->envtwig_date_format_filter($this->envtwig_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"falsefalsefalse93), "d/m/Y"), "html"nulltrue);
  294.         echo "</span>
  295.                                 </div>
  296.                                 <div class=\"d-block d-md-flex\">
  297.                                     <span class=\"lh-120 ml-md-2\"><i class=\"fas fa-map-marker-alt mr-1 pr-1\"></i>";
  298.         // line 96
  299.         echo twig_escape_filter($this->envtwig_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"falsefalsefalse96), "html"nulltrue);
  300.         echo "</span>
  301.                                 </div>
  302.                                 ";
  303.         // line 98
  304.         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); })()))) {
  305.             // line 99
  306.             echo "                                <nav class=\"row mt-4\">
  307.                                     <div class=\"nav col nav-tabs flex-column flex-md-row border-light mb-3\" id=\"nav-tab\" role=\"tablist\">
  308.                                         <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>
  309.                                         <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>
  310.                                     </div>
  311.                                 </nav>
  312.                                 <div class=\"tab-content mb-3\" id=\"nav-tabContent\">
  313.                                     <div class=\"tab-pane fade show active \" id=\"nav-about\" role=\"tabpanel\" aria-labelledby=\"nav-about-tab\">
  314.                                         ";
  315.             // line 107
  316.             $this->loadTemplate("editions/editionabout.html.twig""homeeditiondetails.html.twig"107)->display($context);
  317.             // line 108
  318.             echo "                                    </div>
  319.                                     <div class=\"tab-pane fade\" id=\"nav-video\" role=\"tabpanel\" aria-labelledby=\"nav-video-tab\">
  320.                                         ";
  321.             // line 110
  322.             $this->loadTemplate("editions/editioninscription.html.twig""homeeditiondetails.html.twig"110)->display($context);
  323.             // line 111
  324.             echo "                                    </div>
  325.                                 </div>
  326.                                 ";
  327.         } else {
  328.             // line 114
  329.             echo "                                ";
  330.             $this->loadTemplate("editions/editionabout.html.twig""homeeditiondetails.html.twig"114)->display($context);
  331.             // line 115
  332.             echo "                                ";
  333.         }
  334.         // line 116
  335.         echo "                            </div>
  336.                         </div>
  337.                     </div>
  338.                     <aside class=\"col-12 col-lg-4\">
  339.                         ";
  340.         // line 120
  341.         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"falsefalsefalse120)) && $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"falsefalsefalse120)))) {
  342.             // line 121
  343.             echo "                        ";
  344.             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"falsefalsefalse121)]));
  345.             echo "
  346.                         ";
  347.         }
  348.         // line 123
  349.         echo "                        <div class=\"card border-light p-3\">
  350.                             <h5 class=\"font-weight-normal mb-3\">Demande d'informations</h5>
  351.                             ";
  352.         // line 125
  353.         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');
  354.         echo "
  355.                         </div>
  356.                         <div class=\"card border-light mt-4 p-3\">
  357.                             <h5 class=\"font-weight-normal\">Contact</h5>
  358.                             <div class=\"my-3\">
  359.                                 ";
  360.         // line 130
  361.         if ((twig_get_attribute($this->env$this->sourcetwig_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"falsefalsefalse130), "displayedcontactnumber", [], "any"falsefalsefalse130) != null)) {
  362.             // line 131
  363.             echo "                                <div><i class=\"fas fa-phone mr-2\"></i>";
  364.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_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"falsefalsefalse131), "displayedcontactnumber", [], "any"falsefalsefalse131), "html"nulltrue);
  365.             echo " </div>
  366.                                 ";
  367.         }
  368.         // line 133
  369.         echo "                                ";
  370.         if ((twig_get_attribute($this->env$this->sourcetwig_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"falsefalsefalse133), "displayedcontactmail", [], "any"falsefalsefalse133) != null)) {
  371.             // line 134
  372.             echo "                                <div>
  373.                                     <i class=\"fas fa-envelope mr-2\"></i>";
  374.             // line 135
  375.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_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"falsefalsefalse135), "displayedcontactmail", [], "any"falsefalsefalse135), "html"nulltrue);
  376.             echo "
  377.                                 </div>
  378.                                 ";
  379.         }
  380.         // line 138
  381.         echo "                            </div>
  382.                         </div>
  383.                     </aside>
  384.                 </div>
  385.             </div>
  386.         </div>
  387.     </main>
  388.     <!-- Recaptcha -->
  389.     <script src=\"https://www.google.com/recaptcha/api.js?render=6Le2aesUAAAAAG4fDNIF_lqShoh6-PvS2lHexW2K\"></script>
  390.     <script src=\"";
  391.         // line 148
  392.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("/assets/js/recaptcha.js"), "html"nulltrue);
  393.         echo "\"></script>
  394.     ";
  395.         
  396.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  397.         
  398.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  399.     }
  400.     public function getTemplateName()
  401.     {
  402.         return "homeeditiondetails.html.twig";
  403.     }
  404.     public function isTraitable()
  405.     {
  406.         return false;
  407.     }
  408.     public function getDebugInfo()
  409.     {
  410.         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,);
  411.     }
  412.     public function getSourceContext()
  413.     {
  414.         return new Source("{% extends 'base.html.twig' %}
  415. {%block facebook%}
  416. <meta property=\"og:type\" content=\"website\">
  417. <meta property=\"og:url\" content=\"https://bridgefestival.fr\">
  418. <meta property=\"og:title\" content=\"{{bfedition.festival.name}} - {{bfedition.name}}\">
  419. <meta property=\"og:description\" content=\"Bridge Festival - Le guide des tournois et festivals de bridge\">
  420. {%if bfedition.festival.description.image1 != null%}
  421. <meta property=\"og:image\" content=\"{{ absolute_url(vich_uploader_asset(bfedition.festival.description, 'image1File')) }}\">
  422. {%else%}
  423. <meta property=\"og:image\" content=\"{{ absolute_url(asset('assets/img/cards-3662554_1920.jpg')) }}\">
  424. {%endif%}
  425. {%endblock%}
  426. {%block twitter %}
  427. <meta property=\"twitter:card\" content=\"summary_large_image\">
  428. <meta property=\"twitter:url\" content=\"https://bridgefestival.fr\">
  429. <meta property=\"twitter:title\" content=\"{{bfedition.festival.name}} - {{bfedition.name}}\">
  430. <meta property=\"twitter:description\" content=\"Bridge Festival - Le guide des tournois et festivals de bridge\">
  431. {%if bfedition.festival.description.image1 != null%}
  432. <meta property=\"twitter:image\" content=\"{{ absolute_url(vich_uploader_asset(bfedition.festival.description, 'image1File')) }}\">
  433. {%else%}
  434. <meta property=\"twitter:image\" content=\"{{ absolute_url(asset('assets/img/cards-3662554_1920.jpg')) }}\">
  435. {%endif%}
  436. {%endblock%}
  437. {% block title %}- {{bfedition.festival.name}}: {{bfedition.name}} {% endblock %}
  438. {% block headersection %}
  439. {%if bfedition.festival.description.image1 != null%}
  440. <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') }}\">
  441.     {%else%}
  442.     <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') }}\">
  443.         {%endif%}
  444.         <div class=\"container\">
  445.             <div class=\"row justify-content-center\">
  446.                 <div class=\"col-12 text-center pt-3\">
  447.                     <nav aria-label=\"breadcrumb\">
  448.                         <ol class=\"breadcrumb breadcrumb-transparent justify-content-center mb-4\">
  449.                             <li class=\"breadcrumb-item\"><a href=\"{{ path('home', {}, relative = false) }}\">Accueil</a></li>
  450.                             <li class=\"breadcrumb-item active\"> <a href=\"{{ path('home_route', {'routename':'search'}, relative = false) }}\">Festivals</a></li>
  451.                         </ol>
  452.                     </nav>
  453.                     <!-- Heading -->
  454.                     <h1 class=\"display-2\">
  455.                         {{bfedition.festival.name}}
  456.                     </h1>
  457.                     <h5>
  458.                         {%if bfedition.description.website != null and is_granted('option_website', bfedition)%}
  459.                         <a href=\"{{bfedition.description.website}}\" target=\"_blank\" class=\"font-weight-bold primary mb-0 mr-1\">
  460.                             <i class=\"fas fa-globe mr-2\"></i>{{bfedition.description.website}}
  461.                         </a>
  462.                         {%endif%}
  463.                     </h5>
  464.                     <!-- Text -->
  465.                     <p class=\"lead text-muted mt-4\">
  466.                         {{bfedition.festival.description.longdescription|nl2br}}
  467.                     </p>
  468.                     {{form(formsubscription)}}
  469.                 </div>
  470.             </div>
  471.         </div>
  472.     </section>
  473.     {%endblock%}
  474.     {%block body%}
  475.     <main>
  476.         <div class=\"section pt-5 pt-lg-6\">
  477.             <div class=\"container\">
  478.                 {{ include('flashmessages/flashmessages.html.twig') }}
  479.             </div>
  480.             <div class=\"container\">
  481.                 <div class=\"row\">
  482.                     <div class=\"col\">
  483.                         <div class=\"tab-content mb-3\">
  484.                             <div class=\"card\" aria-labelledby=\"nav-about-tab\">
  485.                                 <h2 class=\"font-weight-normal\">{{bfedition.festival.name}} - {{bfedition.name}}
  486.                                 </h2>
  487.                                 <div class=\"d-block d-md-flex\">
  488.                                     {%if bfedition.haschallengeeditionsactive==true %}
  489.                                     {% for bfchallengeedition in bfedition.challengeeditionsactive %}
  490.                                     <a href=\"{{ path('challenge_view', {'idedition':bfchallengeedition.id}, relative = false) }}\">
  491.                                         <span class=\"badge badge-primary mr-2\" style=\"background-color:{{bfchallengeedition.description.labelcolor}}\">
  492.                                             <span class=\"font-weight-normal font-xs\">{{bfchallengeedition.description.labeltext}}</span>
  493.                                         </span>
  494.                                     </a>
  495.                                     {%endfor%}
  496.                                     {%endif%}
  497.                                 </div>
  498.                                 <div class=\"d-block d-md-flex\">
  499.                                     <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>
  500.                                 </div>
  501.                                 <div class=\"d-block d-md-flex\">
  502.                                     <span class=\"lh-120 ml-md-2\"><i class=\"fas fa-map-marker-alt mr-1 pr-1\"></i>{{bfedition.location}}</span>
  503.                                 </div>
  504.                                 {%if is_granted('option_inscription', bfedition)%}
  505.                                 <nav class=\"row mt-4\">
  506.                                     <div class=\"nav col nav-tabs flex-column flex-md-row border-light mb-3\" id=\"nav-tab\" role=\"tablist\">
  507.                                         <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>
  508.                                         <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>
  509.                                     </div>
  510.                                 </nav>
  511.                                 <div class=\"tab-content mb-3\" id=\"nav-tabContent\">
  512.                                     <div class=\"tab-pane fade show active \" id=\"nav-about\" role=\"tabpanel\" aria-labelledby=\"nav-about-tab\">
  513.                                         {%include('editions/editionabout.html.twig')%}
  514.                                     </div>
  515.                                     <div class=\"tab-pane fade\" id=\"nav-video\" role=\"tabpanel\" aria-labelledby=\"nav-video-tab\">
  516.                                         {%include('editions/editioninscription.html.twig')%}
  517.                                     </div>
  518.                                 </div>
  519.                                 {%else%}
  520.                                 {%include('editions/editionabout.html.twig')%}
  521.                                 {%endif%}
  522.                             </div>
  523.                         </div>
  524.                     </div>
  525.                     <aside class=\"col-12 col-lg-4\">
  526.                         {%if is_granted('canpay', bfedition.festival) and is_granted('option_payment', bfedition.festival) %}
  527.                         {{ render(controller('App\\\\Controller\\\\BFProductEditionController::ShowBFProductEditionForEditionDetail', {idedition:bfedition.id}  )) }}
  528.                         {%endif%}
  529.                         <div class=\"card border-light p-3\">
  530.                             <h5 class=\"font-weight-normal mb-3\">Demande d'informations</h5>
  531.                             {{form(formaskmail)}}
  532.                         </div>
  533.                         <div class=\"card border-light mt-4 p-3\">
  534.                             <h5 class=\"font-weight-normal\">Contact</h5>
  535.                             <div class=\"my-3\">
  536.                                 {%if bfedition.description.displayedcontactnumber != null %}
  537.                                 <div><i class=\"fas fa-phone mr-2\"></i>{{bfedition.description.displayedcontactnumber}} </div>
  538.                                 {%endif%}
  539.                                 {%if bfedition.description.displayedcontactmail != null %}
  540.                                 <div>
  541.                                     <i class=\"fas fa-envelope mr-2\"></i>{{bfedition.description.displayedcontactmail}}
  542.                                 </div>
  543.                                 {%endif%}
  544.                             </div>
  545.                         </div>
  546.                     </aside>
  547.                 </div>
  548.             </div>
  549.         </div>
  550.     </main>
  551.     <!-- Recaptcha -->
  552.     <script src=\"https://www.google.com/recaptcha/api.js?render=6Le2aesUAAAAAG4fDNIF_lqShoh6-PvS2lHexW2K\"></script>
  553.     <script src=\"{{ asset('/assets/js/recaptcha.js') }}\"></script>
  554.     {%endblock%}
  555. ""homeeditiondetails.html.twig""/home/maixmebouz/www/dev/bridgefestival/templates/homeeditiondetails.html.twig");
  556.     }
  557. }