<?php
use Twig\Environment;
use Twig\Error\LoaderError;
use Twig\Error\RuntimeError;
use Twig\Extension\SandboxExtension;
use Twig\Markup;
use Twig\Sandbox\SecurityError;
use Twig\Sandbox\SecurityNotAllowedTagError;
use Twig\Sandbox\SecurityNotAllowedFilterError;
use Twig\Sandbox\SecurityNotAllowedFunctionError;
use Twig\Source;
use Twig\Template;
/* Pages/EventsDirectusPage/page.html.twig */
class __TwigTemplate_64a89592e054e910e058c5f56c3beae3bba0857c7f73509260f54cc171eb60af extends \Twig\Template
{
private $source;
private $macros = [];
public function __construct(Environment $env)
{
parent::__construct($env);
$this->source = $this->getSourceContext();
$this->blocks = [
'title' => [$this, 'block_title'],
'content' => [$this, 'block_content'],
];
}
protected function doGetParent(array $context)
{
// line 1
return "Layout/layout.html.twig";
}
protected function doDisplay(array $context, array $blocks = [])
{
$macros = $this->macros;
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "Pages/EventsDirectusPage/page.html.twig"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "Pages/EventsDirectusPage/page.html.twig"));
$this->parent = $this->loadTemplate("Layout/layout.html.twig", "Pages/EventsDirectusPage/page.html.twig", 1);
$this->parent->display($context, array_merge($this->blocks, $blocks));
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
}
// line 3
public function block_title($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "title"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "title"));
// line 4
echo " ";
echo twig_escape_filter($this->env, 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.', 4, $this->source); })()), "name", [], "any", false, false, false, 4), "html", null, true);
echo " - ";
$this->displayParentBlock("title", $context, $blocks);
echo "
";
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
// line 7
public function block_content($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "content"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "content"));
// line 8
echo "
<div class=\"events-overview events-page\">
<div class=\"hidden message__no-items\">
";
// line 13
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("events.message.no_items"), "html", null, true);
echo "
</div>
<div class=\"page-header\">
";
// line 17
$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", false, false, false, 17)) ? (twig_first($this->env, 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", false, false, false, 17))) : (null));
// line 18
echo " ";
if ((null === (isset($context["img"]) || array_key_exists("img", $context) ? $context["img"] : (function () { throw new RuntimeError('Variable "img" does not exist.', 18, $this->source); })()))) {
// line 19
echo " ";
$context["img"] = ["cropping" => null, "media" => ["url" => $this->extensions['App\Twig\GcsExtension']->getDefaultArticleImage()], "mediaAlt" => "Gdyńskie Centrum Sportu"];
// line 27
echo " ";
}
// line 28
echo " ";
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); })())))) {
// line 29
echo " ";
$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", false, false, false, 29), ["w" => 1920, "q" => 80]]);
// line 30
echo " <img class=\"lazy\"
src=\"";
// line 31
echo twig_escape_filter($this->env, 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.', 31, $this->source); })()), "background_img_url", [], "any", false, false, false, 31), "html", null, true);
echo "\"
";
// line 32
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", false, false, false, 32)) {
echo " alt=\"";
echo twig_escape_filter($this->env, 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", false, false, false, 32), "html", null, true);
echo "\"";
}
echo " />
";
}
// line 34
echo " </div>
";
// line 37
echo " <section class=\"content\">
<nav class=\"breadcrumb\">
<a href=\"/";
// line 39
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", null, true);
echo "\" class=\"breadcrumb__item breadcrumb__item--home\">
Start
</a>
<i class=\"fas fa-chevron-right\"></i>
<a href=\"/";
// line 43
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", null, true);
echo "/";
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", null, true);
echo "\" class=\"breadcrumb__item\">
Kalendarz
</a>
<i class=\"fas fa-chevron-right\"></i>
<span class=\"breadcrumb__item breadcrumb__item--current\">
";
// line 48
echo twig_escape_filter($this->env, 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.', 48, $this->source); })()), "name", [], "any", false, false, false, 48), "html", null, true);
echo "
</span>
</nav>
</section>
<div class=\"content\">
</div>
<div class=\"content row\">
<article class=\"blog-item col-lg-9\">
<header class=\"blog-item__head\">
<h2 class=\"blog-item__head__title simple\" role=\"heading\" aria-level=\"2\">
";
// line 63
echo twig_escape_filter($this->env, 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.', 63, $this->source); })()), "name", [], "any", false, false, false, 63), "html", null, true);
echo "
</h2>
<time class=\"blog-item__head__meta\">
";
// line 67
if ((twig_get_attribute($this->env, $this->source, ($context["event"] ?? null), "startDate", [], "any", true, true, false, 67) && 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); })()), "startDate", [], "any", false, false, false, 67))) {
// line 68
echo " ";
echo twig_escape_filter($this->env, twig_date_format_filter($this->env, 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.', 68, $this->source); })()), "startDate", [], "any", false, false, false, 68), "d.m.Y (H:i)"), "html", null, true);
echo "
";
}
// line 70
echo " ";
if (((twig_get_attribute($this->env, $this->source, ($context["event"] ?? null), "endDate", [], "any", true, true, false, 70) && 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.', 70, $this->source); })()), "endDate", [], "any", false, false, false, 70)) && (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.', 70, $this->source); })()), "endDate", [], "any", false, false, false, 70) != 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.', 70, $this->source); })()), "startDate", [], "any", false, false, false, 70)))) {
// line 71
echo " ";
if ((twig_get_attribute($this->env, $this->source, ($context["event"] ?? null), "startDate", [], "any", true, true, false, 71) && 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.', 71, $this->source); })()), "startDate", [], "any", false, false, false, 71))) {
// line 72
echo " -
";
}
// line 74
echo " ";
echo twig_escape_filter($this->env, twig_date_format_filter($this->env, 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.', 74, $this->source); })()), "endDate", [], "any", false, false, false, 74), "d.m.Y (H:i)"), "html", null, true);
echo "
; Najbliższe wydarzenie: ";
// line 75
echo twig_escape_filter($this->env, twig_date_format_filter($this->env, 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.', 75, $this->source); })()), "nearestDate", [], "any", false, false, false, 75), "d.m.Y (H:i)"), "html", null, true);
echo "
";
}
// line 77
echo " </time>
<div class=\"events-box__place\">
";
// line 80
$context['_parent'] = $context;
$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.', 80, $this->source); })()), "places", [], "any", false, false, false, 80));
foreach ($context['_seq'] as $context["_key"] => $context["place"]) {
// line 81
echo " ";
if ((twig_get_attribute($this->env, $this->source, $context["place"], "name", [], "any", true, true, false, 81) && !twig_test_empty(twig_get_attribute($this->env, $this->source, $context["place"], "name", [], "any", false, false, false, 81)))) {
// line 82
echo " <p>
";
// line 83
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["place"], "name", [], "any", false, false, false, 83), "html", null, true);
echo "
";
// line 84
if ((twig_get_attribute($this->env, $this->source, $context["place"], "address", [], "any", true, true, false, 84) && !twig_test_empty(twig_get_attribute($this->env, $this->source, $context["place"], "address", [], "any", false, false, false, 84)))) {
echo " <span class=\"events-box__address\">(";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["place"], "address", [], "any", false, false, false, 84), "html", null, true);
echo ")</span>";
}
// line 85
echo " </p>
";
}
// line 87
echo " ";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['place'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 88
echo " </div>
</header>
";
// line 92
if ((twig_get_attribute($this->env, $this->source, ($context["page"] ?? null), "summary", [], "any", true, true, false, 92) && !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.', 92, $this->source); })()), "summary", [], "any", false, false, false, 92)))) {
echo "<p class=\"blog-item--summary\">";
echo twig_escape_filter($this->env, 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.', 92, $this->source); })()), "summary", [], "any", false, false, false, 92), "html", null, true);
echo "</p>";
}
// line 93
echo "
";
// line 94
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.', 94, $this->source); })()), "content", [], "any", false, false, false, 94);
echo "
";
// line 96
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.', 96, $this->source); })()), "buttons", [], "any", false, false, false, 96))) {
// line 97
echo " ";
$context['_parent'] = $context;
$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.', 97, $this->source); })()), "buttons", [], "any", false, false, false, 97));
foreach ($context['_seq'] as $context["_key"] => $context["button"]) {
// line 98
echo " <p class=\"btn-pp btn-pp--block\">
<a href=\"";
// line 99
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["button"], "url", [], "any", false, false, false, 99), "html", null, true);
echo "\" class=\"btn btn--primary btn--center\"
";
// line 100
if ((twig_get_attribute($this->env, $this->source, $context["button"], "new_window", [], "any", false, false, false, 100) == "1")) {
echo " target=\"_blank\" rel=\"noopener\"";
}
echo ">
";
// line 101
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["button"], "label", [], "any", false, false, false, 101), "html", null, true);
echo "
</a>
</p>
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['button'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 105
echo " ";
}
// line 106
echo "
";
// line 107
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.', 107, $this->source); })()), "youtubes", [], "any", false, false, false, 107))) {
// line 108
echo " ";
$context['_parent'] = $context;
$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.', 108, $this->source); })()), "youtubes", [], "any", false, false, false, 108));
foreach ($context['_seq'] as $context["_key"] => $context["youtube"]) {
// line 109
echo " <div class=\"video-pp\">
";
// line 110
$context["videoImage"] = $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("frontend/img/general/video-pp--default.svg");
// line 111
echo " ";
$context["imageType"] = "jpg";
// line 112
echo " ";
$context["videoEmbedUrl"] = ("//www.youtube.com/embed/" . twig_get_attribute($this->env, $this->source, $context["youtube"], "code", [], "any", false, false, false, 112));
// line 113
echo "
<div class=\"videolink\">
<a href=\"";
// line 115
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.', 115, $this->source); })()), "html", null, true);
echo "\" target=\"_blank\" rel=\"noopener\" class=\"js-videolink-play-link videolink__video-link\" data-video-provider=\"youtube\" data-video-id=\"";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["youtube"], "code", [], "any", false, false, false, 115), "html", null, true);
echo "\" data-make-fluid=\"true\">
<i class=\"videolink__video-link__icon icon icon--play\"></i>
<img class=\"video-pp__link__img\" src=\"";
// line 117
echo twig_escape_filter($this->env, (("https://i.ytimg.com/vi/" . twig_get_attribute($this->env, $this->source, $context["youtube"], "code", [], "any", false, false, false, 117)) . "/maxresdefault.jpg"), "html", null, true);
echo "\" alt=\"\">
</a>
<div class=\"js-videolink-container videolink__video-container\"></div>
</div>
";
// line 122
if (twig_get_attribute($this->env, $this->source, $context["youtube"], "description", [], "any", false, false, false, 122)) {
// line 123
echo " <div class=\"video-pp__caption\">
<p class=\"video-pp__caption__text\">";
// line 124
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["youtube"], "description", [], "any", false, false, false, 124), "html", null, true);
echo "</p>
</div>
";
}
// line 127
echo " </div>
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['youtube'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 129
echo " ";
}
// line 130
echo "
<a href=\"";
// line 131
echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("gcs_api_directus_events_ics");
echo "?event_id=";
echo twig_escape_filter($this->env, 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.', 131, $this->source); })()), "id", [], "any", false, false, false, 131), "html", null, true);
echo "\" class=\"btn btn--secondary\">";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("events.add-to-calendar"), "html", null, true);
echo "</a>
<div class=\"fb-share-button\" data-href=\"";
// line 133
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_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", false, false, false, 133), "uri", [], "any", false, false, false, 133), "html", null, true);
echo "\" data-layout=\"button\" data-size=\"large\"><a target=\"_blank\" href=\"https://www.facebook.com/sharer/sharer.php?u=";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_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", false, false, false, 133), "uri", [], "any", false, false, false, 133), "html", null, true);
echo "&src=sdkpreparse\" class=\"fb-xfbml-parse-ignore\">Udostępnij</a></div>
</article>
<div class=\"latest-news col-lg-3\">
<h2 role=\"heading\" aria-level=\"2\">";
// line 138
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("events.latest_events.read-more"), "html", null, true);
echo "</h2>
";
// line 139
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", false, false, false, 139), "slug" => (isset($context["slug"]) || array_key_exists("slug", $context) ? $context["slug"] : (function () { throw new RuntimeError('Variable "slug" does not exist.', 139, $this->source); })())]));
echo "
<div class=\"text--right\">
";
// line 142
$context["sportsList"] = "";
// line 143
echo "
<a href=\"/";
// line 144
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", null, true);
echo "/";
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", null, true);
echo "\" class=\"btn btn--blue\">";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("events.latest_events.read-more"), "html", null, true);
echo "</a>
</div>
</div>
</div>
</div>
";
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
public function getTemplateName()
{
return "Pages/EventsDirectusPage/page.html.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
return array ( 405 => 144, 402 => 143, 400 => 142, 394 => 139, 390 => 138, 380 => 133, 371 => 131, 368 => 130, 365 => 129, 358 => 127, 352 => 124, 349 => 123, 347 => 122, 339 => 117, 332 => 115, 328 => 113, 325 => 112, 322 => 111, 320 => 110, 317 => 109, 312 => 108, 310 => 107, 307 => 106, 304 => 105, 294 => 101, 288 => 100, 284 => 99, 281 => 98, 276 => 97, 274 => 96, 269 => 94, 266 => 93, 260 => 92, 254 => 88, 248 => 87, 244 => 85, 238 => 84, 234 => 83, 231 => 82, 228 => 81, 224 => 80, 219 => 77, 214 => 75, 209 => 74, 205 => 72, 202 => 71, 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,);
}
public function getSourceContext()
{
return new Source("{% extends 'Layout/layout.html.twig' %}
{% block title %}
{{ event.name }} - {{ parent() }}
{% endblock %}
{% block content %}
<div class=\"events-overview events-page\">
<div class=\"hidden message__no-items\">
{{ 'events.message.no_items'|trans }}
</div>
<div class=\"page-header\">
{% set img = (event.background_img_url) ? event.background_img_url | first : null %}
{% if img is null %}
{% set img = {
'cropping' : null,
'media' : {
'url' : get_default_article_image(),
},
'mediaAlt' : 'Gdyńskie Centrum Sportu'
}
%}
{% endif %}
{% if img is not null and img is not empty %}
{% set fullSrc = croppedImgSrc(event.background_img_url, { w: 1920, q: 80 }) %}
<img class=\"lazy\"
src=\"{{ event.background_img_url }}\"
{% if event.background_img_alt %} alt=\"{{ event.background_img_alt }}\"{% endif %} />
{% endif %}
</div>
{# Breadcrumbs #}
<section class=\"content\">
<nav class=\"breadcrumb\">
<a href=\"/{{ lang }}\" class=\"breadcrumb__item breadcrumb__item--home\">
Start
</a>
<i class=\"fas fa-chevron-right\"></i>
<a href=\"/{{ lang }}/{{ slug }}\" class=\"breadcrumb__item\">
Kalendarz
</a>
<i class=\"fas fa-chevron-right\"></i>
<span class=\"breadcrumb__item breadcrumb__item--current\">
{{ event.name }}
</span>
</nav>
</section>
<div class=\"content\">
</div>
<div class=\"content row\">
<article class=\"blog-item col-lg-9\">
<header class=\"blog-item__head\">
<h2 class=\"blog-item__head__title simple\" role=\"heading\" aria-level=\"2\">
{{ event.name }}
</h2>
<time class=\"blog-item__head__meta\">
{% if event.startDate is defined and event.startDate %}
{{ event.startDate | date(\"d.m.Y (H:i)\")}}
{% endif %}
{% if event.endDate is defined and event.endDate and event.endDate != event.startDate %}
{% if event.startDate is defined and event.startDate %}
-
{% endif %}
{{ event.endDate | date(\"d.m.Y (H:i)\")}}
; Najbliższe wydarzenie: {{ event.nearestDate | date(\"d.m.Y (H:i)\") }}
{% endif %}
</time>
<div class=\"events-box__place\">
{% for place in event.places %}
{% if place.name is defined and place.name is not empty %}
<p>
{{ place.name }}
{% if place.address is defined and place.address is not empty %} <span class=\"events-box__address\">({{ place.address }})</span>{% endif %}
</p>
{% endif %}
{% endfor %}
</div>
</header>
{% if page.summary is defined and page.summary is not empty %}<p class=\"blog-item--summary\">{{ page.summary }}</p>{% endif %}
{{ event.content | raw }}
{% if event.buttons is not empty %}
{% for button in event.buttons %}
<p class=\"btn-pp btn-pp--block\">
<a href=\"{{ button.url }}\" class=\"btn btn--primary btn--center\"
{% if button.new_window == \"1\" %} target=\"_blank\" rel=\"noopener\"{% endif %}>
{{ button.label }}
</a>
</p>
{% endfor %}
{% endif %}
{% if event.youtubes is not empty %}
{% for youtube in event.youtubes %}
<div class=\"video-pp\">
{% set videoImage = asset('frontend/img/general/video-pp--default.svg') %}
{% set imageType = 'jpg' %}
{% set videoEmbedUrl = \"//www.youtube.com/embed/\" ~ youtube.code %}
<div class=\"videolink\">
<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\">
<i class=\"videolink__video-link__icon icon icon--play\"></i>
<img class=\"video-pp__link__img\" src=\"{{ 'https://i.ytimg.com/vi/' ~ youtube.code ~ '/maxresdefault.jpg' }}\" alt=\"\">
</a>
<div class=\"js-videolink-container videolink__video-container\"></div>
</div>
{% if youtube.description %}
<div class=\"video-pp__caption\">
<p class=\"video-pp__caption__text\">{{ youtube.description }}</p>
</div>
{% endif %}
</div>
{% endfor %}
{% endif %}
<a href=\"{{ path('gcs_api_directus_events_ics') }}?event_id={{ event.id }}\" class=\"btn btn--secondary\">{{ 'events.add-to-calendar'|trans }}</a>
<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 }}&src=sdkpreparse\" class=\"fb-xfbml-parse-ignore\">Udostępnij</a></div>
</article>
<div class=\"latest-news col-lg-3\">
<h2 role=\"heading\" aria-level=\"2\">{{ 'events.latest_events.read-more' | trans }}</h2>
{{ render_esi(controller('App\\\\Controller\\\\EventsDirectusController:lastEvents', { 'limit' : 3, 'sports' : event.sportsIds, 'slug' : slug } )) }}
<div class=\"text--right\">
{% set sportsList = \"\" %}
<a href=\"/{{ lang }}/{{ slug }}\" class=\"btn btn--blue\">{{ 'events.latest_events.read-more' | trans }}</a>
</div>
</div>
</div>
</div>
{% endblock %}
", "Pages/EventsDirectusPage/page.html.twig", "/var/www/gcs/html/dev/templates/Pages/EventsDirectusPage/page.html.twig");
}
}