var/cache/dev/twig/b1/b142b6e240962c680130bbcfd8d4e7cc.php line 42

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. /* homechallenge.html.twig */
  14. class __TwigTemplate_a1d7ae6c851b821a3a511946a1d969c3 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 26
  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""homechallenge.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""homechallenge.html.twig"));
  42.         $this->parent $this->loadTemplate("base.html.twig""homechallenge.html.twig"26);
  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 4
  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 5
  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 7
  62.         echo twig_escape_filter($this->envtwig_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"falsefalsefalse7), "html"nulltrue);
  63.         echo " - ";
  64.         echo twig_escape_filter($this->envtwig_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"falsefalsefalse7), "html"nulltrue);
  65.         echo "\">
  66. <meta property=\"og:description\" content=\"Bridge Festival - Le guide des tournois et festivals de bridge\">
  67. ";
  68.         // line 9
  69.         if ((twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_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"falsefalsefalse9), "description", [], "any"falsefalsefalse9), "image1", [], "any"falsefalsefalse9) != null)) {
  70.             // line 10
  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["bfchallengeedition"]) || array_key_exists("bfchallengeedition"$context) ? $context["bfchallengeedition"] : (function () { throw new RuntimeError('Variable "bfchallengeedition" does not exist.'10$this->source); })()), "challenge", [], "any"falsefalsefalse10), "description", [], "any"falsefalsefalse10), "image1File")), "html"nulltrue);
  73.             echo "\">
  74. ";
  75.         } else {
  76.             // line 12
  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 16
  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 17
  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 19
  100.         echo twig_escape_filter($this->envtwig_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"falsefalsefalse19), "html"nulltrue);
  101.         echo " - ";
  102.         echo twig_escape_filter($this->envtwig_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"falsefalsefalse19), "html"nulltrue);
  103.         echo "\">
  104. <meta property=\"twitter:description\" content=\"Bridge Festival - Le guide des tournois et festivals de bridge\">
  105. ";
  106.         // line 21
  107.         if ((twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_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"falsefalsefalse21), "description", [], "any"falsefalsefalse21), "image1", [], "any"falsefalsefalse21) != null)) {
  108.             // line 22
  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["bfchallengeedition"]) || array_key_exists("bfchallengeedition"$context) ? $context["bfchallengeedition"] : (function () { throw new RuntimeError('Variable "bfchallengeedition" does not exist.'22$this->source); })()), "challenge", [], "any"falsefalsefalse22), "description", [], "any"falsefalsefalse22), "image1File")), "html"nulltrue);
  111.             echo "\">
  112. ";
  113.         } else {
  114.             // line 24
  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 28
  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["bfchallengeedition"]) || array_key_exists("bfchallengeedition"$context) ? $context["bfchallengeedition"] : (function () { throw new RuntimeError('Variable "bfchallengeedition" does not exist.'28$this->source); })()), "challenge", [], "any"falsefalsefalse28), "name", [], "any"falsefalsefalse28), "html"nulltrue);
  135.         echo " : ";
  136.         echo twig_escape_filter($this->envtwig_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"falsefalsefalse28), "html"nulltrue);
  137.         echo " ";
  138.         
  139.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  140.         
  141.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  142.     }
  143.     // line 30
  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 31
  152.         echo "<div class=\"fixed-top\">
  153.     ";
  154.         // line 32
  155.         echo twig_include($this->env$context"flashmessages/flashmessages.html.twig");
  156.         echo "
  157. </div>
  158. ";
  159.         // line 34
  160.         if ((twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_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"falsefalsefalse34), "description", [], "any"falsefalsefalse34), "image1", [], "any"falsefalsefalse34) != null)) {
  161.             // line 35
  162.             echo "<section class=\"section section-header section-image bg-primary overlay-primary text-white overflow-hidden pb-6 covernorepeat\" data-background=\"";
  163.             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["bfchallengeedition"]) || array_key_exists("bfchallengeedition"$context) ? $context["bfchallengeedition"] : (function () { throw new RuntimeError('Variable "bfchallengeedition" does not exist.'35$this->source); })()), "challenge", [], "any"falsefalsefalse35), "description", [], "any"falsefalsefalse35), "image1File"), "html"nulltrue);
  164.             echo "\">
  165.     ";
  166.         } else {
  167.             // line 37
  168.             echo "    <section class=\"section section-header section-image bg-primary overlay-primary text-white overflow-hidden pb-6 covernorepeat\" data-background=\"";
  169.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/img/cards-3662554_1920.jpg"), "html"nulltrue);
  170.             echo "\">
  171.         ";
  172.         }
  173.         // line 39
  174.         echo "        <div class=\"container\">
  175.             <div class=\"row justify-content-center\">
  176.                 <div class=\"col-12 text-center pt-3\">
  177.                     <nav aria-label=\"breadcrumb\">
  178.                         <ol class=\"breadcrumb breadcrumb-transparent justify-content-center mb-4\">
  179.                             <li class=\"breadcrumb-item\"><a href=\"";
  180.         // line 44
  181.         echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("home", [], false);
  182.         echo "\">Accueil</a></li>
  183.                             <li class=\"breadcrumb-item active\">Challenges</li>
  184.                         </ol>
  185.                     </nav>
  186.                     <!-- Heading -->
  187.                     <h1 class=\"display-2\">
  188.                         ";
  189.         // line 50
  190.         echo twig_escape_filter($this->envtwig_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"falsefalsefalse50), "html"nulltrue);
  191.         echo "
  192.                     </h1>
  193.                     <p class=\"lead text-muted mt-4\">
  194.                         ";
  195.         // line 53
  196.         echo twig_nl2br(twig_escape_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_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"falsefalsefalse53), "longdescription", [], "any"falsefalsefalse53), "html"nulltrue));
  197.         echo "
  198.                     </p>
  199.                     ";
  200.         // line 55
  201.         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');
  202.         echo "
  203.                 </div>
  204.             </div>
  205.         </div>
  206.     </section>
  207.     ";
  208.         
  209.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  210.         
  211.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  212.     }
  213.     // line 62
  214.     public function block_body($context, array $blocks = [])
  215.     {
  216.         $macros $this->macros;
  217.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  218.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""body"));
  219.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  220.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""body"));
  221.         // line 63
  222.         echo "    <main>
  223.         <div class=\"section pt-5 pt-lg-6\" style=\"min-height: 50vh;\">
  224.             <div id=\"spaces-container\" class=\"container\">
  225.                 <div class=\"row justify-content-center\">
  226.                     <div class=\"col-12 col-lg-9 order-lg-1\">
  227.                         <div class=\"card\" aria-labelledby=\"nav-about-tab\">
  228.                             <h2 class=\"font-weight-normal mb-0 pb-0\">";
  229.         // line 69
  230.         echo twig_escape_filter($this->envtwig_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"falsefalsefalse69), "html"nulltrue);
  231.         echo "</h2>
  232.                             ";
  233.         // line 70
  234.         if ((twig_get_attribute($this->env$this->sourcetwig_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"falsefalsefalse70), "website", [], "any"falsefalsefalse70) != null)) {
  235.             // line 71
  236.             echo "                            <p class=\"mt-0 mb-0 pt-0 pb-0\">
  237.                                 <a href=\"";
  238.             // line 72
  239.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_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"falsefalsefalse72), "website", [], "any"falsefalsefalse72), "html"nulltrue);
  240.             echo "\" target=\"_blank\">";
  241.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_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"falsefalsefalse72), "website", [], "any"falsefalsefalse72), "html"nulltrue);
  242.             echo "</a>
  243.                             </p>
  244.                             ";
  245.         }
  246.         // line 75
  247.         echo "                            <p class=\"mt-1\">
  248.                                 ";
  249.         // line 76
  250.         echo twig_nl2br(twig_escape_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_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"falsefalsefalse76), "longdescription", [], "any"falsefalsefalse76), "html"nulltrue));
  251.         echo "
  252.                             </p>
  253.                             <p class=\"mt-1\">
  254.                                 ";
  255.         // line 79
  256.         if ((twig_get_attribute($this->env$this->sourcetwig_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"falsefalsefalse79), "poster", [], "any"falsefalsefalse79) != null)) {
  257.             // line 80
  258.             echo "                                <a href=\"";
  259.             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"falsefalsefalse80), "posterFile"), "html"nulltrue);
  260.             echo "\" target=\"_blank\" class=\"font-weight-bold primary mb-0 mr-1\">
  261.                                     <i class=\"far fa-file mr-2\"></i>Affiche
  262.                                 </a> <br />
  263.                                 ";
  264.         }
  265.         // line 84
  266.         echo "                                ";
  267.         if ((twig_get_attribute($this->env$this->sourcetwig_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"falsefalsefalse84), "ranking", [], "any"falsefalsefalse84) != null)) {
  268.             // line 85
  269.             echo "                                <a href=\"";
  270.             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"falsefalsefalse85), "rankingFile"), "html"nulltrue);
  271.             echo "\" target=\"_blank\" class=\"font-weight-bold primary mb-0 mr-1\">
  272.                                     <i class=\"far fa-file mr-2\"></i>Classement
  273.                                 </a>
  274.                                 ";
  275.         }
  276.         // line 89
  277.         echo "                            </p>
  278.                         </div>
  279.                         <div class=\"text-right\">
  280.                             <p class=\"mb-0 font-small\">
  281.                                 Nombre de tournois : ";
  282.         // line 94
  283.         echo twig_escape_filter($this->envtwig_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"falsefalsefalse94), "html"nulltrue);
  284.         echo "
  285.                             </p>
  286.                         </div>
  287.                         <div class=\"tab-content mt-4 mt-lg-4 \" id=\"tabcontentexample-5\">
  288.                             <div class=\"tab-pane fade show active\" id=\"link-example-13\" role=\"tabpanel\" aria-labelledby=\"tab-link-example-13\">
  289.                                 ";
  290.         // line 99
  291.         $context['_parent'] = $context;
  292.         $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); })()));
  293.         foreach ($context['_seq'] as $context["_key"] => $context["bfedition"]) {
  294.             // line 100
  295.             echo "                                ";
  296.             if (((twig_get_attribute($this->env$this->source$context["bfedition"], "isactive", [], "any"falsefalsefalse100) == true) && (twig_date_converter($this->envtwig_get_attribute($this->env$this->source$context["bfedition"], "enddate", [], "any"falsefalsefalse100)) > twig_date_converter($this->env)))) {
  297.                 // line 101
  298.                 echo "                                ";
  299.                 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"falsefalsefalse101)]));
  300.                 echo "
  301.                                 ";
  302.             } else {
  303.                 // line 103
  304.                 echo "                                ";
  305.                 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"falsefalsefalse103)]));
  306.                 echo "
  307.                                 ";
  308.             }
  309.             // line 105
  310.             echo "                                ";
  311.         }
  312.         $_parent $context['_parent'];
  313.         unset($context['_seq'], $context['_iterated'], $context['_key'], $context['bfedition'], $context['_parent'], $context['loop']);
  314.         $context array_intersect_key($context$_parent) + $_parent;
  315.         // line 106
  316.         echo "                            </div>
  317.                         </div>
  318.                         ";
  319.         // line 108
  320.         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); })()));
  321.         echo "
  322.                     </div>
  323.                 </div>
  324.             </div>
  325.         </div>
  326.     </main>
  327.     ";
  328.         
  329.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  330.         
  331.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  332.     }
  333.     public function getTemplateName()
  334.     {
  335.         return "homechallenge.html.twig";
  336.     }
  337.     public function isTraitable()
  338.     {
  339.         return false;
  340.     }
  341.     public function getDebugInfo()
  342.     {
  343.         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,);
  344.     }
  345.     public function getSourceContext()
  346.     {
  347.         return new Source("
  348. {%block facebook%}
  349. <meta property=\"og:type\" content=\"website\">
  350. <meta property=\"og:url\" content=\"https://bridgefestival.fr\">
  351. <meta property=\"og:title\" content=\"{{bfchallenge.name}} - {{bfchallengeedition.name}}\">
  352. <meta property=\"og:description\" content=\"Bridge Festival - Le guide des tournois et festivals de bridge\">
  353. {%if bfchallengeedition.challenge.description.image1 != null%}
  354. <meta property=\"og:image\" content=\"{{ absolute_url(vich_uploader_asset(bfchallengeedition.challenge.description, 'image1File')) }}\">
  355. {%else%}
  356. <meta property=\"og:image\" content=\"{{ absolute_url(asset('assets/img/cards-3662554_1920.jpg')) }}\">
  357. {%endif%}
  358. {%endblock%}
  359. {%block twitter %}
  360. <meta property=\"twitter:card\" content=\"summary_large_image\">
  361. <meta property=\"twitter:url\" content=\"https://bridgefestival.fr\">
  362. <meta property=\"twitter:title\" content=\"{{bfchallenge.name}} - {{bfchallengeedition.name}}\">
  363. <meta property=\"twitter:description\" content=\"Bridge Festival - Le guide des tournois et festivals de bridge\">
  364. {%if bfchallengeedition.challenge.description.image1 != null%}
  365. <meta property=\"twitter:image\" content=\"{{ absolute_url(vich_uploader_asset(bfchallengeedition.challenge.description, 'image1File')) }}\">
  366. {%else%}
  367. <meta property=\"twitter:image\" content=\"{{ absolute_url(asset('assets/img/cards-3662554_1920.jpg')) }}\">
  368. {%endif%}
  369. {%endblock%}{% extends 'base.html.twig' %}
  370. {% block title %}- {{bfchallengeedition.challenge.name}} : {{bfchallengeedition.name}} {% endblock %}
  371. {% block headersection %}
  372. <div class=\"fixed-top\">
  373.     {{ include('flashmessages/flashmessages.html.twig') }}
  374. </div>
  375. {%if bfchallengeedition.challenge.description.image1 != null%}
  376. <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') }}\">
  377.     {%else%}
  378.     <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') }}\">
  379.         {%endif%}
  380.         <div class=\"container\">
  381.             <div class=\"row justify-content-center\">
  382.                 <div class=\"col-12 text-center pt-3\">
  383.                     <nav aria-label=\"breadcrumb\">
  384.                         <ol class=\"breadcrumb breadcrumb-transparent justify-content-center mb-4\">
  385.                             <li class=\"breadcrumb-item\"><a href=\"{{ path('home', {}, relative = false) }}\">Accueil</a></li>
  386.                             <li class=\"breadcrumb-item active\">Challenges</li>
  387.                         </ol>
  388.                     </nav>
  389.                     <!-- Heading -->
  390.                     <h1 class=\"display-2\">
  391.                         {{bfchallenge.name}}
  392.                     </h1>
  393.                     <p class=\"lead text-muted mt-4\">
  394.                         {{bfchallenge.description.longdescription|nl2br}}
  395.                     </p>
  396.                     {{form(formsubscription)}}
  397.                 </div>
  398.             </div>
  399.         </div>
  400.     </section>
  401.     {%endblock%}
  402.     {%block body%}
  403.     <main>
  404.         <div class=\"section pt-5 pt-lg-6\" style=\"min-height: 50vh;\">
  405.             <div id=\"spaces-container\" class=\"container\">
  406.                 <div class=\"row justify-content-center\">
  407.                     <div class=\"col-12 col-lg-9 order-lg-1\">
  408.                         <div class=\"card\" aria-labelledby=\"nav-about-tab\">
  409.                             <h2 class=\"font-weight-normal mb-0 pb-0\">{{bfchallengeedition.name}}</h2>
  410.                             {%if bfchallengeedition.description.website!=null%}
  411.                             <p class=\"mt-0 mb-0 pt-0 pb-0\">
  412.                                 <a href=\"{{bfchallengeedition.description.website}}\" target=\"_blank\">{{bfchallengeedition.description.website}}</a>
  413.                             </p>
  414.                             {%endif%}
  415.                             <p class=\"mt-1\">
  416.                                 {{bfchallengeedition.description.longdescription|nl2br}}
  417.                             </p>
  418.                             <p class=\"mt-1\">
  419.                                 {%if bfchallengeedition.description.poster != null%}
  420.                                 <a href=\"{{ vich_uploader_asset(bfchallengeedition.description, 'posterFile') }}\" target=\"_blank\" class=\"font-weight-bold primary mb-0 mr-1\">
  421.                                     <i class=\"far fa-file mr-2\"></i>Affiche
  422.                                 </a> <br />
  423.                                 {%endif%}
  424.                                 {%if bfchallengeedition.description.ranking != null%}
  425.                                 <a href=\"{{ vich_uploader_asset(bfchallengeedition.description, 'rankingFile') }}\" target=\"_blank\" class=\"font-weight-bold primary mb-0 mr-1\">
  426.                                     <i class=\"far fa-file mr-2\"></i>Classement
  427.                                 </a>
  428.                                 {%endif%}
  429.                             </p>
  430.                         </div>
  431.                         <div class=\"text-right\">
  432.                             <p class=\"mb-0 font-small\">
  433.                                 Nombre de tournois : {{ pagination.getTotalItemCount }}
  434.                             </p>
  435.                         </div>
  436.                         <div class=\"tab-content mt-4 mt-lg-4 \" id=\"tabcontentexample-5\">
  437.                             <div class=\"tab-pane fade show active\" id=\"link-example-13\" role=\"tabpanel\" aria-labelledby=\"tab-link-example-13\">
  438.                                 {% for bfedition in pagination %}
  439.                                 {% if bfedition.isactive==true and date(bfedition.enddate)>date() %}
  440.                                 {{ render(controller('App\\\\Controller\\\\BFEditionController::ShowListView', {id:bfedition.id})) }}
  441.                                 {%else%}
  442.                                 {{ render(controller('App\\\\Controller\\\\BFEditionController::ShowListViewInactive', {id:bfedition.id})) }}
  443.                                 {%endif%}
  444.                                 {%endfor%}
  445.                             </div>
  446.                         </div>
  447.                         {{ knp_pagination_render(pagination) }}
  448.                     </div>
  449.                 </div>
  450.             </div>
  451.         </div>
  452.     </main>
  453.     {%endblock%}
  454. ""homechallenge.html.twig""/home/maixmebouz/www/dev/bridgefestival/templates/homechallenge.html.twig");
  455.     }
  456. }