<?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;
/* document/about/events.html.twig */
class __TwigTemplate_aa897055d6b5218450e4e1702b91574c extends Template
{
private $source;
private $macros = [];
public function __construct(Environment $env)
{
parent::__construct($env);
$this->source = $this->getSourceContext();
$this->blocks = [
'contentBlock' => [$this, 'block_contentBlock'],
];
$this->sandbox = $this->env->getExtension(SandboxExtension::class);
$this->checkSecurity();
}
protected function doGetParent(array $context)
{
// line 1
return "layout/default.html.twig";
}
protected function doDisplay(array $context, array $blocks = [])
{
$macros = $this->macros;
$__internal_b91a4435ea3baf1e2b6bfda56133dace = $this->extensions["Sentry\\SentryBundle\\Tracing\\Twig\\TwigTracingExtension"];
$__internal_b91a4435ea3baf1e2b6bfda56133dace->enter($__internal_b91a4435ea3baf1e2b6bfda56133dace_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "document/about/events.html.twig"));
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "document/about/events.html.twig"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "document/about/events.html.twig"));
$this->parent = $this->loadTemplate("layout/default.html.twig", "document/about/events.html.twig", 1);
yield from $this->parent->unwrap()->yield($context, array_merge($this->blocks, $blocks));
$__internal_b91a4435ea3baf1e2b6bfda56133dace->leave($__internal_b91a4435ea3baf1e2b6bfda56133dace_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
}
// line 3
public function block_contentBlock($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_b91a4435ea3baf1e2b6bfda56133dace = $this->extensions["Sentry\\SentryBundle\\Tracing\\Twig\\TwigTracingExtension"];
$__internal_b91a4435ea3baf1e2b6bfda56133dace->enter($__internal_b91a4435ea3baf1e2b6bfda56133dace_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "contentBlock"));
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "contentBlock"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "contentBlock"));
// line 4
yield "
<div class=\"staticPage\">
<div class=\"container my-5 my-lg-5 my-md-5\">
<div class=\"row\">
<div class=\"col-lg-3\">
<h4 class=\"font-weight-bold text-uppercase\">";
// line 9
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Events.pages.title"), "html", null, true);
yield "</h4>
";
// line 10
yield from $this->loadTemplate("document/static_page/sidebar/sidebar.html.twig", "document/about/events.html.twig", 10)->unwrap()->yield($context);
// line 11
yield "
<h1 class=\"d-block d-lg-none font-italic font-weight-bold mb-0 mt-6 mt-lg-0 mt-md-0 border-bottom border-indigo border-2 pb-3 pb-lg-3 pb-md-3\">
";
// line 13
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->sandbox->ensureToStringAllowed(CoreExtension::getAttribute($this->env, $this->source, $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context, "input", "heading"), "getData", [], "any", false, false, true, 13), 13, $this->source), "html", null, true);
yield "
</h1>
<h4 class=\"font-weight-bold text-navyBlue mb-3 mb-lg-3 mb-md-3 mt-5 mt-lg-4 mt-md-4\">FILTER</h4>
<form action=\"\" id=\"form-filter\" class=\"mb-5 mb-md-5 mb-lg-0\">
<div class=\"position-relative d-flex align-items-center checkbox-container mb-1 mb-lg-1 mb-md-1\">
";
// line 18
$context["showPastEvents"] = 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.', 18, $this->source); })()), "request", [], "any", false, false, true, 18), "get", ["show_past_events"], "method", false, false, true, 18);
// line 19
yield "
<input type=\"checkbox\"
";
// line 21
yield (((array_key_exists("showPastEvents", $context) && ((isset($context["showPastEvents"]) || array_key_exists("showPastEvents", $context) ? $context["showPastEvents"] : (function () { throw new RuntimeError('Variable "showPastEvents" does not exist.', 21, $this->source); })()) == 1))) ? ("checked") : (""));
yield "
name=\"show_past_events\"
value=\"";
// line 23
yield (((array_key_exists("showPastEvents", $context) && ((isset($context["showPastEvents"]) || array_key_exists("showPastEvents", $context) ? $context["showPastEvents"] : (function () { throw new RuntimeError('Variable "showPastEvents" does not exist.', 23, $this->source); })()) == 1))) ? ("0") : ("1"));
yield "\"
id=\"filter-past-events\"
onchange=\"this.form.submit()\"
>
<span class=\"checkmark\"></span>
<label for=\"filter-past-events\" class=\"letter-spacing-1 font-weight-bold mb-0\">
Show Past Events
</label>
</div>
</form>
</div>
<div class=\"col-lg-8\">
<div class=\"mb-4 mb-lg-4 mb-md-4 d-none d-lg-block\">
<h1 class=\"font-italic font-weight-bold mb-0 mt-4 mt-lg-0 mt-md-0\">
";
// line 40
yield $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context, "input", "heading", ["height" => 150, "placeholder" => "Heading"]);
// line 44
yield "
</h1>
<br>
<p class=\"font-weight-light font-italic big\">
Upcoming Events and Conferences
</p>
</div>
<div class=\"row\">
";
// line 52
$context['_parent'] = $context;
$context['_seq'] = CoreExtension::ensureTraversable((isset($context["articles"]) || array_key_exists("articles", $context) ? $context["articles"] : (function () { throw new RuntimeError('Variable "articles" does not exist.', 52, $this->source); })()));
$context['loop'] = [
'parent' => $context['_parent'],
'index0' => 0,
'index' => 1,
'first' => true,
];
if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof \Countable)) {
$length = count($context['_seq']);
$context['loop']['revindex0'] = $length - 1;
$context['loop']['revindex'] = $length;
$context['loop']['length'] = $length;
$context['loop']['last'] = 1 === $length;
}
foreach ($context['_seq'] as $context["_key"] => $context["article"]) {
// line 53
yield " <div class=\"col-lg-4 col-md-6\">
<div class=\"d-flex align-items-start mb-5 mb-lg-5 mb-md-5\">
";
// line 55
yield (((CoreExtension::getAttribute($this->env, $this->source, $context["article"], "feature_image", [], "any", true, true, true, 55) && CoreExtension::getAttribute($this->env, $this->source, $context["article"], "feature_image", [], "any", false, false, true, 55))) ? ($this->sandbox->ensureToStringAllowed(CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, $context["article"], "feature_image", [], "any", false, false, true, 55), "getThumbnail", ["event"], "method", false, false, true, 55), "getHtml", [["class" => "mr-3 mr-lg-3 mr-md-3"]], "method", false, false, true, 55), 55, $this->source)) : (""));
yield "
<div class=\"d-flex flex-column\">
<p class=\"mb-3 mb-lg-3 mb-md-3 text-navyBlue font-weight-bold\">
";
// line 58
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->sandbox->ensureToStringAllowed(CoreExtension::getAttribute($this->env, $this->source, $context["article"], "title", [], "any", false, false, true, 58), 58, $this->source), "html", null, true);
yield "
</p>
<small class=\"text-deepGray mb-2 mb-lg-2 mb-md-2 font-weight-normal\">
";
// line 61
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->sandbox->ensureToStringAllowed(CoreExtension::getAttribute($this->env, $this->source, $context["article"], "address", [], "any", false, false, true, 61), 61, $this->source), "html", null, true);
yield "
</small>
<small class=\"text-deepGray mb-2 mb-lg-2 mb-md-2 font-weight-normal\">
";
// line 64
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->sandbox->ensureToStringAllowed(CoreExtension::getAttribute($this->env, $this->source, $context["article"], "date", [], "any", false, false, true, 64), 64, $this->source), "html", null, true);
yield "
</small>
";
// line 66
if ((((((CoreExtension::getAttribute($this->env, $this->source, $context["article"], "url", [], "any", true, true, true, 66) && CoreExtension::getAttribute($this->env, $this->source, $context["article"], "url", [], "any", false, false, true, 66)) && CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, $context["article"], "url", [], "any", false, true, true, 66), "text", [], "any", true, true, true, 66)) && CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, $context["article"], "url", [], "any", false, false, true, 66), "text", [], "any", false, false, true, 66)) && CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, $context["article"], "url", [], "any", false, true, true, 66), "getHref", [], "any", true, true, true, 66)) && CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, $context["article"], "url", [], "any", false, false, true, 66), "getHref", [], "any", false, false, true, 66))) {
// line 67
yield " <a href=\"";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->sandbox->ensureToStringAllowed(CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, $context["article"], "url", [], "any", false, false, true, 67), "getHref", [], "any", false, false, true, 67), 67, $this->source), "html", null, true);
yield "\" target=\"";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->sandbox->ensureToStringAllowed(CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, $context["article"], "url", [], "any", false, false, true, 67), "target", [], "any", false, false, true, 67), 67, $this->source), "html", null, true);
yield "\" class=\"d-flex align-items-center\">
<div class=\"mr-2 mr-lg-2 mr-md-2\">
";
// line 69
yield from $this->loadTemplate("svg-icons/svg-icons.html.twig", "document/about/events.html.twig", 69)->unwrap()->yieldBlock("moreInfoEvent", $context);
yield "
</div>
<small class=\"text-indigo font-weight-bold\">
";
// line 72
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->sandbox->ensureToStringAllowed(CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, $context["article"], "url", [], "any", false, false, true, 72), "getText", [], "any", false, false, true, 72), 72, $this->source), "html", null, true);
yield "
</small>
</a>
";
}
// line 76
yield " </div>
</div>
</div>
";
++$context['loop']['index0'];
++$context['loop']['index'];
$context['loop']['first'] = false;
if (isset($context['loop']['length'])) {
--$context['loop']['revindex0'];
--$context['loop']['revindex'];
$context['loop']['last'] = 0 === $context['loop']['revindex0'];
}
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['article'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 80
yield " </div>
<div class=\"row ";
// line 81
if ((CoreExtension::getAttribute($this->env, $this->source, (isset($context["paginator"]) || array_key_exists("paginator", $context) ? $context["paginator"] : (function () { throw new RuntimeError('Variable "paginator" does not exist.', 81, $this->source); })()), "pageCount", [], "any", false, false, true, 81) == 1)) {
yield "d-none";
}
yield "\">
<div class=\"col-lg-6 offset-lg-3\">
";
// line 83
yield from $this->loadTemplate("Components/pagination.html.twig", "document/about/events.html.twig", 83)->unwrap()->yield(CoreExtension::merge($context, (isset($context["paginator"]) || array_key_exists("paginator", $context) ? $context["paginator"] : (function () { throw new RuntimeError('Variable "paginator" does not exist.', 83, $this->source); })())));
// line 84
yield " </div>
</div>
</div>
</div>
</div>
</div>
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
$__internal_b91a4435ea3baf1e2b6bfda56133dace->leave($__internal_b91a4435ea3baf1e2b6bfda56133dace_prof);
return; yield '';
}
/**
* @codeCoverageIgnore
*/
public function getTemplateName()
{
return "document/about/events.html.twig";
}
/**
* @codeCoverageIgnore
*/
public function isTraitable()
{
return false;
}
/**
* @codeCoverageIgnore
*/
public function getDebugInfo()
{
return array ( 244 => 84, 242 => 83, 235 => 81, 232 => 80, 215 => 76, 208 => 72, 202 => 69, 194 => 67, 192 => 66, 187 => 64, 181 => 61, 175 => 58, 169 => 55, 165 => 53, 148 => 52, 138 => 44, 136 => 40, 116 => 23, 111 => 21, 107 => 19, 105 => 18, 97 => 13, 93 => 11, 91 => 10, 87 => 9, 80 => 4, 67 => 3, 38 => 1,);
}
public function getSourceContext()
{
return new Source("{% extends 'layout/default.html.twig' %}
{% block contentBlock %}
<div class=\"staticPage\">
<div class=\"container my-5 my-lg-5 my-md-5\">
<div class=\"row\">
<div class=\"col-lg-3\">
<h4 class=\"font-weight-bold text-uppercase\">{{ 'Events.pages.title' | trans }}</h4>
{% include 'document/static_page/sidebar/sidebar.html.twig' %}
<h1 class=\"d-block d-lg-none font-italic font-weight-bold mb-0 mt-6 mt-lg-0 mt-md-0 border-bottom border-indigo border-2 pb-3 pb-lg-3 pb-md-3\">
{{ pimcore_input('heading').getData }}
</h1>
<h4 class=\"font-weight-bold text-navyBlue mb-3 mb-lg-3 mb-md-3 mt-5 mt-lg-4 mt-md-4\">FILTER</h4>
<form action=\"\" id=\"form-filter\" class=\"mb-5 mb-md-5 mb-lg-0\">
<div class=\"position-relative d-flex align-items-center checkbox-container mb-1 mb-lg-1 mb-md-1\">
{% set showPastEvents = app.request.get('show_past_events') %}
<input type=\"checkbox\"
{{ showPastEvents is defined and showPastEvents == 1 ? 'checked' }}
name=\"show_past_events\"
value=\"{{ showPastEvents is defined and showPastEvents == 1 ? '0' : '1' }}\"
id=\"filter-past-events\"
onchange=\"this.form.submit()\"
>
<span class=\"checkmark\"></span>
<label for=\"filter-past-events\" class=\"letter-spacing-1 font-weight-bold mb-0\">
Show Past Events
</label>
</div>
</form>
</div>
<div class=\"col-lg-8\">
<div class=\"mb-4 mb-lg-4 mb-md-4 d-none d-lg-block\">
<h1 class=\"font-italic font-weight-bold mb-0 mt-4 mt-lg-0 mt-md-0\">
{{ pimcore_input('heading',{
\"height\": 150,
\"placeholder\": \"Heading\"
})
}}
</h1>
<br>
<p class=\"font-weight-light font-italic big\">
Upcoming Events and Conferences
</p>
</div>
<div class=\"row\">
{% for article in articles %}
<div class=\"col-lg-4 col-md-6\">
<div class=\"d-flex align-items-start mb-5 mb-lg-5 mb-md-5\">
{{ article.feature_image is defined and article.feature_image ? article.feature_image.getThumbnail('event').getHtml({ class: 'mr-3 mr-lg-3 mr-md-3' }) | raw }}
<div class=\"d-flex flex-column\">
<p class=\"mb-3 mb-lg-3 mb-md-3 text-navyBlue font-weight-bold\">
{{ article.title }}
</p>
<small class=\"text-deepGray mb-2 mb-lg-2 mb-md-2 font-weight-normal\">
{{ article.address }}
</small>
<small class=\"text-deepGray mb-2 mb-lg-2 mb-md-2 font-weight-normal\">
{{ article.date }}
</small>
{% if article.url is defined and article.url and article.url.text is defined and article.url.text and article.url.getHref is defined and article.url.getHref %}
<a href=\"{{ article.url.getHref }}\" target=\"{{ article.url.target }}\" class=\"d-flex align-items-center\">
<div class=\"mr-2 mr-lg-2 mr-md-2\">
{{ block('moreInfoEvent', 'svg-icons/svg-icons.html.twig') }}
</div>
<small class=\"text-indigo font-weight-bold\">
{{ article.url.getText }}
</small>
</a>
{% endif %}
</div>
</div>
</div>
{% endfor %}
</div>
<div class=\"row {% if paginator.pageCount == 1 %}d-none{% endif %}\">
<div class=\"col-lg-6 offset-lg-3\">
{% include 'Components/pagination.html.twig' with paginator %}
</div>
</div>
</div>
</div>
</div>
</div>
{% endblock %}", "document/about/events.html.twig", "/var/www/webovi/stoelting/pimcore/templates/document/about/events.html.twig");
}
public function checkSecurity()
{
static $tags = array("include" => 10, "set" => 18, "for" => 52, "if" => 66);
static $filters = array("escape" => 9, "trans" => 9, "raw" => 55);
static $functions = array("pimcore_input" => 13);
try {
$this->sandbox->checkSecurity(
['include', 'set', 'for', 'if'],
['escape', 'trans', 'raw'],
['pimcore_input'],
$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;
}
}
}