var/cache/dev/twig/ed/ed6ee8f49ebc3fd2e592d72e1b4a2165a17f1072e9fbcbe8958402327808f658.php line 397

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. /* Pages/EventsDirectusPage/page.html.twig */
  14. class __TwigTemplate_64a89592e054e910e058c5f56c3beae3bba0857c7f73509260f54cc171eb60af extends \Twig\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.             'title' => [$this'block_title'],
  24.             'content' => [$this'block_content'],
  25.         ];
  26.     }
  27.     protected function doGetParent(array $context)
  28.     {
  29.         // line 1
  30.         return "Layout/layout.html.twig";
  31.     }
  32.     protected function doDisplay(array $context, array $blocks = [])
  33.     {
  34.         $macros $this->macros;
  35.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  36.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""Pages/EventsDirectusPage/page.html.twig"));
  37.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  38.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""Pages/EventsDirectusPage/page.html.twig"));
  39.         $this->parent $this->loadTemplate("Layout/layout.html.twig""Pages/EventsDirectusPage/page.html.twig"1);
  40.         $this->parent->display($contextarray_merge($this->blocks$blocks));
  41.         
  42.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  43.         
  44.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  45.     }
  46.     // line 3
  47.     public function block_title($context, array $blocks = [])
  48.     {
  49.         $macros $this->macros;
  50.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  51.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""title"));
  52.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  53.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""title"));
  54.         // line 4
  55.         echo "    ";
  56.         echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["event"]) || array_key_exists("event"$context) ? $context["event"] : (function () { throw new RuntimeError('Variable "event" does not exist.'4$this->source); })()), "name", [], "any"falsefalsefalse4), "html"nulltrue);
  57.         echo " - ";
  58.         $this->displayParentBlock("title"$context$blocks);
  59.         echo "
  60. ";
  61.         
  62.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  63.         
  64.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  65.     }
  66.     // line 7
  67.     public function block_content($context, array $blocks = [])
  68.     {
  69.         $macros $this->macros;
  70.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  71.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""content"));
  72.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  73.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""content"));
  74.         // line 8
  75.         echo "
  76. <div class=\"events-overview events-page\">
  77.     <div class=\"hidden message__no-items\">
  78.         ";
  79.         // line 13
  80.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("events.message.no_items"), "html"nulltrue);
  81.         echo "
  82.     </div>
  83.     <div class=\"page-header\">
  84.         ";
  85.         // line 17
  86.         $context["img"] = ((twig_get_attribute($this->env$this->source, (isset($context["event"]) || array_key_exists("event"$context) ? $context["event"] : (function () { throw new RuntimeError('Variable "event" does not exist.'17$this->source); })()), "background_img_url", [], "any"falsefalsefalse17)) ? (twig_first($this->envtwig_get_attribute($this->env$this->source, (isset($context["event"]) || array_key_exists("event"$context) ? $context["event"] : (function () { throw new RuntimeError('Variable "event" does not exist.'17$this->source); })()), "background_img_url", [], "any"falsefalsefalse17))) : (null));
  87.         // line 18
  88.         echo "        ";
  89.         if ((null === (isset($context["img"]) || array_key_exists("img"$context) ? $context["img"] : (function () { throw new RuntimeError('Variable "img" does not exist.'18$this->source); })()))) {
  90.             // line 19
  91.             echo "            ";
  92.             $context["img"] = ["cropping" => null"media" => ["url" => $this->extensions['App\Twig\GcsExtension']->getDefaultArticleImage()], "mediaAlt" => "Gdyńskie Centrum Sportu"];
  93.             // line 27
  94.             echo "        ";
  95.         }
  96.         // line 28
  97.         echo "        ";
  98.         if (( !(null === (isset($context["img"]) || array_key_exists("img"$context) ? $context["img"] : (function () { throw new RuntimeError('Variable "img" does not exist.'28$this->source); })())) &&  !twig_test_empty((isset($context["img"]) || array_key_exists("img"$context) ? $context["img"] : (function () { throw new RuntimeError('Variable "img" does not exist.'28$this->source); })())))) {
  99.             // line 29
  100.             echo "            ";
  101.             $context["fullSrc"] = call_user_func_array($this->env->getFunction('croppedImgSrc')->getCallable(), [twig_get_attribute($this->env$this->source, (isset($context["event"]) || array_key_exists("event"$context) ? $context["event"] : (function () { throw new RuntimeError('Variable "event" does not exist.'29$this->source); })()), "background_img_url", [], "any"falsefalsefalse29), ["w" => 1920"q" => 80]]);
  102.             // line 30
  103.             echo "            <img class=\"lazy\"
  104.                  src=\"";
  105.             // line 31
  106.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["event"]) || array_key_exists("event"$context) ? $context["event"] : (function () { throw new RuntimeError('Variable "event" does not exist.'31$this->source); })()), "background_img_url", [], "any"falsefalsefalse31), "html"nulltrue);
  107.             echo "\"
  108.                  ";
  109.             // line 32
  110.             if (twig_get_attribute($this->env$this->source, (isset($context["event"]) || array_key_exists("event"$context) ? $context["event"] : (function () { throw new RuntimeError('Variable "event" does not exist.'32$this->source); })()), "background_img_alt", [], "any"falsefalsefalse32)) {
  111.                 echo " alt=\"";
  112.                 echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["event"]) || array_key_exists("event"$context) ? $context["event"] : (function () { throw new RuntimeError('Variable "event" does not exist.'32$this->source); })()), "background_img_alt", [], "any"falsefalsefalse32), "html"nulltrue);
  113.                 echo "\"";
  114.             }
  115.             echo " />
  116.         ";
  117.         }
  118.         // line 34
  119.         echo "    </div>
  120.     ";
  121.         // line 37
  122.         echo "    <section class=\"content\">
  123.         <nav class=\"breadcrumb\">
  124.             <a href=\"/";
  125.         // line 39
  126.         echo twig_escape_filter($this->env, (isset($context["lang"]) || array_key_exists("lang"$context) ? $context["lang"] : (function () { throw new RuntimeError('Variable "lang" does not exist.'39$this->source); })()), "html"nulltrue);
  127.         echo "\" class=\"breadcrumb__item breadcrumb__item--home\">
  128.                 Start
  129.             </a>
  130.             <i class=\"fas fa-chevron-right\"></i>
  131.             <a href=\"/";
  132.         // line 43
  133.         echo twig_escape_filter($this->env, (isset($context["lang"]) || array_key_exists("lang"$context) ? $context["lang"] : (function () { throw new RuntimeError('Variable "lang" does not exist.'43$this->source); })()), "html"nulltrue);
  134.         echo "/";
  135.         echo twig_escape_filter($this->env, (isset($context["slug"]) || array_key_exists("slug"$context) ? $context["slug"] : (function () { throw new RuntimeError('Variable "slug" does not exist.'43$this->source); })()), "html"nulltrue);
  136.         echo "\" class=\"breadcrumb__item\">
  137.                 Kalendarz
  138.             </a>
  139.             <i class=\"fas fa-chevron-right\"></i>
  140.             <span class=\"breadcrumb__item breadcrumb__item--current\">
  141.                ";
  142.         // line 48
  143.         echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["event"]) || array_key_exists("event"$context) ? $context["event"] : (function () { throw new RuntimeError('Variable "event" does not exist.'48$this->source); })()), "name", [], "any"falsefalsefalse48), "html"nulltrue);
  144.         echo "
  145.             </span>
  146.         </nav>
  147.     </section>
  148.     <div class=\"content\">
  149.     </div>
  150.     <div class=\"content row\">
  151.         <article class=\"blog-item col-lg-9\">
  152.             <header class=\"blog-item__head\">
  153.                 <h2 class=\"blog-item__head__title simple\" role=\"heading\" aria-level=\"2\">
  154.                     ";
  155.         // line 63
  156.         echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["event"]) || array_key_exists("event"$context) ? $context["event"] : (function () { throw new RuntimeError('Variable "event" does not exist.'63$this->source); })()), "name", [], "any"falsefalsefalse63), "html"nulltrue);
  157.         echo "
  158.                 </h2>
  159.                 <time class=\"blog-item__head__meta\">
  160.                     ";
  161.         // line 67
  162.         if ((twig_get_attribute($this->env$this->source, ($context["event"] ?? null), "nearestDate", [], "any"truetruefalse67) && twig_get_attribute($this->env$this->source, (isset($context["event"]) || array_key_exists("event"$context) ? $context["event"] : (function () { throw new RuntimeError('Variable "event" does not exist.'67$this->source); })()), "nearestDate", [], "any"falsefalsefalse67))) {
  163.             // line 68
  164.             echo "                        Najbliższe wydarzenie: ";
  165.             echo twig_escape_filter($this->envtwig_date_format_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["event"]) || array_key_exists("event"$context) ? $context["event"] : (function () { throw new RuntimeError('Variable "event" does not exist.'68$this->source); })()), "nearestDate", [], "any"falsefalsefalse68), "d.m.Y - H:i"), "html"nulltrue);
  166.             echo "
  167.                     ";
  168.         }
  169.         // line 70
  170.         echo "                </time>
  171.                 <div class=\"events-box__place\">
  172.                     ";
  173.         // line 73
  174.         $context['_parent'] = $context;
  175.         $context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env$this->source, (isset($context["event"]) || array_key_exists("event"$context) ? $context["event"] : (function () { throw new RuntimeError('Variable "event" does not exist.'73$this->source); })()), "places", [], "any"falsefalsefalse73));
  176.         foreach ($context['_seq'] as $context["_key"] => $context["place"]) {
  177.             // line 74
  178.             echo "                        ";
  179.             if ((twig_get_attribute($this->env$this->source$context["place"], "name", [], "any"truetruefalse74) &&  !twig_test_empty(twig_get_attribute($this->env$this->source$context["place"], "name", [], "any"falsefalsefalse74)))) {
  180.                 // line 75
  181.                 echo "                            <p>
  182.                                 ";
  183.                 // line 76
  184.                 echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["place"], "name", [], "any"falsefalsefalse76), "html"nulltrue);
  185.                 echo "
  186.                                 ";
  187.                 // line 77
  188.                 if ((twig_get_attribute($this->env$this->source$context["place"], "address", [], "any"truetruefalse77) &&  !twig_test_empty(twig_get_attribute($this->env$this->source$context["place"], "address", [], "any"falsefalsefalse77)))) {
  189.                     echo " <span class=\"events-box__address\">(";
  190.                     echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["place"], "address", [], "any"falsefalsefalse77), "html"nulltrue);
  191.                     echo ")</span>";
  192.                 }
  193.                 // line 78
  194.                 echo "                            </p>
  195.                         ";
  196.             }
  197.             // line 80
  198.             echo "                    ";
  199.         }
  200.         $_parent $context['_parent'];
  201.         unset($context['_seq'], $context['_iterated'], $context['_key'], $context['place'], $context['_parent'], $context['loop']);
  202.         $context array_intersect_key($context$_parent) + $_parent;
  203.         // line 81
  204.         echo "                </div>
  205.             </header>
  206.             ";
  207.         // line 85
  208.         if ((twig_get_attribute($this->env$this->source, ($context["page"] ?? null), "summary", [], "any"truetruefalse85) &&  !twig_test_empty(twig_get_attribute($this->env$this->source, (isset($context["page"]) || array_key_exists("page"$context) ? $context["page"] : (function () { throw new RuntimeError('Variable "page" does not exist.'85$this->source); })()), "summary", [], "any"falsefalsefalse85)))) {
  209.             echo "<p class=\"blog-item--summary\">";
  210.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["page"]) || array_key_exists("page"$context) ? $context["page"] : (function () { throw new RuntimeError('Variable "page" does not exist.'85$this->source); })()), "summary", [], "any"falsefalsefalse85), "html"nulltrue);
  211.             echo "</p>";
  212.         }
  213.         // line 86
  214.         echo "
  215.             ";
  216.         // line 87
  217.         echo twig_get_attribute($this->env$this->source, (isset($context["event"]) || array_key_exists("event"$context) ? $context["event"] : (function () { throw new RuntimeError('Variable "event" does not exist.'87$this->source); })()), "content", [], "any"falsefalsefalse87);
  218.         echo "
  219.             ";
  220.         // line 89
  221.         if ( !twig_test_empty(twig_get_attribute($this->env$this->source, (isset($context["event"]) || array_key_exists("event"$context) ? $context["event"] : (function () { throw new RuntimeError('Variable "event" does not exist.'89$this->source); })()), "buttons", [], "any"falsefalsefalse89))) {
  222.             // line 90
  223.             echo "                ";
  224.             $context['_parent'] = $context;
  225.             $context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env$this->source, (isset($context["event"]) || array_key_exists("event"$context) ? $context["event"] : (function () { throw new RuntimeError('Variable "event" does not exist.'90$this->source); })()), "buttons", [], "any"falsefalsefalse90));
  226.             foreach ($context['_seq'] as $context["_key"] => $context["button"]) {
  227.                 // line 91
  228.                 echo "                    <p class=\"btn-pp btn-pp--block\">
  229.                         <a href=\"";
  230.                 // line 92
  231.                 echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["button"], "url", [], "any"falsefalsefalse92), "html"nulltrue);
  232.                 echo "\" class=\"btn btn--primary btn--center\"
  233.                                 ";
  234.                 // line 93
  235.                 if ((twig_get_attribute($this->env$this->source$context["button"], "new_window", [], "any"falsefalsefalse93) == "1")) {
  236.                     echo " target=\"_blank\" rel=\"noopener\"";
  237.                 }
  238.                 echo ">
  239.                             ";
  240.                 // line 94
  241.                 echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["button"], "label", [], "any"falsefalsefalse94), "html"nulltrue);
  242.                 echo "
  243.                         </a>
  244.                     </p>
  245.                 ";
  246.             }
  247.             $_parent $context['_parent'];
  248.             unset($context['_seq'], $context['_iterated'], $context['_key'], $context['button'], $context['_parent'], $context['loop']);
  249.             $context array_intersect_key($context$_parent) + $_parent;
  250.             // line 98
  251.             echo "            ";
  252.         }
  253.         // line 99
  254.         echo "
  255.             ";
  256.         // line 100
  257.         if ( !twig_test_empty(twig_get_attribute($this->env$this->source, (isset($context["event"]) || array_key_exists("event"$context) ? $context["event"] : (function () { throw new RuntimeError('Variable "event" does not exist.'100$this->source); })()), "youtubes", [], "any"falsefalsefalse100))) {
  258.             // line 101
  259.             echo "                ";
  260.             $context['_parent'] = $context;
  261.             $context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env$this->source, (isset($context["event"]) || array_key_exists("event"$context) ? $context["event"] : (function () { throw new RuntimeError('Variable "event" does not exist.'101$this->source); })()), "youtubes", [], "any"falsefalsefalse101));
  262.             foreach ($context['_seq'] as $context["_key"] => $context["youtube"]) {
  263.                 // line 102
  264.                 echo "                    <div class=\"video-pp\">
  265.                         ";
  266.                 // line 103
  267.                 $context["videoImage"] = $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("frontend/img/general/video-pp--default.svg");
  268.                 // line 104
  269.                 echo "                        ";
  270.                 $context["imageType"] = "jpg";
  271.                 // line 105
  272.                 echo "                        ";
  273.                 $context["videoEmbedUrl"] = ("//www.youtube.com/embed/" twig_get_attribute($this->env$this->source$context["youtube"], "code", [], "any"falsefalsefalse105));
  274.                 // line 106
  275.                 echo "
  276.                         <div class=\"videolink\">
  277.                             <a href=\"";
  278.                 // line 108
  279.                 echo twig_escape_filter($this->env, (isset($context["videoEmbedUrl"]) || array_key_exists("videoEmbedUrl"$context) ? $context["videoEmbedUrl"] : (function () { throw new RuntimeError('Variable "videoEmbedUrl" does not exist.'108$this->source); })()), "html"nulltrue);
  280.                 echo "\" target=\"_blank\" rel=\"noopener\" class=\"js-videolink-play-link videolink__video-link\" data-video-provider=\"youtube\" data-video-id=\"";
  281.                 echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["youtube"], "code", [], "any"falsefalsefalse108), "html"nulltrue);
  282.                 echo "\" data-make-fluid=\"true\">
  283.                                 <i class=\"videolink__video-link__icon icon icon--play\"></i>
  284.                                 <img class=\"video-pp__link__img\" src=\"";
  285.                 // line 110
  286.                 echo twig_escape_filter($this->env, (("https://i.ytimg.com/vi/" twig_get_attribute($this->env$this->source$context["youtube"], "code", [], "any"falsefalsefalse110)) . "/maxresdefault.jpg"), "html"nulltrue);
  287.                 echo "\" alt=\"\">
  288.                             </a>
  289.                             <div class=\"js-videolink-container videolink__video-container\"></div>
  290.                         </div>
  291.                         ";
  292.                 // line 115
  293.                 if (twig_get_attribute($this->env$this->source$context["youtube"], "description", [], "any"falsefalsefalse115)) {
  294.                     // line 116
  295.                     echo "                            <div class=\"video-pp__caption\">
  296.                                 <p class=\"video-pp__caption__text\">";
  297.                     // line 117
  298.                     echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["youtube"], "description", [], "any"falsefalsefalse117), "html"nulltrue);
  299.                     echo "</p>
  300.                             </div>
  301.                         ";
  302.                 }
  303.                 // line 120
  304.                 echo "                    </div>
  305.                 ";
  306.             }
  307.             $_parent $context['_parent'];
  308.             unset($context['_seq'], $context['_iterated'], $context['_key'], $context['youtube'], $context['_parent'], $context['loop']);
  309.             $context array_intersect_key($context$_parent) + $_parent;
  310.             // line 122
  311.             echo "            ";
  312.         }
  313.         // line 123
  314.         echo "
  315.             ";
  316.         // line 124
  317.         $context["poster_img"] = ((twig_get_attribute($this->env$this->source, (isset($context["event"]) || array_key_exists("event"$context) ? $context["event"] : (function () { throw new RuntimeError('Variable "event" does not exist.'124$this->source); })()), "poster_img_url", [], "any"falsefalsefalse124)) ? (twig_first($this->envtwig_get_attribute($this->env$this->source, (isset($context["event"]) || array_key_exists("event"$context) ? $context["event"] : (function () { throw new RuntimeError('Variable "event" does not exist.'124$this->source); })()), "poster_img_url", [], "any"falsefalsefalse124))) : (null));
  318.         // line 125
  319.         echo "            ";
  320.         if (( !(null === (isset($context["poster_img"]) || array_key_exists("poster_img"$context) ? $context["poster_img"] : (function () { throw new RuntimeError('Variable "poster_img" does not exist.'125$this->source); })())) &&  !twig_test_empty((isset($context["poster_img"]) || array_key_exists("poster_img"$context) ? $context["poster_img"] : (function () { throw new RuntimeError('Variable "poster_img" does not exist.'125$this->source); })())))) {
  321.             // line 126
  322.             echo "                <div class=\"poster-image-container\">
  323.                     <img class=\"lazy\" src=\"";
  324.             // line 127
  325.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["event"]) || array_key_exists("event"$context) ? $context["event"] : (function () { throw new RuntimeError('Variable "event" does not exist.'127$this->source); })()), "poster_img_url", [], "any"falsefalsefalse127), "html"nulltrue);
  326.             echo "\" ";
  327.             if (twig_get_attribute($this->env$this->source, (isset($context["event"]) || array_key_exists("event"$context) ? $context["event"] : (function () { throw new RuntimeError('Variable "event" does not exist.'127$this->source); })()), "poster_img_alt", [], "any"falsefalsefalse127)) {
  328.                 echo " alt=\"";
  329.                 echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["event"]) || array_key_exists("event"$context) ? $context["event"] : (function () { throw new RuntimeError('Variable "event" does not exist.'127$this->source); })()), "poster_img_alt", [], "any"falsefalsefalse127), "html"nulltrue);
  330.                 echo "\"";
  331.             }
  332.             echo " />
  333.                 </div>
  334.             ";
  335.         }
  336.         // line 130
  337.         echo "
  338.             <a href=\"";
  339.         // line 131
  340.         echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("gcs_api_directus_events_ics");
  341.         echo "?event_id=";
  342.         echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["event"]) || array_key_exists("event"$context) ? $context["event"] : (function () { throw new RuntimeError('Variable "event" does not exist.'131$this->source); })()), "id", [], "any"falsefalsefalse131), "html"nulltrue);
  343.         echo "\" class=\"btn btn--secondary\">";
  344.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("events.add-to-calendar"), "html"nulltrue);
  345.         echo "</a>
  346.             <div class=\"fb-share-button\" data-href=\"";
  347.         // line 133
  348.         echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["app"]) || array_key_exists("app"$context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.'133$this->source); })()), "request", [], "any"falsefalsefalse133), "uri", [], "any"falsefalsefalse133), "html"nulltrue);
  349.         echo "\" data-layout=\"button\" data-size=\"large\"><a target=\"_blank\" href=\"https://www.facebook.com/sharer/sharer.php?u=";
  350.         echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["app"]) || array_key_exists("app"$context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.'133$this->source); })()), "request", [], "any"falsefalsefalse133), "uri", [], "any"falsefalsefalse133), "html"nulltrue);
  351.         echo "&amp;src=sdkpreparse\" class=\"fb-xfbml-parse-ignore\">Udostępnij</a></div>
  352.         </article>
  353.         <div class=\"latest-news col-lg-3\">
  354.             <h2 role=\"heading\" aria-level=\"2\">";
  355.         // line 138
  356.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("events.latest_events.read-more"), "html"nulltrue);
  357.         echo "</h2>
  358.             ";
  359.         // line 139
  360.         echo $this->env->getRuntime('Symfony\Bridge\Twig\Extension\HttpKernelRuntime')->renderFragmentStrategy("esi"Symfony\Bridge\Twig\Extension\HttpKernelExtension::controller("App\\Controller\\EventsDirectusController:lastEvents", ["limit" => 3"sports" => twig_get_attribute($this->env$this->source, (isset($context["event"]) || array_key_exists("event"$context) ? $context["event"] : (function () { throw new RuntimeError('Variable "event" does not exist.'139$this->source); })()), "sportsIds", [], "any"falsefalsefalse139), "slug" => (isset($context["slug"]) || array_key_exists("slug"$context) ? $context["slug"] : (function () { throw new RuntimeError('Variable "slug" does not exist.'139$this->source); })())]));
  361.         echo "
  362.             <div class=\"text--right\">
  363.                 ";
  364.         // line 142
  365.         $context["sportsList"] = "";
  366.         // line 143
  367.         echo "
  368.                 <a href=\"/";
  369.         // line 144
  370.         echo twig_escape_filter($this->env, (isset($context["lang"]) || array_key_exists("lang"$context) ? $context["lang"] : (function () { throw new RuntimeError('Variable "lang" does not exist.'144$this->source); })()), "html"nulltrue);
  371.         echo "/";
  372.         echo twig_escape_filter($this->env, (isset($context["slug"]) || array_key_exists("slug"$context) ? $context["slug"] : (function () { throw new RuntimeError('Variable "slug" does not exist.'144$this->source); })()), "html"nulltrue);
  373.         echo "\" class=\"btn btn--blue\">";
  374.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("events.latest_events.read-more"), "html"nulltrue);
  375.         echo "</a>
  376.             </div>
  377.         </div>
  378.     </div>
  379. </div>
  380. ";
  381.         
  382.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  383.         
  384.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  385.     }
  386.     public function getTemplateName()
  387.     {
  388.         return "Pages/EventsDirectusPage/page.html.twig";
  389.     }
  390.     public function isTraitable()
  391.     {
  392.         return false;
  393.     }
  394.     public function getDebugInfo()
  395.     {
  396.         return array (  408 => 144,  405 => 143,  403 => 142,  397 => 139,  393 => 138,  383 => 133,  374 => 131,  371 => 130,  359 => 127,  356 => 126,  353 => 125,  351 => 124,  348 => 123,  345 => 122,  338 => 120,  332 => 117,  329 => 116,  327 => 115,  319 => 110,  312 => 108,  308 => 106,  305 => 105,  302 => 104,  300 => 103,  297 => 102,  292 => 101,  290 => 100,  287 => 99,  284 => 98,  274 => 94,  268 => 93,  264 => 92,  261 => 91,  256 => 90,  254 => 89,  249 => 87,  246 => 86,  240 => 85,  234 => 81,  228 => 80,  224 => 78,  218 => 77,  214 => 76,  211 => 75,  208 => 74,  204 => 73,  199 => 70,  193 => 68,  191 => 67,  184 => 63,  166 => 48,  156 => 43,  149 => 39,  145 => 37,  141 => 34,  132 => 32,  128 => 31,  125 => 30,  122 => 29,  119 => 28,  116 => 27,  113 => 19,  110 => 18,  108 => 17,  101 => 13,  94 => 8,  84 => 7,  69 => 4,  59 => 3,  36 => 1,);
  397.     }
  398.     public function getSourceContext()
  399.     {
  400.         return new Source("{% extends 'Layout/layout.html.twig' %}
  401. {% block title %}
  402.     {{ event.name }} - {{ parent() }}
  403. {% endblock %}
  404. {% block content %}
  405. <div class=\"events-overview events-page\">
  406.     <div class=\"hidden message__no-items\">
  407.         {{ 'events.message.no_items'|trans }}
  408.     </div>
  409.     <div class=\"page-header\">
  410.         {% set img = (event.background_img_url) ? event.background_img_url | first : null %}
  411.         {% if img is null %}
  412.             {% set img = {
  413.                 'cropping' : null,
  414.                 'media' : {
  415.                     'url' : get_default_article_image(),
  416.                 },
  417.                 'mediaAlt' : 'Gdyńskie Centrum Sportu'
  418.             }
  419.             %}
  420.         {% endif %}
  421.         {% if img is not null and img is not empty %}
  422.             {% set fullSrc = croppedImgSrc(event.background_img_url, { w: 1920, q: 80 }) %}
  423.             <img class=\"lazy\"
  424.                  src=\"{{ event.background_img_url }}\"
  425.                  {% if event.background_img_alt %} alt=\"{{ event.background_img_alt }}\"{% endif %} />
  426.         {% endif %}
  427.     </div>
  428.     {# Breadcrumbs #}
  429.     <section class=\"content\">
  430.         <nav class=\"breadcrumb\">
  431.             <a href=\"/{{ lang }}\" class=\"breadcrumb__item breadcrumb__item--home\">
  432.                 Start
  433.             </a>
  434.             <i class=\"fas fa-chevron-right\"></i>
  435.             <a href=\"/{{ lang }}/{{ slug }}\" class=\"breadcrumb__item\">
  436.                 Kalendarz
  437.             </a>
  438.             <i class=\"fas fa-chevron-right\"></i>
  439.             <span class=\"breadcrumb__item breadcrumb__item--current\">
  440.                {{ event.name }}
  441.             </span>
  442.         </nav>
  443.     </section>
  444.     <div class=\"content\">
  445.     </div>
  446.     <div class=\"content row\">
  447.         <article class=\"blog-item col-lg-9\">
  448.             <header class=\"blog-item__head\">
  449.                 <h2 class=\"blog-item__head__title simple\" role=\"heading\" aria-level=\"2\">
  450.                     {{ event.name }}
  451.                 </h2>
  452.                 <time class=\"blog-item__head__meta\">
  453.                     {% if event.nearestDate is defined and event.nearestDate %}
  454.                         Najbliższe wydarzenie: {{ event.nearestDate | date(\"d.m.Y - H:i\") }}
  455.                     {% endif %}
  456.                 </time>
  457.                 <div class=\"events-box__place\">
  458.                     {% for place in event.places %}
  459.                         {% if place.name is defined and place.name is not empty %}
  460.                             <p>
  461.                                 {{ place.name }}
  462.                                 {% if place.address is defined and place.address is not empty %} <span class=\"events-box__address\">({{ place.address }})</span>{% endif %}
  463.                             </p>
  464.                         {% endif %}
  465.                     {% endfor %}
  466.                 </div>
  467.             </header>
  468.             {% if page.summary is defined and page.summary is not empty %}<p class=\"blog-item--summary\">{{ page.summary }}</p>{% endif %}
  469.             {{ event.content | raw }}
  470.             {% if event.buttons is not empty %}
  471.                 {% for button in event.buttons %}
  472.                     <p class=\"btn-pp btn-pp--block\">
  473.                         <a href=\"{{ button.url }}\" class=\"btn btn--primary btn--center\"
  474.                                 {% if button.new_window == \"1\" %} target=\"_blank\" rel=\"noopener\"{% endif %}>
  475.                             {{ button.label }}
  476.                         </a>
  477.                     </p>
  478.                 {% endfor %}
  479.             {% endif %}
  480.             {% if event.youtubes is not empty %}
  481.                 {% for youtube in event.youtubes %}
  482.                     <div class=\"video-pp\">
  483.                         {% set videoImage = asset('frontend/img/general/video-pp--default.svg') %}
  484.                         {% set imageType = 'jpg' %}
  485.                         {% set videoEmbedUrl = \"//www.youtube.com/embed/\" ~ youtube.code %}
  486.                         <div class=\"videolink\">
  487.                             <a href=\"{{ videoEmbedUrl }}\" target=\"_blank\" rel=\"noopener\" class=\"js-videolink-play-link videolink__video-link\" data-video-provider=\"youtube\" data-video-id=\"{{ youtube.code }}\" data-make-fluid=\"true\">
  488.                                 <i class=\"videolink__video-link__icon icon icon--play\"></i>
  489.                                 <img class=\"video-pp__link__img\" src=\"{{ 'https://i.ytimg.com/vi/' ~ youtube.code ~ '/maxresdefault.jpg' }}\" alt=\"\">
  490.                             </a>
  491.                             <div class=\"js-videolink-container videolink__video-container\"></div>
  492.                         </div>
  493.                         {% if youtube.description %}
  494.                             <div class=\"video-pp__caption\">
  495.                                 <p class=\"video-pp__caption__text\">{{ youtube.description }}</p>
  496.                             </div>
  497.                         {% endif %}
  498.                     </div>
  499.                 {% endfor %}
  500.             {% endif %}
  501.             {% set poster_img = (event.poster_img_url) ? event.poster_img_url | first : null %}
  502.             {% if poster_img is not null and poster_img is not empty %}
  503.                 <div class=\"poster-image-container\">
  504.                     <img class=\"lazy\" src=\"{{ event.poster_img_url }}\" {% if event.poster_img_alt %} alt=\"{{ event.poster_img_alt }}\"{% endif %} />
  505.                 </div>
  506.             {% endif %}
  507.             <a href=\"{{ path('gcs_api_directus_events_ics') }}?event_id={{ event.id }}\" class=\"btn btn--secondary\">{{ 'events.add-to-calendar'|trans }}</a>
  508.             <div class=\"fb-share-button\" data-href=\"{{ app.request.uri }}\" data-layout=\"button\" data-size=\"large\"><a target=\"_blank\" href=\"https://www.facebook.com/sharer/sharer.php?u={{ app.request.uri }}&amp;src=sdkpreparse\" class=\"fb-xfbml-parse-ignore\">Udostępnij</a></div>
  509.         </article>
  510.         <div class=\"latest-news col-lg-3\">
  511.             <h2 role=\"heading\" aria-level=\"2\">{{ 'events.latest_events.read-more' | trans }}</h2>
  512.             {{ render_esi(controller('App\\\\Controller\\\\EventsDirectusController:lastEvents', { 'limit' :  3, 'sports' : event.sportsIds, 'slug' : slug } )) }}
  513.             <div class=\"text--right\">
  514.                 {% set sportsList = \"\" %}
  515.                 <a href=\"/{{ lang }}/{{ slug }}\" class=\"btn btn--blue\">{{ 'events.latest_events.read-more' | trans }}</a>
  516.             </div>
  517.         </div>
  518.     </div>
  519. </div>
  520. {% endblock %}
  521. ""Pages/EventsDirectusPage/page.html.twig""/var/www/gcs/html/dev/templates/Pages/EventsDirectusPage/page.html.twig");
  522.     }
  523. }