<?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;
/* content/event/view.html.twig */
class __TwigTemplate_e51032d93360fc5037ae5e5c69ce80ee 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->parent = false;
$this->blocks = [
];
$this->sandbox = $this->extensions[SandboxExtension::class];
$this->checkSecurity();
}
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", "content/event/view.html.twig"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "content/event/view.html.twig"));
// line 1
$context['_parent'] = $context;
$context['_seq'] = CoreExtension::ensureTraversable($this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context, "relations", "events"));
foreach ($context['_seq'] as $context["_key"] => $context["event"]) {
// line 2
yield " <ul>
<li>
";
// line 4
if (CoreExtension::getAttribute($this->env, $this->source, $context["event"], "eventStart", [], "any", false, false, true, 4)) {
// line 5
yield " <small><i>";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Twig\Extension\CoreExtension']->formatDate($this->sandbox->ensureToStringAllowed(CoreExtension::getAttribute($this->env, $this->source, $context["event"], "eventStart", [], "any", false, false, true, 5), 5, $this->source), "d.m.Y"), "html", null, true);
yield "</i></small>
";
// line 6
if (CoreExtension::getAttribute($this->env, $this->source, $context["event"], "eventStart", [], "any", false, false, true, 6)) {
// line 7
yield " <small><i> bis ";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Twig\Extension\CoreExtension']->formatDate($this->sandbox->ensureToStringAllowed(CoreExtension::getAttribute($this->env, $this->source, $context["event"], "eventEnd", [], "any", false, false, true, 7), 7, $this->source), "d.m.Y"), "html", null, true);
yield "</i></small>
";
}
// line 9
yield " ";
}
// line 10
yield " <h2 class=\"event\">";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->sandbox->ensureToStringAllowed(CoreExtension::getAttribute($this->env, $this->source, $context["event"], "title", [], "any", false, false, true, 10), 10, $this->source), "html", null, true);
yield "</h2>
";
// line 11
yield $this->sandbox->ensureToStringAllowed(CoreExtension::getAttribute($this->env, $this->source, $context["event"], "description", [], "any", false, false, true, 11), 11, $this->source);
yield "
</li>
</ul>
<hr />
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_key'], $context['event'], $context['_parent']);
$context = array_intersect_key($context, $_parent) + $_parent;
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
yield from [];
}
/**
* @codeCoverageIgnore
*/
public function getTemplateName(): string
{
return "content/event/view.html.twig";
}
/**
* @codeCoverageIgnore
*/
public function isTraitable(): bool
{
return false;
}
/**
* @codeCoverageIgnore
*/
public function getDebugInfo(): array
{
return array ( 81 => 11, 76 => 10, 73 => 9, 67 => 7, 65 => 6, 60 => 5, 58 => 4, 54 => 2, 50 => 1,);
}
public function getSourceContext(): Source
{
return new Source("{% for event in pimcore_relations(\"events\") %}
<ul>
<li>
{% if event.eventStart %}
<small><i>{{ event.eventStart|date('d.m.Y') }}</i></small>
{% if event.eventStart %}
<small><i> bis {{ event.eventEnd|date('d.m.Y') }}</i></small>
{% endif %}
{% endif %}
<h2 class=\"event\">{{event.title}}</h2>
{{ event.description|raw }}
</li>
</ul>
<hr />
{% endfor %}
", "content/event/view.html.twig", "/var/www/vhosts/mensa-fasching.de/uat/releases/20250218080531/templates/content/event/view.html.twig");
}
public function checkSecurity()
{
static $tags = ["for" => 1, "if" => 4];
static $filters = ["escape" => 5, "date" => 5, "raw" => 11];
static $functions = ["pimcore_relations" => 1];
try {
$this->sandbox->checkSecurity(
['for', 'if'],
['escape', 'date', 'raw'],
['pimcore_relations'],
$this->source
);
} catch (SecurityError $e) {
$e->setSourceContext($this->source);
if ($e instanceof SecurityNotAllowedTagError && isset($tags[$e->getTagName()])) {
$e->setTemplateLine($tags[$e->getTagName()]);
} elseif ($e instanceof SecurityNotAllowedFilterError && isset($filters[$e->getFilterName()])) {
$e->setTemplateLine($filters[$e->getFilterName()]);
} elseif ($e instanceof SecurityNotAllowedFunctionError && isset($functions[$e->getFunctionName()])) {
$e->setTemplateLine($functions[$e->getFunctionName()]);
}
throw $e;
}
}
}