<?php
use Twig\Environment;
use Twig\Error\LoaderError;
use Twig\Error\RuntimeError;
use Twig\Extension\SandboxExtension;
use Twig\Markup;
use Twig\Sandbox\SecurityError;
use Twig\Sandbox\SecurityNotAllowedTagError;
use Twig\Sandbox\SecurityNotAllowedFilterError;
use Twig\Sandbox\SecurityNotAllowedFunctionError;
use Twig\Source;
use Twig\Template;
/* events/detail.html.twig */
class __TwigTemplate_0bc8f48d6fa2029a72d8c478282defd1 extends Template
{
private $source;
private $macros = [];
public function __construct(Environment $env)
{
parent::__construct($env);
$this->source = $this->getSourceContext();
$this->blocks = [
'content' => [$this, 'block_content'],
'inlinescripts' => [$this, 'block_inlinescripts'],
];
$this->sandbox = $this->env->getExtension('\Twig\Extension\SandboxExtension');
$this->checkSecurity();
}
protected function doGetParent(array $context)
{
// line 1
return "layout.html.twig";
}
protected function doDisplay(array $context, array $blocks = [])
{
$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", "events/detail.html.twig"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "events/detail.html.twig"));
$this->parent = $this->loadTemplate("layout.html.twig", "events/detail.html.twig", 1);
$this->parent->display($context, array_merge($this->blocks, $blocks));
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
}
// line 3
public function block_content($context, array $blocks = [])
{
$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 4
echo "<main id=\"page\" role=\"main\">
<header class=\"apk-page-header-container\">
<div class=\"uk-container apk-container-1200\">
<div class=\"apk-page-header uk-width-4-5@m\">
<h1 class=\"uk-h1\">";
// line 9
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, (isset($context["event"]) || array_key_exists("event", $context) ? $context["event"] : (function () { throw new RuntimeError('Variable "event" does not exist.', 9, $this->source); })()), "title", [], "any", false, false, true, 9), 9, $this->source), "html", null, true);
echo "</h1>
<div class=\"apk-page-header--text\">
";
// line 11
if ((twig_date_format_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["event"]) || array_key_exists("event", $context) ? $context["event"] : (function () { throw new RuntimeError('Variable "event" does not exist.', 11, $this->source); })()), "eventdate", [], "any", false, false, true, 11), "j F Y") == twig_date_format_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["event"]) || array_key_exists("event", $context) ? $context["event"] : (function () { throw new RuntimeError('Variable "event" does not exist.', 11, $this->source); })()), "eventdateend", [], "any", false, false, true, 11), "j F Y"))) {
// line 12
echo " ";
echo twig_escape_filter($this->env, twig_date_format_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, (isset($context["event"]) || array_key_exists("event", $context) ? $context["event"] : (function () { throw new RuntimeError('Variable "event" does not exist.', 12, $this->source); })()), "eventdate", [], "any", false, false, true, 12), 12, $this->source), "j F Y"), "html", null, true);
echo "
";
} else {
// line 14
echo " ";
echo twig_escape_filter($this->env, twig_date_format_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, (isset($context["event"]) || array_key_exists("event", $context) ? $context["event"] : (function () { throw new RuntimeError('Variable "event" does not exist.', 14, $this->source); })()), "eventdate", [], "any", false, false, true, 14), 14, $this->source), "j F Y"), "html", null, true);
echo " <span><svg width=\"20\" height=\"20\" viewBox=\"0 0 20 20\" xmlns=\"http://www.w3.org/2000/svg\" data-svg=\"arrow-right\"><polyline fill=\"none\" stroke=\"#000\" points=\"10 5 15 9.5 10 14\"></polyline><line fill=\"none\" stroke=\"#000\" x1=\"4\" y1=\"9.5\" x2=\"15\" y2=\"9.5\"></line></svg></span> ";
echo twig_escape_filter($this->env, twig_date_format_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, (isset($context["event"]) || array_key_exists("event", $context) ? $context["event"] : (function () { throw new RuntimeError('Variable "event" does not exist.', 14, $this->source); })()), "eventdateend", [], "any", false, false, true, 14), 14, $this->source), "j F Y"), "html", null, true);
echo "
";
}
// line 16
echo " </div>
</div>
</div>
</header>
<article class=\"uk-container atp-container-1200 uk-margin-large-bottom\">
";
// line 22
if ( !twig_test_empty(twig_get_attribute($this->env, $this->source, (isset($context["event"]) || array_key_exists("event", $context) ? $context["event"] : (function () { throw new RuntimeError('Variable "event" does not exist.', 22, $this->source); })()), "newsthumb", [], "any", false, false, true, 22))) {
// line 23
echo " <div class=\"uk-grid uk-child-width-1-2@m\" uk-grid>
<div class=\"uk-first-column\">
<div class=\"apk-event-detail--thumb\">
<img src=\"";
// line 26
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["event"]) || array_key_exists("event", $context) ? $context["event"] : (function () { throw new RuntimeError('Variable "event" does not exist.', 26, $this->source); })()), "newsthumb", [], "any", false, false, true, 26), "thumbnail", [0 => "global-image"], "method", false, false, true, 26), 26, $this->source), "html", null, true);
echo "\" width=\"580\" alt=\"";
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, (isset($context["event"]) || array_key_exists("event", $context) ? $context["event"] : (function () { throw new RuntimeError('Variable "event" does not exist.', 26, $this->source); })()), "title", [], "any", false, false, true, 26), 26, $this->source), "html", null, true);
echo "\"/>
</div>
</div>
";
} else {
// line 30
echo " <div class=\"uk-grid uk-child-width-1-1\" uk-grid>
";
}
// line 32
echo " <div>
<div class=\"uk-margin-small-top\">
";
// line 34
echo $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, (isset($context["event"]) || array_key_exists("event", $context) ? $context["event"] : (function () { throw new RuntimeError('Variable "event" does not exist.', 34, $this->source); })()), "content", [], "any", false, false, true, 34), 34, $this->source);
echo "
</div>
</div>
</div>
";
// line 38
if ( !twig_test_empty(twig_get_attribute($this->env, $this->source, (isset($context["event"]) || array_key_exists("event", $context) ? $context["event"] : (function () { throw new RuntimeError('Variable "event" does not exist.', 38, $this->source); })()), "imageGallery", [], "any", false, false, true, 38))) {
// line 39
echo " <div class=\"apk-event-detail--gallery uk-margin-medium-top uk-margin-large-bottom uk-grid-small uk-child-width-1-2@s uk-child-width-1-4@m uk-child-width-1-5@l uk-flex-center uk-text-center\" uk-grid uk-lightbox=\"animation: slide\">
";
// line 40
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env, $this->source, (isset($context["event"]) || array_key_exists("event", $context) ? $context["event"] : (function () { throw new RuntimeError('Variable "event" does not exist.', 40, $this->source); })()), "imageGallery", [], "any", false, false, true, 40));
foreach ($context['_seq'] as $context["_key"] => $context["image"]) {
// line 41
echo " <div uk-lightbox=\"animation: slide\">
<a href=\"";
// line 42
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, $context["image"], "thumbnail", [0 => "global-image"], "method", false, false, true, 42), 42, $this->source), "html", null, true);
echo "\">
";
// line 43
echo $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["image"], "thumbnail", [0 => "global-image"], "method", false, false, true, 43), "html", [0 => ["imgAttributes" => ["width" => 255]]], "method", false, false, true, 43), 43, $this->source);
echo "
</a>
</div>
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['image'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 47
echo " </div>
";
}
// line 49
echo " </article>
</main>
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
// line 53
public function block_inlinescripts($context, array $blocks = [])
{
$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", "inlinescripts"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "inlinescripts"));
// line 54
echo "
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
public function getTemplateName()
{
return "events/detail.html.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
return array ( 190 => 54, 180 => 53, 168 => 49, 164 => 47, 154 => 43, 150 => 42, 147 => 41, 143 => 40, 140 => 39, 138 => 38, 131 => 34, 127 => 32, 123 => 30, 114 => 26, 109 => 23, 107 => 22, 99 => 16, 91 => 14, 85 => 12, 83 => 11, 78 => 9, 71 => 4, 61 => 3, 38 => 1,);
}
public function getSourceContext()
{
return new Source("{% extends \"layout.html.twig\" %}
{% block content %}
<main id=\"page\" role=\"main\">
<header class=\"apk-page-header-container\">
<div class=\"uk-container apk-container-1200\">
<div class=\"apk-page-header uk-width-4-5@m\">
<h1 class=\"uk-h1\">{{ event.title }}</h1>
<div class=\"apk-page-header--text\">
{% if event.eventdate|date('j F Y') == event.eventdateend|date('j F Y') %}
{{ event.eventdate|date('j F Y') }}
{% else %}
{{ event.eventdate|date('j F Y') }} <span><svg width=\"20\" height=\"20\" viewBox=\"0 0 20 20\" xmlns=\"http://www.w3.org/2000/svg\" data-svg=\"arrow-right\"><polyline fill=\"none\" stroke=\"#000\" points=\"10 5 15 9.5 10 14\"></polyline><line fill=\"none\" stroke=\"#000\" x1=\"4\" y1=\"9.5\" x2=\"15\" y2=\"9.5\"></line></svg></span> {{ event.eventdateend|date('j F Y') }}
{% endif %}
</div>
</div>
</div>
</header>
<article class=\"uk-container atp-container-1200 uk-margin-large-bottom\">
{% if not event.newsthumb is empty %}
<div class=\"uk-grid uk-child-width-1-2@m\" uk-grid>
<div class=\"uk-first-column\">
<div class=\"apk-event-detail--thumb\">
<img src=\"{{ event.newsthumb.thumbnail('global-image') }}\" width=\"580\" alt=\"{{ event.title }}\"/>
</div>
</div>
{% else %}
<div class=\"uk-grid uk-child-width-1-1\" uk-grid>
{% endif %}
<div>
<div class=\"uk-margin-small-top\">
{{ event.content|raw }}
</div>
</div>
</div>
{% if not event.imageGallery is empty %}
<div class=\"apk-event-detail--gallery uk-margin-medium-top uk-margin-large-bottom uk-grid-small uk-child-width-1-2@s uk-child-width-1-4@m uk-child-width-1-5@l uk-flex-center uk-text-center\" uk-grid uk-lightbox=\"animation: slide\">
{% for image in event.imageGallery %}
<div uk-lightbox=\"animation: slide\">
<a href=\"{{ image.thumbnail('global-image') }}\">
{{ image.thumbnail('global-image').html({'imgAttributes' : {'width' : 255}})|raw }}
</a>
</div>
{% endfor %}
</div>
{% endif %}
</article>
</main>
{% endblock %}
{% block inlinescripts %}
{% endblock inlinescripts %}", "events/detail.html.twig", "/var/www/www.mangogem.com/www/templates/events/detail.html.twig");
}
public function checkSecurity()
{
static $tags = array("if" => 11, "for" => 40);
static $filters = array("escape" => 9, "date" => 11, "raw" => 34);
static $functions = array();
try {
$this->sandbox->checkSecurity(
['if', 'for'],
['escape', 'date', 'raw'],
[]
);
} 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;
}
}
}