<?php
use Twig\Environment;
use Twig\Error\LoaderError;
use Twig\Error\RuntimeError;
use Twig\Extension\CoreExtension;
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;
use Twig\TemplateWrapper;
/* @StartPlatzEventBundle/Default/event-single.style-startplatz.html.twig */
class __TwigTemplate_5a84e92c7e5f71d631f9ebe3f8f2ddf1 extends Template
{
private Source $source;
/**
* @var array<string, Template>
*/
private array $macros = [];
public function __construct(Environment $env)
{
parent::__construct($env);
$this->source = $this->getSourceContext();
$this->blocks = [
'metaData' => [$this, 'block_metaData'],
'title' => [$this, 'block_title'],
'additionalHead' => [$this, 'block_additionalHead'],
'content' => [$this, 'block_content'],
'footer' => [$this, 'block_footer'],
'infiniteLoop' => [$this, 'block_infiniteLoop'],
'javascriptInfiniteLoop' => [$this, 'block_javascriptInfiniteLoop'],
'ajax_helpers' => [$this, 'block_ajax_helpers'],
'javascripts' => [$this, 'block_javascripts'],
];
}
protected function doGetParent(array $context): bool|string|Template|TemplateWrapper
{
// line 1
return "@StartPlatzStyleBundle/Bootstrap4/base.homepage.event-lp.html.twig";
}
protected function doDisplay(array $context, array $blocks = []): iterable
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "@StartPlatzEventBundle/Default/event-single.style-startplatz.html.twig"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "@StartPlatzEventBundle/Default/event-single.style-startplatz.html.twig"));
// line 2
$macros["layout"] = $this->macros["layout"] = $this->load("@StartPlatzEventBundle/Admin/_macros.bs4.html.twig", 2)->unwrap();
// line 3
$context["currentPath"] = CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 3, $this->source); })()), "request", [], "any", false, false, false, 3), "get", ["_route"], "method", false, false, false, 3);
// line 1
$this->parent = $this->load("@StartPlatzStyleBundle/Bootstrap4/base.homepage.event-lp.html.twig", 1);
yield from $this->parent->unwrap()->yield($context, array_merge($this->blocks, $blocks));
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
}
// line 5
/**
* @return iterable<null|scalar|\Stringable>
*/
public function block_metaData(array $context, array $blocks = []): iterable
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "metaData"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "metaData"));
// line 6
yield " ";
// line 7
yield " ";
$context["lang"] = Twig\Extension\CoreExtension::lower($this->env->getCharset(), CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 7, $this->source); })()), "request", [], "any", false, false, false, 7), "get", ["lang", ((CoreExtension::getAttribute($this->env, $this->source, ($context["event"] ?? null), "lang", [], "any", true, true, false, 7)) ? (Twig\Extension\CoreExtension::default(CoreExtension::getAttribute($this->env, $this->source, (isset($context["event"]) || array_key_exists("event", $context) ? $context["event"] : (function () { throw new RuntimeError('Variable "event" does not exist.', 7, $this->source); })()), "lang", [], "any", false, false, false, 7), "de")) : ("de"))], "method", false, false, false, 7));
// line 8
yield " ";
$context["isEnglish"] = ((isset($context["lang"]) || array_key_exists("lang", $context) ? $context["lang"] : (function () { throw new RuntimeError('Variable "lang" does not exist.', 8, $this->source); })()) == "en");
// line 9
yield "
";
// line 11
yield " ";
$context["seoTitle"] = ((((isset($context["isEnglish"]) || array_key_exists("isEnglish", $context) ? $context["isEnglish"] : (function () { throw new RuntimeError('Variable "isEnglish" does not exist.', 11, $this->source); })()) && CoreExtension::getAttribute($this->env, $this->source, (isset($context["event"]) || array_key_exists("event", $context) ? $context["event"] : (function () { throw new RuntimeError('Variable "event" does not exist.', 11, $this->source); })()), "seoTitleEn", [], "any", false, false, false, 11))) ? (CoreExtension::getAttribute($this->env, $this->source, (isset($context["event"]) || array_key_exists("event", $context) ? $context["event"] : (function () { throw new RuntimeError('Variable "event" does not exist.', 11, $this->source); })()), "seoTitleEn", [], "any", false, false, false, 11)) : (CoreExtension::getAttribute($this->env, $this->source, (isset($context["event"]) || array_key_exists("event", $context) ? $context["event"] : (function () { throw new RuntimeError('Variable "event" does not exist.', 11, $this->source); })()), "seoTitle", [], "any", false, false, false, 11)));
// line 12
yield " ";
$context["seoDescription"] = ((((isset($context["isEnglish"]) || array_key_exists("isEnglish", $context) ? $context["isEnglish"] : (function () { throw new RuntimeError('Variable "isEnglish" does not exist.', 12, $this->source); })()) && CoreExtension::getAttribute($this->env, $this->source, (isset($context["event"]) || array_key_exists("event", $context) ? $context["event"] : (function () { throw new RuntimeError('Variable "event" does not exist.', 12, $this->source); })()), "seoDescriptionEn", [], "any", false, false, false, 12))) ? (CoreExtension::getAttribute($this->env, $this->source, (isset($context["event"]) || array_key_exists("event", $context) ? $context["event"] : (function () { throw new RuntimeError('Variable "event" does not exist.', 12, $this->source); })()), "seoDescriptionEn", [], "any", false, false, false, 12)) : (CoreExtension::getAttribute($this->env, $this->source, (isset($context["event"]) || array_key_exists("event", $context) ? $context["event"] : (function () { throw new RuntimeError('Variable "event" does not exist.', 12, $this->source); })()), "seoDescription", [], "any", false, false, false, 12)));
// line 13
yield " ";
$context["seoKeyword"] = ((((isset($context["isEnglish"]) || array_key_exists("isEnglish", $context) ? $context["isEnglish"] : (function () { throw new RuntimeError('Variable "isEnglish" does not exist.', 13, $this->source); })()) && CoreExtension::getAttribute($this->env, $this->source, (isset($context["event"]) || array_key_exists("event", $context) ? $context["event"] : (function () { throw new RuntimeError('Variable "event" does not exist.', 13, $this->source); })()), "seoKeywordEn", [], "any", false, false, false, 13))) ? (CoreExtension::getAttribute($this->env, $this->source, (isset($context["event"]) || array_key_exists("event", $context) ? $context["event"] : (function () { throw new RuntimeError('Variable "event" does not exist.', 13, $this->source); })()), "seoKeywordEn", [], "any", false, false, false, 13)) : (CoreExtension::getAttribute($this->env, $this->source, (isset($context["event"]) || array_key_exists("event", $context) ? $context["event"] : (function () { throw new RuntimeError('Variable "event" does not exist.', 13, $this->source); })()), "seoKeyword", [], "any", false, false, false, 13)));
// line 14
yield "
";
// line 16
yield " ";
if ((CoreExtension::getAttribute($this->env, $this->source, (isset($context["event"]) || array_key_exists("event", $context) ? $context["event"] : (function () { throw new RuntimeError('Variable "event" does not exist.', 16, $this->source); })()), "status", [], "any", false, false, false, 16) == "archive")) {
// line 17
yield " ";
$context["archivePrefix"] = (((($tmp = (isset($context["isEnglish"]) || array_key_exists("isEnglish", $context) ? $context["isEnglish"] : (function () { throw new RuntimeError('Variable "isEnglish" does not exist.', 17, $this->source); })())) && $tmp instanceof Markup ? (string) $tmp : $tmp)) ? ((("Past event from " . $this->extensions['Twig\Extension\CoreExtension']->formatDate(CoreExtension::getAttribute($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); })()), "startDate", [], "any", false, false, false, 17), "F j, Y")) . ": ")) : ((("Vergangene Veranstaltung vom " . $this->extensions['Twig\Extension\CoreExtension']->formatDate(CoreExtension::getAttribute($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); })()), "startDate", [], "any", false, false, false, 17), "d.m.Y")) . ": ")));
// line 18
yield " <meta name=\"description\" content=\"";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape((isset($context["archivePrefix"]) || array_key_exists("archivePrefix", $context) ? $context["archivePrefix"] : (function () { throw new RuntimeError('Variable "archivePrefix" does not exist.', 18, $this->source); })()), "html", null, true);
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(Twig\Extension\CoreExtension::slice($this->env->getCharset(), (isset($context["seoDescription"]) || array_key_exists("seoDescription", $context) ? $context["seoDescription"] : (function () { throw new RuntimeError('Variable "seoDescription" does not exist.', 18, $this->source); })()), 0, 140), "html", null, true);
yield "\">
";
} else {
// line 20
yield " <meta name=\"description\" content=\"";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape((isset($context["seoDescription"]) || array_key_exists("seoDescription", $context) ? $context["seoDescription"] : (function () { throw new RuntimeError('Variable "seoDescription" does not exist.', 20, $this->source); })()), "html", null, true);
yield "\">
";
}
// line 22
yield " <meta name=\"keywords\" content=\"";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape((isset($context["seoKeyword"]) || array_key_exists("seoKeyword", $context) ? $context["seoKeyword"] : (function () { throw new RuntimeError('Variable "seoKeyword" does not exist.', 22, $this->source); })()), "html", null, true);
yield "\">
<meta name=\"author\" content=\"";
// line 23
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, (isset($context["event"]) || array_key_exists("event", $context) ? $context["event"] : (function () { throw new RuntimeError('Variable "event" does not exist.', 23, $this->source); })()), "trainer", [], "any", false, false, false, 23), "html", null, true);
yield "\">
";
// line 25
if ((CoreExtension::getAttribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 25, $this->source); })()), "environment", [], "any", false, false, false, 25) == "prod")) {
// line 26
yield " <meta name=\"robots\" content=\"index,follow\">
";
// line 27
if ((($tmp = !Twig\Extension\CoreExtension::testEmpty(CoreExtension::getAttribute($this->env, $this->source, (isset($context["event"]) || array_key_exists("event", $context) ? $context["event"] : (function () { throw new RuntimeError('Variable "event" does not exist.', 27, $this->source); })()), "seriesTag", [], "any", false, false, false, 27))) && $tmp instanceof Markup ? (string) $tmp : $tmp)) {
// line 28
yield " <link rel=\"canonical\" href=\"";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("event_series", ["seriesTag" => CoreExtension::getAttribute($this->env, $this->source, (isset($context["event"]) || array_key_exists("event", $context) ? $context["event"] : (function () { throw new RuntimeError('Variable "event" does not exist.', 28, $this->source); })()), "seriesTag", [], "any", false, false, false, 28), "lang" => (isset($context["lang"]) || array_key_exists("lang", $context) ? $context["lang"] : (function () { throw new RuntimeError('Variable "lang" does not exist.', 28, $this->source); })())]), "html", null, true);
yield "\" />
";
} else {
// line 30
yield " <link rel=\"canonical\" href=\"https://www.startplatz.de/event/";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(Twig\Extension\CoreExtension::urlencode(CoreExtension::getAttribute($this->env, $this->source, (isset($context["event"]) || array_key_exists("event", $context) ? $context["event"] : (function () { throw new RuntimeError('Variable "event" does not exist.', 30, $this->source); })()), "slug", [], "any", false, false, false, 30)), "html", null, true);
if (((isset($context["lang"]) || array_key_exists("lang", $context) ? $context["lang"] : (function () { throw new RuntimeError('Variable "lang" does not exist.', 30, $this->source); })()) == "en")) {
yield "?lang=en";
}
yield "\" />
";
}
// line 32
yield "
";
// line 34
yield " ";
if ((($tmp = CoreExtension::getAttribute($this->env, $this->source, (isset($context["event"]) || array_key_exists("event", $context) ? $context["event"] : (function () { throw new RuntimeError('Variable "event" does not exist.', 34, $this->source); })()), "hasEnglishVersion", [], "any", false, false, false, 34)) && $tmp instanceof Markup ? (string) $tmp : $tmp)) {
// line 35
yield " <link rel=\"alternate\" hreflang=\"de\" href=\"https://www.startplatz.de/event/";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(Twig\Extension\CoreExtension::urlencode(CoreExtension::getAttribute($this->env, $this->source, (isset($context["event"]) || array_key_exists("event", $context) ? $context["event"] : (function () { throw new RuntimeError('Variable "event" does not exist.', 35, $this->source); })()), "slug", [], "any", false, false, false, 35)), "html", null, true);
yield "?lang=de\" />
<link rel=\"alternate\" hreflang=\"en\" href=\"https://www.startplatz.de/event/";
// line 36
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(Twig\Extension\CoreExtension::urlencode(CoreExtension::getAttribute($this->env, $this->source, (isset($context["event"]) || array_key_exists("event", $context) ? $context["event"] : (function () { throw new RuntimeError('Variable "event" does not exist.', 36, $this->source); })()), "slug", [], "any", false, false, false, 36)), "html", null, true);
yield "?lang=en\" />
<link rel=\"alternate\" hreflang=\"x-default\" href=\"https://www.startplatz.de/event/";
// line 37
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(Twig\Extension\CoreExtension::urlencode(CoreExtension::getAttribute($this->env, $this->source, (isset($context["event"]) || array_key_exists("event", $context) ? $context["event"] : (function () { throw new RuntimeError('Variable "event" does not exist.', 37, $this->source); })()), "slug", [], "any", false, false, false, 37)), "html", null, true);
yield "\" />
";
}
// line 39
yield " ";
} else {
// line 40
yield " <meta name=\"robots\" content=\"noindex,nofollow\">
";
}
// line 42
yield "
<!-- Open Graph with language support -->
<meta property=\"og:title\" content=\"";
// line 44
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape((isset($context["seoTitle"]) || array_key_exists("seoTitle", $context) ? $context["seoTitle"] : (function () { throw new RuntimeError('Variable "seoTitle" does not exist.', 44, $this->source); })()), "html", null, true);
yield "\">
<meta property=\"og:description\" content=\"";
// line 45
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape((isset($context["seoDescription"]) || array_key_exists("seoDescription", $context) ? $context["seoDescription"] : (function () { throw new RuntimeError('Variable "seoDescription" does not exist.', 45, $this->source); })()), "html", null, true);
yield "\">
<meta property=\"og:image\" content=\"";
// line 46
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, (isset($context["event"]) || array_key_exists("event", $context) ? $context["event"] : (function () { throw new RuntimeError('Variable "event" does not exist.', 46, $this->source); })()), "imageLink", [], "any", false, false, false, 46), "html", null, true);
yield "\">
<meta property=\"og:locale\" content=\"";
// line 47
yield ((((isset($context["lang"]) || array_key_exists("lang", $context) ? $context["lang"] : (function () { throw new RuntimeError('Variable "lang" does not exist.', 47, $this->source); })()) == "en")) ? ("en_US") : ("de_DE"));
yield "\">
";
// line 48
if ((($tmp = CoreExtension::getAttribute($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); })()), "hasEnglishVersion", [], "any", false, false, false, 48)) && $tmp instanceof Markup ? (string) $tmp : $tmp)) {
// line 49
yield " <meta property=\"og:locale:alternate\" content=\"";
yield ((((isset($context["lang"]) || array_key_exists("lang", $context) ? $context["lang"] : (function () { throw new RuntimeError('Variable "lang" does not exist.', 49, $this->source); })()) == "en")) ? ("de_DE") : ("en_US"));
yield "\">
";
}
// line 51
yield "
<!-- Twitter Card -->
<meta name=\"twitter:card\" content=\"summary\">
<meta name=\"twitter:title\" content=\"";
// line 54
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape((isset($context["seoTitle"]) || array_key_exists("seoTitle", $context) ? $context["seoTitle"] : (function () { throw new RuntimeError('Variable "seoTitle" does not exist.', 54, $this->source); })()), "html", null, true);
yield "\">
<meta name=\"twitter:description\" content=\"";
// line 55
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape((isset($context["seoDescription"]) || array_key_exists("seoDescription", $context) ? $context["seoDescription"] : (function () { throw new RuntimeError('Variable "seoDescription" does not exist.', 55, $this->source); })()), "html", null, true);
yield "\">
<meta name=\"twitter:image\" content=\"";
// line 56
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, (isset($context["event"]) || array_key_exists("event", $context) ? $context["event"] : (function () { throw new RuntimeError('Variable "event" does not exist.', 56, $this->source); })()), "imageLink", [], "any", false, false, false, 56), "html", null, true);
yield "\">
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
yield from [];
}
// line 60
/**
* @return iterable<null|scalar|\Stringable>
*/
public function block_title(array $context, array $blocks = []): iterable
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "title"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "title"));
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(((array_key_exists("seoTitle", $context)) ? (Twig\Extension\CoreExtension::default((isset($context["seoTitle"]) || array_key_exists("seoTitle", $context) ? $context["seoTitle"] : (function () { throw new RuntimeError('Variable "seoTitle" does not exist.', 60, $this->source); })()), CoreExtension::getAttribute($this->env, $this->source, (isset($context["event"]) || array_key_exists("event", $context) ? $context["event"] : (function () { throw new RuntimeError('Variable "event" does not exist.', 60, $this->source); })()), "seoTitle", [], "any", false, false, false, 60))) : (CoreExtension::getAttribute($this->env, $this->source, (isset($context["event"]) || array_key_exists("event", $context) ? $context["event"] : (function () { throw new RuntimeError('Variable "event" does not exist.', 60, $this->source); })()), "seoTitle", [], "any", false, false, false, 60))), "html", null, true);
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
yield from [];
}
// line 63
/**
* @return iterable<null|scalar|\Stringable>
*/
public function block_additionalHead(array $context, array $blocks = []): iterable
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "additionalHead"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "additionalHead"));
// line 64
yield " ";
// line 67
yield "
";
// line 68
if ((($tmp = !Twig\Extension\CoreExtension::testEmpty(CoreExtension::getAttribute($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); })()), "additionalCss", [], "any", false, false, false, 68))) && $tmp instanceof Markup ? (string) $tmp : $tmp)) {
// line 69
yield " <!-- addition css styles only for this event -->
<style>
.bg-registration {
background-color: #9632FF;
}
";
// line 74
yield Twig\Extension\CoreExtension::include($this->env, $context, Twig\Extension\StringLoaderExtension::templateFromString($this->env, CoreExtension::getAttribute($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); })()), "additionalCss", [], "any", false, false, false, 74)), ["event" => // line 75
(isset($context["event"]) || array_key_exists("event", $context) ? $context["event"] : (function () { throw new RuntimeError('Variable "event" does not exist.', 75, $this->source); })()), "batch" => // line 76
(isset($context["batch"]) || array_key_exists("batch", $context) ? $context["batch"] : (function () { throw new RuntimeError('Variable "batch" does not exist.', 76, $this->source); })()), "isMultiBatchEvent" => // line 77
(isset($context["isMultiBatchEvent"]) || array_key_exists("isMultiBatchEvent", $context) ? $context["isMultiBatchEvent"] : (function () { throw new RuntimeError('Variable "isMultiBatchEvent" does not exist.', 77, $this->source); })())]);
// line 78
yield "
</style>
";
}
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
yield from [];
}
// line 84
/**
* @return iterable<null|scalar|\Stringable>
*/
public function block_content(array $context, array $blocks = []): iterable
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "content"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "content"));
// line 85
yield " ";
// line 86
yield " ";
$context["lang"] = Twig\Extension\CoreExtension::lower($this->env->getCharset(), CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 86, $this->source); })()), "request", [], "any", false, false, false, 86), "get", ["lang", ((CoreExtension::getAttribute($this->env, $this->source, ($context["event"] ?? null), "lang", [], "any", true, true, false, 86)) ? (Twig\Extension\CoreExtension::default(CoreExtension::getAttribute($this->env, $this->source, (isset($context["event"]) || array_key_exists("event", $context) ? $context["event"] : (function () { throw new RuntimeError('Variable "event" does not exist.', 86, $this->source); })()), "lang", [], "any", false, false, false, 86), "de")) : ("de"))], "method", false, false, false, 86));
// line 87
yield " ";
$context["isEnglish"] = ((isset($context["lang"]) || array_key_exists("lang", $context) ? $context["lang"] : (function () { throw new RuntimeError('Variable "lang" does not exist.', 87, $this->source); })()) == "en");
// line 88
yield "
";
// line 90
yield " ";
$context["navbar"] = ((((isset($context["isEnglish"]) || array_key_exists("isEnglish", $context) ? $context["isEnglish"] : (function () { throw new RuntimeError('Variable "isEnglish" does not exist.', 90, $this->source); })()) && CoreExtension::getAttribute($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); })()), "navbarEn", [], "any", false, false, false, 90))) ? (CoreExtension::getAttribute($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); })()), "navbarEn", [], "any", false, false, false, 90)) : (CoreExtension::getAttribute($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); })()), "navbar", [], "any", false, false, false, 90)));
// line 91
yield " ";
$context["teaser"] = ((((isset($context["isEnglish"]) || array_key_exists("isEnglish", $context) ? $context["isEnglish"] : (function () { throw new RuntimeError('Variable "isEnglish" does not exist.', 91, $this->source); })()) && CoreExtension::getAttribute($this->env, $this->source, (isset($context["event"]) || array_key_exists("event", $context) ? $context["event"] : (function () { throw new RuntimeError('Variable "event" does not exist.', 91, $this->source); })()), "teaserEn", [], "any", false, false, false, 91))) ? (CoreExtension::getAttribute($this->env, $this->source, (isset($context["event"]) || array_key_exists("event", $context) ? $context["event"] : (function () { throw new RuntimeError('Variable "event" does not exist.', 91, $this->source); })()), "teaserEn", [], "any", false, false, false, 91)) : (CoreExtension::getAttribute($this->env, $this->source, (isset($context["event"]) || array_key_exists("event", $context) ? $context["event"] : (function () { throw new RuntimeError('Variable "event" does not exist.', 91, $this->source); })()), "teaser", [], "any", false, false, false, 91)));
// line 92
yield " ";
$context["content"] = ((((isset($context["isEnglish"]) || array_key_exists("isEnglish", $context) ? $context["isEnglish"] : (function () { throw new RuntimeError('Variable "isEnglish" does not exist.', 92, $this->source); })()) && CoreExtension::getAttribute($this->env, $this->source, (isset($context["event"]) || array_key_exists("event", $context) ? $context["event"] : (function () { throw new RuntimeError('Variable "event" does not exist.', 92, $this->source); })()), "contentEn", [], "any", false, false, false, 92))) ? (CoreExtension::getAttribute($this->env, $this->source, (isset($context["event"]) || array_key_exists("event", $context) ? $context["event"] : (function () { throw new RuntimeError('Variable "event" does not exist.', 92, $this->source); })()), "contentEn", [], "any", false, false, false, 92)) : (CoreExtension::getAttribute($this->env, $this->source, (isset($context["event"]) || array_key_exists("event", $context) ? $context["event"] : (function () { throw new RuntimeError('Variable "event" does not exist.', 92, $this->source); })()), "content", [], "any", false, false, false, 92)));
// line 93
yield " ";
$context["contentTwig"] = ((((isset($context["isEnglish"]) || array_key_exists("isEnglish", $context) ? $context["isEnglish"] : (function () { throw new RuntimeError('Variable "isEnglish" does not exist.', 93, $this->source); })()) && CoreExtension::getAttribute($this->env, $this->source, (isset($context["event"]) || array_key_exists("event", $context) ? $context["event"] : (function () { throw new RuntimeError('Variable "event" does not exist.', 93, $this->source); })()), "contentTwigEn", [], "any", false, false, false, 93))) ? (CoreExtension::getAttribute($this->env, $this->source, (isset($context["event"]) || array_key_exists("event", $context) ? $context["event"] : (function () { throw new RuntimeError('Variable "event" does not exist.', 93, $this->source); })()), "contentTwigEn", [], "any", false, false, false, 93)) : (CoreExtension::getAttribute($this->env, $this->source, (isset($context["event"]) || array_key_exists("event", $context) ? $context["event"] : (function () { throw new RuntimeError('Variable "event" does not exist.', 93, $this->source); })()), "contentTwig", [], "any", false, false, false, 93)));
// line 94
yield " ";
$context["postCtaContent"] = ((((isset($context["isEnglish"]) || array_key_exists("isEnglish", $context) ? $context["isEnglish"] : (function () { throw new RuntimeError('Variable "isEnglish" does not exist.', 94, $this->source); })()) && CoreExtension::getAttribute($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); })()), "postCtaContentEn", [], "any", false, false, false, 94))) ? (CoreExtension::getAttribute($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); })()), "postCtaContentEn", [], "any", false, false, false, 94)) : (CoreExtension::getAttribute($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); })()), "postCtaContent", [], "any", false, false, false, 94)));
// line 95
yield "
<!-- start part navbar -->
";
// line 97
yield Twig\Extension\CoreExtension::include($this->env, $context, Twig\Extension\StringLoaderExtension::templateFromString($this->env, (isset($context["navbar"]) || array_key_exists("navbar", $context) ? $context["navbar"] : (function () { throw new RuntimeError('Variable "navbar" does not exist.', 97, $this->source); })())), ["event" => // line 98
(isset($context["event"]) || array_key_exists("event", $context) ? $context["event"] : (function () { throw new RuntimeError('Variable "event" does not exist.', 98, $this->source); })()), "batch" => // line 99
(isset($context["batch"]) || array_key_exists("batch", $context) ? $context["batch"] : (function () { throw new RuntimeError('Variable "batch" does not exist.', 99, $this->source); })()), "isMultiBatchEvent" => // line 100
(isset($context["isMultiBatchEvent"]) || array_key_exists("isMultiBatchEvent", $context) ? $context["isMultiBatchEvent"] : (function () { throw new RuntimeError('Variable "isMultiBatchEvent" does not exist.', 100, $this->source); })()), "lang" => // line 101
(isset($context["lang"]) || array_key_exists("lang", $context) ? $context["lang"] : (function () { throw new RuntimeError('Variable "lang" does not exist.', 101, $this->source); })()), "isEnglish" => // line 102
(isset($context["isEnglish"]) || array_key_exists("isEnglish", $context) ? $context["isEnglish"] : (function () { throw new RuntimeError('Variable "isEnglish" does not exist.', 102, $this->source); })()), "phrases" => // line 103
(isset($context["phrases"]) || array_key_exists("phrases", $context) ? $context["phrases"] : (function () { throw new RuntimeError('Variable "phrases" does not exist.', 103, $this->source); })())]);
// line 104
yield "
<!-- end part navbar -->
<!-- start part title, time and location -->
";
// line 108
yield Twig\Extension\CoreExtension::include($this->env, $context, Twig\Extension\StringLoaderExtension::templateFromString($this->env, (isset($context["teaser"]) || array_key_exists("teaser", $context) ? $context["teaser"] : (function () { throw new RuntimeError('Variable "teaser" does not exist.', 108, $this->source); })())), ["event" => // line 109
(isset($context["event"]) || array_key_exists("event", $context) ? $context["event"] : (function () { throw new RuntimeError('Variable "event" does not exist.', 109, $this->source); })()), "batch" => // line 110
(isset($context["batch"]) || array_key_exists("batch", $context) ? $context["batch"] : (function () { throw new RuntimeError('Variable "batch" does not exist.', 110, $this->source); })()), "isMultiBatchEvent" => // line 111
(isset($context["isMultiBatchEvent"]) || array_key_exists("isMultiBatchEvent", $context) ? $context["isMultiBatchEvent"] : (function () { throw new RuntimeError('Variable "isMultiBatchEvent" does not exist.', 111, $this->source); })()), "lang" => // line 112
(isset($context["lang"]) || array_key_exists("lang", $context) ? $context["lang"] : (function () { throw new RuntimeError('Variable "lang" does not exist.', 112, $this->source); })()), "isEnglish" => // line 113
(isset($context["isEnglish"]) || array_key_exists("isEnglish", $context) ? $context["isEnglish"] : (function () { throw new RuntimeError('Variable "isEnglish" does not exist.', 113, $this->source); })()), "phrases" => // line 114
(isset($context["phrases"]) || array_key_exists("phrases", $context) ? $context["phrases"] : (function () { throw new RuntimeError('Variable "phrases" does not exist.', 114, $this->source); })())]);
// line 115
yield "
<!-- end part title, time and location -->
<!-- Archive Banner (SEO-optimized: no redirect) -->
";
// line 119
yield from $this->load("@StartPlatzEvent/Default/_event.part.archive-banner.html.twig", 119)->unwrap()->yield(CoreExtension::merge($context, ["event" => // line 120
(isset($context["event"]) || array_key_exists("event", $context) ? $context["event"] : (function () { throw new RuntimeError('Variable "event" does not exist.', 120, $this->source); })()), "isEnglish" => // line 121
(isset($context["isEnglish"]) || array_key_exists("isEnglish", $context) ? $context["isEnglish"] : (function () { throw new RuntimeError('Variable "isEnglish" does not exist.', 121, $this->source); })())]));
// line 123
yield " <!-- end archive banner -->
";
// line 125
if ((($tmp = CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 125, $this->source); })()), "session", [], "any", false, false, false, 125), "flashbag", [], "any", false, false, false, 125), "has", ["notice"], "method", false, false, false, 125)) && $tmp instanceof Markup ? (string) $tmp : $tmp)) {
// line 126
yield " <!-- start part flashbag notices -->
<section class=\"bg-sp-grey py-3\">
<div class=\"container\">
<div class=\"content-wrapper content-background\">
";
// line 130
$context['_parent'] = $context;
$context['_seq'] = CoreExtension::ensureTraversable(CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 130, $this->source); })()), "session", [], "any", false, false, false, 130), "flashbag", [], "any", false, false, false, 130), "get", ["notice"], "method", false, false, false, 130));
foreach ($context['_seq'] as $context["_key"] => $context["flashMessage"]) {
// line 131
yield " <div class=\"text-center alert ";
if (CoreExtension::inFilter("SUCCESS", $context["flashMessage"])) {
yield "alert-success";
} elseif (CoreExtension::inFilter("ERROR", $context["flashMessage"])) {
yield "alert-danger";
} else {
yield "alert-default";
}
yield "\" role=\"alert\">";
yield Twig\Extension\CoreExtension::replace($context["flashMessage"], ["SUCCESS" => ""]);
yield "</div>
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_key'], $context['flashMessage'], $context['_parent']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 133
yield " ";
yield (isset($context["editFeedback"]) || array_key_exists("editFeedback", $context) ? $context["editFeedback"] : (function () { throw new RuntimeError('Variable "editFeedback" does not exist.', 133, $this->source); })());
yield "
</div> <!-- End of content-wrapper -->
</div>
</section>
<!-- end part flashbag notices -->
";
}
// line 139
yield "
";
// line 141
if ((((isset($context["batch"]) || array_key_exists("batch", $context) ? $context["batch"] : (function () { throw new RuntimeError('Variable "batch" does not exist.', 141, $this->source); })()) && (isset($context["application"]) || array_key_exists("application", $context) ? $context["application"] : (function () { throw new RuntimeError('Variable "application" does not exist.', 141, $this->source); })())) && CoreExtension::getAttribute($this->env, $this->source, (isset($context["application"]) || array_key_exists("application", $context) ? $context["application"] : (function () { throw new RuntimeError('Variable "application" does not exist.', 141, $this->source); })()), "applicationStatus", [], "any", false, false, false, 141))) {
// line 142
yield " <!-- start part feedback application process -->
";
// line 143
yield from $this->load("@StartPlatzEvent/Default/_event.part.feedback-application-process.html.twig", 143)->unwrap()->yield($context);
// line 144
yield " <!-- end part feedback application process -->
";
}
// line 146
yield "
<!-- start part content -->
";
// line 148
yield Twig\Extension\CoreExtension::include($this->env, $context, Twig\Extension\StringLoaderExtension::templateFromString($this->env, (isset($context["content"]) || array_key_exists("content", $context) ? $context["content"] : (function () { throw new RuntimeError('Variable "content" does not exist.', 148, $this->source); })())), ["event" => // line 149
(isset($context["event"]) || array_key_exists("event", $context) ? $context["event"] : (function () { throw new RuntimeError('Variable "event" does not exist.', 149, $this->source); })()), "batch" => // line 150
(isset($context["batch"]) || array_key_exists("batch", $context) ? $context["batch"] : (function () { throw new RuntimeError('Variable "batch" does not exist.', 150, $this->source); })()), "isMultiBatchEvent" => // line 151
(isset($context["isMultiBatchEvent"]) || array_key_exists("isMultiBatchEvent", $context) ? $context["isMultiBatchEvent"] : (function () { throw new RuntimeError('Variable "isMultiBatchEvent" does not exist.', 151, $this->source); })()), "lang" => // line 152
(isset($context["lang"]) || array_key_exists("lang", $context) ? $context["lang"] : (function () { throw new RuntimeError('Variable "lang" does not exist.', 152, $this->source); })()), "isEnglish" => // line 153
(isset($context["isEnglish"]) || array_key_exists("isEnglish", $context) ? $context["isEnglish"] : (function () { throw new RuntimeError('Variable "isEnglish" does not exist.', 153, $this->source); })()), "phrases" => // line 154
(isset($context["phrases"]) || array_key_exists("phrases", $context) ? $context["phrases"] : (function () { throw new RuntimeError('Variable "phrases" does not exist.', 154, $this->source); })())]);
// line 155
yield "
<!-- end part content -->
";
// line 158
if ((($tmp = (isset($context["contentTwig"]) || array_key_exists("contentTwig", $context) ? $context["contentTwig"] : (function () { throw new RuntimeError('Variable "contentTwig" does not exist.', 158, $this->source); })())) && $tmp instanceof Markup ? (string) $tmp : $tmp)) {
// line 159
yield " <!-- start part contentTwig (dynamic Twig content) -->
";
// line 160
yield Twig\Extension\CoreExtension::include($this->env, $context, Twig\Extension\StringLoaderExtension::templateFromString($this->env, (isset($context["contentTwig"]) || array_key_exists("contentTwig", $context) ? $context["contentTwig"] : (function () { throw new RuntimeError('Variable "contentTwig" does not exist.', 160, $this->source); })())), ["event" => // line 161
(isset($context["event"]) || array_key_exists("event", $context) ? $context["event"] : (function () { throw new RuntimeError('Variable "event" does not exist.', 161, $this->source); })()), "batch" => // line 162
(isset($context["batch"]) || array_key_exists("batch", $context) ? $context["batch"] : (function () { throw new RuntimeError('Variable "batch" does not exist.', 162, $this->source); })()), "isMultiBatchEvent" => // line 163
(isset($context["isMultiBatchEvent"]) || array_key_exists("isMultiBatchEvent", $context) ? $context["isMultiBatchEvent"] : (function () { throw new RuntimeError('Variable "isMultiBatchEvent" does not exist.', 163, $this->source); })()), "futureBatches" => // line 164
(isset($context["futureBatches"]) || array_key_exists("futureBatches", $context) ? $context["futureBatches"] : (function () { throw new RuntimeError('Variable "futureBatches" does not exist.', 164, $this->source); })()), "allBatches" => // line 165
(isset($context["allBatches"]) || array_key_exists("allBatches", $context) ? $context["allBatches"] : (function () { throw new RuntimeError('Variable "allBatches" does not exist.', 165, $this->source); })()), "lang" => // line 166
(isset($context["lang"]) || array_key_exists("lang", $context) ? $context["lang"] : (function () { throw new RuntimeError('Variable "lang" does not exist.', 166, $this->source); })()), "isEnglish" => // line 167
(isset($context["isEnglish"]) || array_key_exists("isEnglish", $context) ? $context["isEnglish"] : (function () { throw new RuntimeError('Variable "isEnglish" does not exist.', 167, $this->source); })()), "phrases" => // line 168
(isset($context["phrases"]) || array_key_exists("phrases", $context) ? $context["phrases"] : (function () { throw new RuntimeError('Variable "phrases" does not exist.', 168, $this->source); })())]);
// line 169
yield "
<!-- end part contentTwig -->
";
}
// line 172
yield "
<!-- start part anmeldung -->
";
// line 175
yield from $this->load("@StartPlatzEvent/Default/_section.anmeldung.html.twig", 175)->unwrap()->yield(CoreExtension::merge($context, ["event" => // line 176
(isset($context["event"]) || array_key_exists("event", $context) ? $context["event"] : (function () { throw new RuntimeError('Variable "event" does not exist.', 176, $this->source); })()), "batch" => // line 177
(isset($context["batch"]) || array_key_exists("batch", $context) ? $context["batch"] : (function () { throw new RuntimeError('Variable "batch" does not exist.', 177, $this->source); })()), "batchIsOpen" => // line 178
(isset($context["batchIsOpen"]) || array_key_exists("batchIsOpen", $context) ? $context["batchIsOpen"] : (function () { throw new RuntimeError('Variable "batchIsOpen" does not exist.', 178, $this->source); })()), "application" => // line 179
(isset($context["application"]) || array_key_exists("application", $context) ? $context["application"] : (function () { throw new RuntimeError('Variable "application" does not exist.', 179, $this->source); })()), "settings" => // line 180
(isset($context["settings"]) || array_key_exists("settings", $context) ? $context["settings"] : (function () { throw new RuntimeError('Variable "settings" does not exist.', 180, $this->source); })()), "isMultiBatchEvent" => // line 181
(isset($context["isMultiBatchEvent"]) || array_key_exists("isMultiBatchEvent", $context) ? $context["isMultiBatchEvent"] : (function () { throw new RuntimeError('Variable "isMultiBatchEvent" does not exist.', 181, $this->source); })()), "futureBatches" => // line 182
(isset($context["futureBatches"]) || array_key_exists("futureBatches", $context) ? $context["futureBatches"] : (function () { throw new RuntimeError('Variable "futureBatches" does not exist.', 182, $this->source); })()), "lang" => // line 183
(isset($context["lang"]) || array_key_exists("lang", $context) ? $context["lang"] : (function () { throw new RuntimeError('Variable "lang" does not exist.', 183, $this->source); })()), "isEnglish" => // line 184
(isset($context["isEnglish"]) || array_key_exists("isEnglish", $context) ? $context["isEnglish"] : (function () { throw new RuntimeError('Variable "isEnglish" does not exist.', 184, $this->source); })()), "phrases" => // line 185
(isset($context["phrases"]) || array_key_exists("phrases", $context) ? $context["phrases"] : (function () { throw new RuntimeError('Variable "phrases" does not exist.', 185, $this->source); })())]));
// line 187
yield " <!-- end part anmeldung -->
<!-- start tags -->
";
// line 190
yield from $this->load("@StartPlatzEvent/Default/_section.tags.html.twig", 190)->unwrap()->yield($context);
// line 191
yield " <!-- end tags -->
<!-- start post cta content -->
";
// line 194
if ((($tmp = (isset($context["postCtaContent"]) || array_key_exists("postCtaContent", $context) ? $context["postCtaContent"] : (function () { throw new RuntimeError('Variable "postCtaContent" does not exist.', 194, $this->source); })())) && $tmp instanceof Markup ? (string) $tmp : $tmp)) {
// line 195
yield " ";
yield Twig\Extension\CoreExtension::include($this->env, $context, Twig\Extension\StringLoaderExtension::templateFromString($this->env, (isset($context["postCtaContent"]) || array_key_exists("postCtaContent", $context) ? $context["postCtaContent"] : (function () { throw new RuntimeError('Variable "postCtaContent" does not exist.', 195, $this->source); })())), ["event" => // line 196
(isset($context["event"]) || array_key_exists("event", $context) ? $context["event"] : (function () { throw new RuntimeError('Variable "event" does not exist.', 196, $this->source); })()), "batch" => // line 197
(isset($context["batch"]) || array_key_exists("batch", $context) ? $context["batch"] : (function () { throw new RuntimeError('Variable "batch" does not exist.', 197, $this->source); })()), "isMultiBatchEvent" => // line 198
(isset($context["isMultiBatchEvent"]) || array_key_exists("isMultiBatchEvent", $context) ? $context["isMultiBatchEvent"] : (function () { throw new RuntimeError('Variable "isMultiBatchEvent" does not exist.', 198, $this->source); })()), "lang" => // line 199
(isset($context["lang"]) || array_key_exists("lang", $context) ? $context["lang"] : (function () { throw new RuntimeError('Variable "lang" does not exist.', 199, $this->source); })()), "isEnglish" => // line 200
(isset($context["isEnglish"]) || array_key_exists("isEnglish", $context) ? $context["isEnglish"] : (function () { throw new RuntimeError('Variable "isEnglish" does not exist.', 200, $this->source); })()), "phrases" => // line 201
(isset($context["phrases"]) || array_key_exists("phrases", $context) ? $context["phrases"] : (function () { throw new RuntimeError('Variable "phrases" does not exist.', 201, $this->source); })())]);
// line 202
yield "
";
}
// line 204
yield " <!-- end post cta content -->
";
// line 206
if ((($tmp = (isset($context["speakers"]) || array_key_exists("speakers", $context) ? $context["speakers"] : (function () { throw new RuntimeError('Variable "speakers" does not exist.', 206, $this->source); })())) && $tmp instanceof Markup ? (string) $tmp : $tmp)) {
// line 207
yield " <!-- start part speakers and partners -->
";
// line 208
yield from $this->load("@StartPlatzEvent/Default/_section.speakers-and-partners.html.twig", 208)->unwrap()->yield($context);
// line 209
yield " <!-- end part speakers and partners -->
";
}
// line 211
yield "
<!-- start part past batches -->
";
// line 213
yield from $this->load("@StartPlatzEvent/Default/_section.past-batches.html.twig", 213)->unwrap()->yield(CoreExtension::merge($context, ["event" => // line 214
(isset($context["event"]) || array_key_exists("event", $context) ? $context["event"] : (function () { throw new RuntimeError('Variable "event" does not exist.', 214, $this->source); })()), "isMultiBatchEvent" => // line 215
(isset($context["isMultiBatchEvent"]) || array_key_exists("isMultiBatchEvent", $context) ? $context["isMultiBatchEvent"] : (function () { throw new RuntimeError('Variable "isMultiBatchEvent" does not exist.', 215, $this->source); })()), "pastBatches" => // line 216
(isset($context["pastBatches"]) || array_key_exists("pastBatches", $context) ? $context["pastBatches"] : (function () { throw new RuntimeError('Variable "pastBatches" does not exist.', 216, $this->source); })()), "isEnglish" => // line 217
(isset($context["isEnglish"]) || array_key_exists("isEnglish", $context) ? $context["isEnglish"] : (function () { throw new RuntimeError('Variable "isEnglish" does not exist.', 217, $this->source); })())]));
// line 219
yield " <!-- end part past batches -->
";
// line 221
if ((CoreExtension::getAttribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 221, $this->source); })()), "user", [], "any", false, false, false, 221) && (isset($context["batch"]) || array_key_exists("batch", $context) ? $context["batch"] : (function () { throw new RuntimeError('Variable "batch" does not exist.', 221, $this->source); })()))) {
// line 222
yield " <!-- start part promote this event -->
";
// line 223
yield from $this->load("@StartPlatzEvent/Default/_section.promote-this-event.html.twig", 223)->unwrap()->yield($context);
// line 224
yield " <!-- end part promote this event -->
";
}
// line 226
yield "
";
// line 228
if ((((CoreExtension::getAttribute($this->env, $this->source, ($context["app"] ?? null), "user", [], "any", true, true, false, 228) && array_key_exists("application", $context)) && !(null === (isset($context["application"]) || array_key_exists("application", $context) ? $context["application"] : (function () { throw new RuntimeError('Variable "application" does not exist.', 228, $this->source); })()))) && CoreExtension::getAttribute($this->env, $this->source, (isset($context["application"]) || array_key_exists("application", $context) ? $context["application"] : (function () { throw new RuntimeError('Variable "application" does not exist.', 228, $this->source); })()), "canReadList", [], "any", false, false, false, 228))) {
// line 229
yield " <section class=\"bg-sp-grey py-3\">
<div class=\"container\">
<div class=\"content-wrapper content-background\">
Hier kannst Du die Teilnehmerliste einsehen
<a class=\"btn btn-outline-dark btn-sm\" href=\"";
// line 233
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("admin_event_participants", ["id" => CoreExtension::getAttribute($this->env, $this->source, (isset($context["event"]) || array_key_exists("event", $context) ? $context["event"] : (function () { throw new RuntimeError('Variable "event" does not exist.', 233, $this->source); })()), "id", [], "any", false, false, false, 233)]), "html", null, true);
yield "\" role=\"button\">participants</a>
</div>
</div>
</section>
";
}
// line 238
yield "
";
// line 239
if (CoreExtension::getAttribute($this->env, $this->source, ($context["app"] ?? null), "user", [], "any", true, true, false, 239)) {
// line 240
yield " ";
if ((CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, ($context["app"] ?? null), "user", [], "any", false, true, false, 240), "admin", [], "any", true, true, false, 240) && CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 240, $this->source); })()), "user", [], "any", false, false, false, 240), "admin", [], "any", false, false, false, 240))) {
// line 241
yield " <!-- start part startplatz admin section -->
";
// line 242
yield from $this->load("@StartPlatzEvent/Default/_section.startplatz-admin-section.html.twig", 242)->unwrap()->yield($context);
// line 243
yield " <!-- end part startplatz admin section -->
";
}
// line 245
yield " ";
}
// line 246
yield "
";
// line 248
yield " ";
if ((($tmp = CoreExtension::getAttribute($this->env, $this->source, (isset($context["event"]) || array_key_exists("event", $context) ? $context["event"] : (function () { throw new RuntimeError('Variable "event" does not exist.', 248, $this->source); })()), "hasEnglishVersion", [], "any", false, false, false, 248)) && $tmp instanceof Markup ? (string) $tmp : $tmp)) {
// line 249
yield " <div class=\"language-switcher-container\">
<div class=\"language-switcher\">
<a href=\"?lang=de\" class=\"lang-link ";
// line 251
yield ((((isset($context["lang"]) || array_key_exists("lang", $context) ? $context["lang"] : (function () { throw new RuntimeError('Variable "lang" does not exist.', 251, $this->source); })()) == "de")) ? ("active") : (""));
yield "\" title=\"Deutsch\">
<span class=\"flag\">🇩🇪</span>
<span class=\"lang-code\">DE</span>
</a>
<span class=\"separator\">|</span>
<a href=\"?lang=en\" class=\"lang-link ";
// line 256
yield ((((isset($context["lang"]) || array_key_exists("lang", $context) ? $context["lang"] : (function () { throw new RuntimeError('Variable "lang" does not exist.', 256, $this->source); })()) == "en")) ? ("active") : (""));
yield "\" title=\"English\">
<span class=\"flag\">🇬🇧</span>
<span class=\"lang-code\">EN</span>
</a>
</div>
</div>
<style>
.language-switcher-container {
position: fixed;
top: 120px;
right: 20px;
z-index: 1000;
}
.language-switcher {
background: white;
border: 2px solid #9632FF;
border-radius: 25px;
padding: 8px 16px;
box-shadow: 0 2px 8px rgba(0,0,0,0.15);
display: flex;
align-items: center;
gap: 8px;
}
.language-switcher .lang-link {
display: flex;
align-items: center;
gap: 4px;
text-decoration: none;
color: #333;
font-weight: 500;
padding: 4px 8px;
border-radius: 15px;
transition: all 0.2s;
}
.language-switcher .lang-link:hover {
background-color: #f0f0f0;
}
.language-switcher .lang-link.active {
background-color: #9632FF;
color: white;
}
.language-switcher .flag {
font-size: 20px;
line-height: 1;
}
.language-switcher .lang-code {
font-size: 14px;
font-weight: 600;
}
.language-switcher .separator {
color: #ccc;
font-weight: 300;
}
@media (max-width: 768px) {
.language-switcher-container {
top: 80px;
right: 10px;
}
.language-switcher {
padding: 6px 12px;
}
}
</style>
";
}
// line 320
yield "
<!-- homepage event single page ends -->
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
yield from [];
}
// line 324
/**
* @return iterable<null|scalar|\Stringable>
*/
public function block_footer(array $context, array $blocks = []): iterable
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "footer"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "footer"));
// line 325
yield " ";
if ((($tmp = !((array_key_exists("embed", $context)) ? (Twig\Extension\CoreExtension::default((isset($context["embed"]) || array_key_exists("embed", $context) ? $context["embed"] : (function () { throw new RuntimeError('Variable "embed" does not exist.', 325, $this->source); })()), false)) : (false))) && $tmp instanceof Markup ? (string) $tmp : $tmp)) {
// line 326
yield " ";
yield from $this->load("@StartPlatzWebsiteBundle/Default/footerBootstrap40.html.twig", 326)->unwrap()->yield($context);
// line 327
yield " ";
}
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
yield from [];
}
// line 330
/**
* @return iterable<null|scalar|\Stringable>
*/
public function block_infiniteLoop(array $context, array $blocks = []): iterable
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "infiniteLoop"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "infiniteLoop"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
yield from [];
}
// line 331
/**
* @return iterable<null|scalar|\Stringable>
*/
public function block_javascriptInfiniteLoop(array $context, array $blocks = []): iterable
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "javascriptInfiniteLoop"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "javascriptInfiniteLoop"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
yield from [];
}
// line 332
/**
* @return iterable<null|scalar|\Stringable>
*/
public function block_ajax_helpers(array $context, array $blocks = []): iterable
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "ajax_helpers"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "ajax_helpers"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
yield from [];
}
// line 334
/**
* @return iterable<null|scalar|\Stringable>
*/
public function block_javascripts(array $context, array $blocks = []): iterable
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "javascripts"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "javascripts"));
// line 335
yield " ";
if ((($tmp = !Twig\Extension\CoreExtension::testEmpty(CoreExtension::getAttribute($this->env, $this->source, (isset($context["event"]) || array_key_exists("event", $context) ? $context["event"] : (function () { throw new RuntimeError('Variable "event" does not exist.', 335, $this->source); })()), "additionalJs", [], "any", false, false, false, 335))) && $tmp instanceof Markup ? (string) $tmp : $tmp)) {
// line 336
yield " <!-- Additional JavaScript for this event -->
<script>
// Available variables: event, batch, lang, isEnglish
var eventData = {
id: ";
// line 340
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, (isset($context["event"]) || array_key_exists("event", $context) ? $context["event"] : (function () { throw new RuntimeError('Variable "event" does not exist.', 340, $this->source); })()), "id", [], "any", false, false, false, 340), "html", null, true);
yield ",
title: \"";
// line 341
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, (isset($context["event"]) || array_key_exists("event", $context) ? $context["event"] : (function () { throw new RuntimeError('Variable "event" does not exist.', 341, $this->source); })()), "title", [], "any", false, false, false, 341), "js"), "html", null, true);
yield "\",
slug: \"";
// line 342
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, (isset($context["event"]) || array_key_exists("event", $context) ? $context["event"] : (function () { throw new RuntimeError('Variable "event" does not exist.', 342, $this->source); })()), "slug", [], "any", false, false, false, 342), "js"), "html", null, true);
yield "\",
lang: \"";
// line 343
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape((isset($context["lang"]) || array_key_exists("lang", $context) ? $context["lang"] : (function () { throw new RuntimeError('Variable "lang" does not exist.', 343, $this->source); })()), "html", null, true);
yield "\",
isEnglish: ";
// line 344
yield (((($tmp = (isset($context["isEnglish"]) || array_key_exists("isEnglish", $context) ? $context["isEnglish"] : (function () { throw new RuntimeError('Variable "isEnglish" does not exist.', 344, $this->source); })())) && $tmp instanceof Markup ? (string) $tmp : $tmp)) ? ("true") : ("false"));
yield "
};
";
// line 347
yield Twig\Extension\CoreExtension::include($this->env, $context, Twig\Extension\StringLoaderExtension::templateFromString($this->env, CoreExtension::getAttribute($this->env, $this->source, (isset($context["event"]) || array_key_exists("event", $context) ? $context["event"] : (function () { throw new RuntimeError('Variable "event" does not exist.', 347, $this->source); })()), "additionalJs", [], "any", false, false, false, 347)), ["event" => // line 348
(isset($context["event"]) || array_key_exists("event", $context) ? $context["event"] : (function () { throw new RuntimeError('Variable "event" does not exist.', 348, $this->source); })()), "batch" => // line 349
(isset($context["batch"]) || array_key_exists("batch", $context) ? $context["batch"] : (function () { throw new RuntimeError('Variable "batch" does not exist.', 349, $this->source); })()), "lang" => // line 350
(isset($context["lang"]) || array_key_exists("lang", $context) ? $context["lang"] : (function () { throw new RuntimeError('Variable "lang" does not exist.', 350, $this->source); })()), "isEnglish" => // line 351
(isset($context["isEnglish"]) || array_key_exists("isEnglish", $context) ? $context["isEnglish"] : (function () { throw new RuntimeError('Variable "isEnglish" does not exist.', 351, $this->source); })())]);
// line 352
yield "
</script>
";
}
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
yield from [];
}
/**
* @codeCoverageIgnore
*/
public function getTemplateName(): string
{
return "@StartPlatzEventBundle/Default/event-single.style-startplatz.html.twig";
}
/**
* @codeCoverageIgnore
*/
public function isTraitable(): bool
{
return false;
}
/**
* @codeCoverageIgnore
*/
public function getDebugInfo(): array
{
return array ( 852 => 352, 850 => 351, 849 => 350, 848 => 349, 847 => 348, 846 => 347, 840 => 344, 836 => 343, 832 => 342, 828 => 341, 824 => 340, 818 => 336, 815 => 335, 802 => 334, 780 => 332, 758 => 331, 736 => 330, 724 => 327, 721 => 326, 718 => 325, 705 => 324, 692 => 320, 625 => 256, 617 => 251, 613 => 249, 610 => 248, 607 => 246, 604 => 245, 600 => 243, 598 => 242, 595 => 241, 592 => 240, 590 => 239, 587 => 238, 579 => 233, 573 => 229, 571 => 228, 567 => 226, 563 => 224, 561 => 223, 558 => 222, 556 => 221, 552 => 219, 550 => 217, 549 => 216, 548 => 215, 547 => 214, 546 => 213, 542 => 211, 538 => 209, 536 => 208, 533 => 207, 531 => 206, 527 => 204, 523 => 202, 521 => 201, 520 => 200, 519 => 199, 518 => 198, 517 => 197, 516 => 196, 514 => 195, 512 => 194, 507 => 191, 505 => 190, 500 => 187, 498 => 185, 497 => 184, 496 => 183, 495 => 182, 494 => 181, 493 => 180, 492 => 179, 491 => 178, 490 => 177, 489 => 176, 488 => 175, 483 => 172, 478 => 169, 476 => 168, 475 => 167, 474 => 166, 473 => 165, 472 => 164, 471 => 163, 470 => 162, 469 => 161, 468 => 160, 465 => 159, 463 => 158, 458 => 155, 456 => 154, 455 => 153, 454 => 152, 453 => 151, 452 => 150, 451 => 149, 450 => 148, 446 => 146, 442 => 144, 440 => 143, 437 => 142, 435 => 141, 431 => 139, 421 => 133, 404 => 131, 400 => 130, 394 => 126, 392 => 125, 388 => 123, 386 => 121, 385 => 120, 384 => 119, 378 => 115, 376 => 114, 375 => 113, 374 => 112, 373 => 111, 372 => 110, 371 => 109, 370 => 108, 364 => 104, 362 => 103, 361 => 102, 360 => 101, 359 => 100, 358 => 99, 357 => 98, 356 => 97, 352 => 95, 349 => 94, 346 => 93, 343 => 92, 340 => 91, 337 => 90, 334 => 88, 331 => 87, 328 => 86, 326 => 85, 313 => 84, 299 => 78, 297 => 77, 296 => 76, 295 => 75, 294 => 74, 287 => 69, 285 => 68, 282 => 67, 280 => 64, 267 => 63, 244 => 60, 231 => 56, 227 => 55, 223 => 54, 218 => 51, 212 => 49, 210 => 48, 206 => 47, 202 => 46, 198 => 45, 194 => 44, 190 => 42, 186 => 40, 183 => 39, 178 => 37, 174 => 36, 169 => 35, 166 => 34, 163 => 32, 154 => 30, 148 => 28, 146 => 27, 143 => 26, 141 => 25, 136 => 23, 131 => 22, 125 => 20, 118 => 18, 115 => 17, 112 => 16, 109 => 14, 106 => 13, 103 => 12, 100 => 11, 97 => 9, 94 => 8, 91 => 7, 89 => 6, 76 => 5, 65 => 1, 63 => 3, 61 => 2, 48 => 1,);
}
public function getSourceContext(): Source
{
return new Source("{% extends \"@StartPlatzStyleBundle/Bootstrap4/base.homepage.event-lp.html.twig\" %}
{% import \"@StartPlatzEventBundle/Admin/_macros.bs4.html.twig\" as layout %}
{% set currentPath = app.request.get('_route') %}
{% block metaData %}
{# Language Detection for SEO - uses event.lang as default if set #}
{% set lang = app.request.get('lang', event.lang|default('de'))|lower %}
{% set isEnglish = lang == 'en' %}
{# Select SEO content based on language with fallback #}
{% set seoTitle = isEnglish and event.seoTitleEn ? event.seoTitleEn : event.seoTitle %}
{% set seoDescription = isEnglish and event.seoDescriptionEn ? event.seoDescriptionEn : event.seoDescription %}
{% set seoKeyword = isEnglish and event.seoKeywordEn ? event.seoKeywordEn : event.seoKeyword %}
{# Optimize meta description for archived events #}
{% if event.status == 'archive' %}
{% set archivePrefix = isEnglish ? 'Past event from ' ~ event.startDate|date('F j, Y') ~ ': ' : 'Vergangene Veranstaltung vom ' ~ event.startDate|date('d.m.Y') ~ ': ' %}
<meta name=\"description\" content=\"{{ archivePrefix }}{{ seoDescription|slice(0, 140) }}\">
{% else %}
<meta name=\"description\" content=\"{{ seoDescription }}\">
{% endif %}
<meta name=\"keywords\" content=\"{{ seoKeyword }}\">
<meta name=\"author\" content=\"{{ event.trainer }}\">
{% if app.environment == 'prod' %}
<meta name=\"robots\" content=\"index,follow\">
{% if event.seriesTag is not empty %}
<link rel=\"canonical\" href=\"{{ path('event_series', {'seriesTag': event.seriesTag, 'lang': lang}) }}\" />
{% else %}
<link rel=\"canonical\" href=\"https://www.startplatz.de/event/{{ event.slug | url_encode }}{% if lang == 'en' %}?lang=en{% endif %}\" />
{% endif %}
{# hreflang tags for bilingual support #}
{% if event.hasEnglishVersion %}
<link rel=\"alternate\" hreflang=\"de\" href=\"https://www.startplatz.de/event/{{ event.slug | url_encode }}?lang=de\" />
<link rel=\"alternate\" hreflang=\"en\" href=\"https://www.startplatz.de/event/{{ event.slug | url_encode }}?lang=en\" />
<link rel=\"alternate\" hreflang=\"x-default\" href=\"https://www.startplatz.de/event/{{ event.slug | url_encode }}\" />
{% endif %}
{% else %}
<meta name=\"robots\" content=\"noindex,nofollow\">
{% endif %}
<!-- Open Graph with language support -->
<meta property=\"og:title\" content=\"{{ seoTitle }}\">
<meta property=\"og:description\" content=\"{{ seoDescription }}\">
<meta property=\"og:image\" content=\"{{ event.imageLink }}\">
<meta property=\"og:locale\" content=\"{{ lang == 'en' ? 'en_US' : 'de_DE' }}\">
{% if event.hasEnglishVersion %}
<meta property=\"og:locale:alternate\" content=\"{{ lang == 'en' ? 'de_DE' : 'en_US' }}\">
{% endif %}
<!-- Twitter Card -->
<meta name=\"twitter:card\" content=\"summary\">
<meta name=\"twitter:title\" content=\"{{ seoTitle }}\">
<meta name=\"twitter:description\" content=\"{{ seoDescription }}\">
<meta name=\"twitter:image\" content=\"{{ event.imageLink }}\">
{% endblock %}
{% block title %}{{ seoTitle|default(event.seoTitle) }}{% endblock %}
{% block additionalHead %}
{#
{% include \"@StartPlatzStyle/CSS/_homepage.sinlge-event.version-2023-fall.html.twig\" %}
#}
{% if event.additionalCss is not empty %}
<!-- addition css styles only for this event -->
<style>
.bg-registration {
background-color: #9632FF;
}
{{ include(template_from_string(event.additionalCss), {
'event': event,
'batch': batch,
'isMultiBatchEvent': isMultiBatchEvent
}) }}
</style>
{% endif %}
{% endblock %}
{% block content %}
{# Language Detection Logic - uses event.lang as default if set #}
{% set lang = app.request.get('lang', event.lang|default('de'))|lower %}
{% set isEnglish = lang == 'en' %}
{# Select content based on language with fallback to German #}
{% set navbar = isEnglish and event.navbarEn ? event.navbarEn : event.navbar %}
{% set teaser = isEnglish and event.teaserEn ? event.teaserEn : event.teaser %}
{% set content = isEnglish and event.contentEn ? event.contentEn : event.content %}
{% set contentTwig = isEnglish and event.contentTwigEn ? event.contentTwigEn : event.contentTwig %}
{% set postCtaContent = isEnglish and event.postCtaContentEn ? event.postCtaContentEn : event.postCtaContent %}
<!-- start part navbar -->
{{ include(template_from_string(navbar), {
'event': event,
'batch': batch,
'isMultiBatchEvent': isMultiBatchEvent,
'lang': lang,
'isEnglish': isEnglish,
'phrases': phrases
}) }}
<!-- end part navbar -->
<!-- start part title, time and location -->
{{ include(template_from_string(teaser), {
'event': event,
'batch': batch,
'isMultiBatchEvent': isMultiBatchEvent,
'lang': lang,
'isEnglish': isEnglish,
'phrases': phrases
}) }}
<!-- end part title, time and location -->
<!-- Archive Banner (SEO-optimized: no redirect) -->
{% include '@StartPlatzEvent/Default/_event.part.archive-banner.html.twig' with {
'event': event,
'isEnglish': isEnglish
} %}
<!-- end archive banner -->
{% if app.session.flashbag.has('notice') %}
<!-- start part flashbag notices -->
<section class=\"bg-sp-grey py-3\">
<div class=\"container\">
<div class=\"content-wrapper content-background\">
{% for flashMessage in app.session.flashbag.get('notice') %}
<div class=\"text-center alert {% if 'SUCCESS' in flashMessage %}alert-success{% elseif 'ERROR' in flashMessage %}alert-danger{% else %}alert-default{% endif %}\" role=\"alert\">{{ flashMessage|replace({'SUCCESS': ''})|raw }}</div>
{% endfor %}
{{ editFeedback|raw }}
</div> <!-- End of content-wrapper -->
</div>
</section>
<!-- end part flashbag notices -->
{% endif %}
{% if batch and application and application.applicationStatus %}
<!-- start part feedback application process -->
{% include \"@StartPlatzEvent/Default/_event.part.feedback-application-process.html.twig\" %}
<!-- end part feedback application process -->
{% endif %}
<!-- start part content -->
{{ include(template_from_string(content), {
'event': event,
'batch': batch,
'isMultiBatchEvent': isMultiBatchEvent,
'lang': lang,
'isEnglish': isEnglish,
'phrases': phrases
}) }}
<!-- end part content -->
{% if contentTwig %}
<!-- start part contentTwig (dynamic Twig content) -->
{{ include(template_from_string(contentTwig), {
'event': event,
'batch': batch,
'isMultiBatchEvent': isMultiBatchEvent,
'futureBatches': futureBatches,
'allBatches': allBatches,
'lang': lang,
'isEnglish': isEnglish,
'phrases': phrases
}) }}
<!-- end part contentTwig -->
{% endif %}
<!-- start part anmeldung -->
{% include \"@StartPlatzEvent/Default/_section.anmeldung.html.twig\" with {
'event': event,
'batch': batch,
'batchIsOpen': batchIsOpen,
'application': application,
'settings': settings,
'isMultiBatchEvent': isMultiBatchEvent,
'futureBatches': futureBatches,
'lang': lang,
'isEnglish': isEnglish,
'phrases': phrases
} %}
<!-- end part anmeldung -->
<!-- start tags -->
{% include \"@StartPlatzEvent/Default/_section.tags.html.twig\" %}
<!-- end tags -->
<!-- start post cta content -->
{% if postCtaContent %}
{{ include(template_from_string(postCtaContent), {
'event': event,
'batch': batch,
'isMultiBatchEvent': isMultiBatchEvent,
'lang': lang,
'isEnglish': isEnglish,
'phrases': phrases
}) }}
{% endif %}
<!-- end post cta content -->
{% if speakers %}
<!-- start part speakers and partners -->
{% include \"@StartPlatzEvent/Default/_section.speakers-and-partners.html.twig\" %}
<!-- end part speakers and partners -->
{% endif %}
<!-- start part past batches -->
{% include \"@StartPlatzEvent/Default/_section.past-batches.html.twig\" with {
'event': event,
'isMultiBatchEvent': isMultiBatchEvent,
'pastBatches': pastBatches,
'isEnglish': isEnglish
} %}
<!-- end part past batches -->
{% if app.user and batch %}
<!-- start part promote this event -->
{% include \"@StartPlatzEvent/Default/_section.promote-this-event.html.twig\" %}
<!-- end part promote this event -->
{% endif %}
{% if app.user is defined and application is defined and application is not null and application.canReadList %}
<section class=\"bg-sp-grey py-3\">
<div class=\"container\">
<div class=\"content-wrapper content-background\">
Hier kannst Du die Teilnehmerliste einsehen
<a class=\"btn btn-outline-dark btn-sm\" href=\"{{ path('admin_event_participants', {id: event.id} ) }}\" role=\"button\">participants</a>
</div>
</div>
</section>
{% endif %}
{% if app.user is defined %}
{% if app.user.admin is defined and app.user.admin %}
<!-- start part startplatz admin section -->
{% include \"@StartPlatzEvent/Default/_section.startplatz-admin-section.html.twig\" %}
<!-- end part startplatz admin section -->
{% endif %}
{% endif %}
{# Language Switcher Component #}
{% if event.hasEnglishVersion %}
<div class=\"language-switcher-container\">
<div class=\"language-switcher\">
<a href=\"?lang=de\" class=\"lang-link {{ lang == 'de' ? 'active' : '' }}\" title=\"Deutsch\">
<span class=\"flag\">🇩🇪</span>
<span class=\"lang-code\">DE</span>
</a>
<span class=\"separator\">|</span>
<a href=\"?lang=en\" class=\"lang-link {{ lang == 'en' ? 'active' : '' }}\" title=\"English\">
<span class=\"flag\">🇬🇧</span>
<span class=\"lang-code\">EN</span>
</a>
</div>
</div>
<style>
.language-switcher-container {
position: fixed;
top: 120px;
right: 20px;
z-index: 1000;
}
.language-switcher {
background: white;
border: 2px solid #9632FF;
border-radius: 25px;
padding: 8px 16px;
box-shadow: 0 2px 8px rgba(0,0,0,0.15);
display: flex;
align-items: center;
gap: 8px;
}
.language-switcher .lang-link {
display: flex;
align-items: center;
gap: 4px;
text-decoration: none;
color: #333;
font-weight: 500;
padding: 4px 8px;
border-radius: 15px;
transition: all 0.2s;
}
.language-switcher .lang-link:hover {
background-color: #f0f0f0;
}
.language-switcher .lang-link.active {
background-color: #9632FF;
color: white;
}
.language-switcher .flag {
font-size: 20px;
line-height: 1;
}
.language-switcher .lang-code {
font-size: 14px;
font-weight: 600;
}
.language-switcher .separator {
color: #ccc;
font-weight: 300;
}
@media (max-width: 768px) {
.language-switcher-container {
top: 80px;
right: 10px;
}
.language-switcher {
padding: 6px 12px;
}
}
</style>
{% endif %}
<!-- homepage event single page ends -->
{% endblock %}
{% block footer %}
{% if not embed|default(false) %}
{% include '@StartPlatzWebsiteBundle/Default/footerBootstrap40.html.twig' %}
{% endif %}
{% endblock %}
{% block infiniteLoop %}{% endblock %}
{% block javascriptInfiniteLoop %}{% endblock %}
{% block ajax_helpers %}{% endblock %}
{% block javascripts %}
{% if event.additionalJs is not empty %}
<!-- Additional JavaScript for this event -->
<script>
// Available variables: event, batch, lang, isEnglish
var eventData = {
id: {{ event.id }},
title: \"{{ event.title|e('js') }}\",
slug: \"{{ event.slug|e('js') }}\",
lang: \"{{ lang }}\",
isEnglish: {{ isEnglish ? 'true' : 'false' }}
};
{{ include(template_from_string(event.additionalJs), {
'event': event,
'batch': batch,
'lang': lang,
'isEnglish': isEnglish
})|raw }}
</script>
{% endif %}
{% endblock %}
", "@StartPlatzEventBundle/Default/event-single.style-startplatz.html.twig", "/var/www/html/src/StartPlatz/Bundle/EventBundle/Resources/views/Default/event-single.style-startplatz.html.twig");
}
}