var/cache/dev/twig/25/25cdfcb5facf1b77e138693b194b10dd.php line 40

Open in your IDE?
  1. <?php
  2. use Twig\Environment;
  3. use Twig\Error\LoaderError;
  4. use Twig\Error\RuntimeError;
  5. use Twig\Extension\CoreExtension;
  6. use Twig\Extension\SandboxExtension;
  7. use Twig\Markup;
  8. use Twig\Sandbox\SecurityError;
  9. use Twig\Sandbox\SecurityNotAllowedTagError;
  10. use Twig\Sandbox\SecurityNotAllowedFilterError;
  11. use Twig\Sandbox\SecurityNotAllowedFunctionError;
  12. use Twig\Source;
  13. use Twig\Template;
  14. use Twig\TemplateWrapper;
  15. /* content/event/view.html.twig */
  16. class __TwigTemplate_e51032d93360fc5037ae5e5c69ce80ee extends Template
  17. {
  18. private Source $source;
  19. /**
  20. * @var array<string, Template>
  21. */
  22. private array $macros = [];
  23. public function __construct(Environment $env)
  24. {
  25. parent::__construct($env);
  26. $this->source = $this->getSourceContext();
  27. $this->parent = false;
  28. $this->blocks = [
  29. ];
  30. $this->sandbox = $this->extensions[SandboxExtension::class];
  31. $this->checkSecurity();
  32. }
  33. protected function doDisplay(array $context, array $blocks = []): iterable
  34. {
  35. $macros = $this->macros;
  36. $__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  37. $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "content/event/view.html.twig"));
  38. $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  39. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "content/event/view.html.twig"));
  40. // line 1
  41. $context['_parent'] = $context;
  42. $context['_seq'] = CoreExtension::ensureTraversable($this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context, "relations", "events"));
  43. foreach ($context['_seq'] as $context["_key"] => $context["event"]) {
  44. // line 2
  45. yield " <ul>
  46. <li>
  47. ";
  48. // line 4
  49. if (CoreExtension::getAttribute($this->env, $this->source, $context["event"], "eventStart", [], "any", false, false, true, 4)) {
  50. // line 5
  51. yield " <small><i>";
  52. 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);
  53. yield "</i></small>
  54. ";
  55. // line 6
  56. if (CoreExtension::getAttribute($this->env, $this->source, $context["event"], "eventStart", [], "any", false, false, true, 6)) {
  57. // line 7
  58. yield " <small><i> bis ";
  59. 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);
  60. yield "</i></small>
  61. ";
  62. }
  63. // line 9
  64. yield " ";
  65. }
  66. // line 10
  67. yield " <h2 class=\"event\">";
  68. 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);
  69. yield "</h2>
  70. ";
  71. // line 11
  72. yield $this->sandbox->ensureToStringAllowed(CoreExtension::getAttribute($this->env, $this->source, $context["event"], "description", [], "any", false, false, true, 11), 11, $this->source);
  73. yield "
  74. </li>
  75. </ul>
  76. <hr />
  77. ";
  78. }
  79. $_parent = $context['_parent'];
  80. unset($context['_seq'], $context['_key'], $context['event'], $context['_parent']);
  81. $context = array_intersect_key($context, $_parent) + $_parent;
  82. $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  83. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  84. yield from [];
  85. }
  86. /**
  87. * @codeCoverageIgnore
  88. */
  89. public function getTemplateName(): string
  90. {
  91. return "content/event/view.html.twig";
  92. }
  93. /**
  94. * @codeCoverageIgnore
  95. */
  96. public function isTraitable(): bool
  97. {
  98. return false;
  99. }
  100. /**
  101. * @codeCoverageIgnore
  102. */
  103. public function getDebugInfo(): array
  104. {
  105. return array ( 81 => 11, 76 => 10, 73 => 9, 67 => 7, 65 => 6, 60 => 5, 58 => 4, 54 => 2, 50 => 1,);
  106. }
  107. public function getSourceContext(): Source
  108. {
  109. return new Source("{% for event in pimcore_relations(\"events\") %}
  110. <ul>
  111. <li>
  112. {% if event.eventStart %}
  113. <small><i>{{ event.eventStart|date('d.m.Y') }}</i></small>
  114. {% if event.eventStart %}
  115. <small><i> bis {{ event.eventEnd|date('d.m.Y') }}</i></small>
  116. {% endif %}
  117. {% endif %}
  118. <h2 class=\"event\">{{event.title}}</h2>
  119. {{ event.description|raw }}
  120. </li>
  121. </ul>
  122. <hr />
  123. {% endfor %}
  124. ", "content/event/view.html.twig", "/var/www/vhosts/mensa-fasching.de/uat/releases/20250218080531/templates/content/event/view.html.twig");
  125. }
  126. public function checkSecurity()
  127. {
  128. static $tags = ["for" => 1, "if" => 4];
  129. static $filters = ["escape" => 5, "date" => 5, "raw" => 11];
  130. static $functions = ["pimcore_relations" => 1];
  131. try {
  132. $this->sandbox->checkSecurity(
  133. ['for', 'if'],
  134. ['escape', 'date', 'raw'],
  135. ['pimcore_relations'],
  136. $this->source
  137. );
  138. } catch (SecurityError $e) {
  139. $e->setSourceContext($this->source);
  140. if ($e instanceof SecurityNotAllowedTagError && isset($tags[$e->getTagName()])) {
  141. $e->setTemplateLine($tags[$e->getTagName()]);
  142. } elseif ($e instanceof SecurityNotAllowedFilterError && isset($filters[$e->getFilterName()])) {
  143. $e->setTemplateLine($filters[$e->getFilterName()]);
  144. } elseif ($e instanceof SecurityNotAllowedFunctionError && isset($functions[$e->getFunctionName()])) {
  145. $e->setTemplateLine($functions[$e->getFunctionName()]);
  146. }
  147. throw $e;
  148. }
  149. }
  150. }