<?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;
/* calender/overview.html.twig */
class __TwigTemplate_a6f790323fb6e9b6c782c71c566d15e6 extends Template
{
private $source;
private $macros = [];
public function __construct(Environment $env)
{
parent::__construct($env);
$this->source = $this->getSourceContext();
$this->blocks = [
'content' => [$this, 'block_content'],
];
$this->sandbox = $this->env->getExtension('\Twig\Extension\SandboxExtension');
$this->checkSecurity();
}
protected function doGetParent(array $context)
{
// line 1
return $this->loadTemplate($this->extensions['App\Twig\Extension\WebsiteExtension']->getBaseLayout(), "calender/overview.html.twig", 1);
}
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", "calender/overview.html.twig"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "calender/overview.html.twig"));
$this->getParent($context)->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 "
<div class=\"container\">
<div class=\"row\">
<div class=\"col-12\">
<h1>";
// line 8
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Kalender"), "html", null, true);
echo " ";
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed((isset($context["year"]) || array_key_exists("year", $context) ? $context["year"] : (function () { throw new RuntimeError('Variable "year" does not exist.', 8, $this->source); })()), 8, $this->source), "html", null, true);
echo "</h1>
";
// line 9
if ((twig_date_format_filter($this->env, "now", "Y") == (isset($context["year"]) || array_key_exists("year", $context) ? $context["year"] : (function () { throw new RuntimeError('Variable "year" does not exist.', 9, $this->source); })()))) {
// line 10
echo " ";
echo $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context, "link", "linkNextYear", ["class" => "btn btn-outline-primary my-3 ms-lg-5 mt-3 mt-lg-0 text-uppercas"]);
echo "
";
}
// line 12
echo " <h2>";
echo $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context, "input", "title", ["placeholder" => "Headline"]);
echo "</h2>
";
// line 13
echo $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context, "wysiwyg", "content_text", ["placeholder" => "Place content here"]);
echo "
</div>
</div>
<div class=\"row my-3\">
<div class=\"col-12\">
";
// line 18
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable((isset($context["calender"]) || array_key_exists("calender", $context) ? $context["calender"] : (function () { throw new RuntimeError('Variable "calender" does not exist.', 18, $this->source); })()));
foreach ($context['_seq'] as $context["_key"] => $context["cal"]) {
// line 19
echo "
<div class=\"row\">
<div class=\"col-lg-1 col-2 text-center\">
</div>
<div class=\"col\">
<h3 class=\"text-uppercase mb-3 text-primary\">";
// line 25
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, $context["cal"], "month", [], "any", false, false, true, 25), 25, $this->source), "html", null, true);
echo "</h3></div>
</div>
<div class=\"row row-cols-lg-2 row-cols-1 g-5\">
";
// line 28
if (twig_get_attribute($this->env, $this->source, $context["cal"], "days", [], "any", true, true, true, 28)) {
// line 29
echo " ";
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env, $this->source, $context["cal"], "days", [], "any", false, false, true, 29));
foreach ($context['_seq'] as $context["_key"] => $context["day"]) {
// line 30
echo " <div class=\"col\">
<div class=\"row mb-5\">
<div class=\"col-2 text-center d-flex align-items-center\">
<div>
<h1 class=\"display-4 text-black\">";
// line 34
echo twig_escape_filter($this->env, twig_date_format_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, $context["day"], "Datum", [], "any", false, false, true, 34), 34, $this->source), "d"), "html", null, true);
echo "</h1>
<h2 class=\"display-6 text-black text-uppercase\">";
// line 35
echo twig_escape_filter($this->env, twig_date_format_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, $context["day"], "Datum", [], "any", false, false, true, 35), 35, $this->source), "M"), "html", null, true);
echo "</h2>
</div>
</div>
<div class=\"col-10\">
<div class=\"bg-opacity-10 bg-primary p-4\">
<h3>";
// line 40
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, $context["day"], "dayinfo", [], "any", false, false, true, 40), 40, $this->source), "html", null, true);
echo "</h3>
<div class=\"mb-3\">
<span class=\"me-3\">
<i class=\"fa-solid fa-calendar me-1 text-primary\"></i>";
// line 43
echo twig_escape_filter($this->env, twig_date_format_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, $context["day"], "Datum", [], "any", false, false, true, 43), 43, $this->source), "D"), "html", null, true);
echo "</span>
<span class=\"me-3\">
<i class=\"fa-solid fa-clock me-1 text-primary\"></i>";
// line 45
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, $context["day"], "start_u", [], "any", false, false, true, 45), 45, $this->source), "html", null, true);
echo " - ";
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, $context["day"], "eind_u", [], "any", false, false, true, 45), 45, $this->source), "html", null, true);
echo "</span>
<span class=\"me-3\">
<i class=\"fa-sharp fa-solid fa-location-arrow me-1 text-primary\"></i>
";
// line 48
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, $context["day"], "Place", [], "any", false, false, true, 48), 48, $this->source), "html", null, true);
echo "</span>
</div>
";
// line 52
echo " <p>";
echo $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, $context["day"], "Datum_description", [], "any", false, false, true, 52), 52, $this->source);
echo "</p>
</div>
</div>
</div>
</div>
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['day'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 60
echo " ";
} else {
// line 61
echo " <div class=\"col\">
<div class=\"row mb-5\">
<div class=\"col-2\">
</div>
<div class=\"col-10\">
<p>";
// line 66
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("geen geplande activiteiten"), "html", null, true);
echo "</p>
</div>
</div>
</div>
";
}
// line 71
echo " </div>
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['cal'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 75
echo "
";
// line 76
if ((twig_date_format_filter($this->env, "now", "Y") == (isset($context["year"]) || array_key_exists("year", $context) ? $context["year"] : (function () { throw new RuntimeError('Variable "year" does not exist.', 76, $this->source); })()))) {
// line 77
echo " <div class=\"my-5 text-center\">
<h2>";
// line 78
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Historiek"), "html", null, true);
echo " ";
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed((isset($context["year"]) || array_key_exists("year", $context) ? $context["year"] : (function () { throw new RuntimeError('Variable "year" does not exist.', 78, $this->source); })()), 78, $this->source), "html", null, true);
echo "</h2>
</div>
<table class=\"table table-sm\">
<tbody>
";
// line 82
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable((isset($context["HisCalender"]) || array_key_exists("HisCalender", $context) ? $context["HisCalender"] : (function () { throw new RuntimeError('Variable "HisCalender" does not exist.', 82, $this->source); })()));
foreach ($context['_seq'] as $context["_key"] => $context["cal"]) {
// line 83
echo "
<tr class=\"bg-primary bg-opacity-10\">
<td class=\"col-lg-1 col-2\"></td>
<td class=\"col\"><h3 class=\"text-uppercase mb-0\">";
// line 86
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, $context["cal"], "month", [], "any", false, false, true, 86), 86, $this->source), "html", null, true);
echo "</h3></td>
</tr>
";
// line 90
if (twig_get_attribute($this->env, $this->source, $context["cal"], "days", [], "any", true, true, true, 90)) {
// line 91
echo " ";
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env, $this->source, $context["cal"], "days", [], "any", false, false, true, 91));
foreach ($context['_seq'] as $context["_key"] => $context["day"]) {
// line 92
echo " <tr>
<td>";
// line 93
echo twig_escape_filter($this->env, twig_date_format_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, $context["day"], "Datum", [], "any", false, false, true, 93), 93, $this->source), "d"), "html", null, true);
echo " ";
echo twig_escape_filter($this->env, twig_date_format_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, $context["day"], "Datum", [], "any", false, false, true, 93), 93, $this->source), "M"), "html", null, true);
echo "</td>
<td>
<p class=\"fs-5 mb-0\"><strong>";
// line 95
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, $context["day"], "dayinfo", [], "any", false, false, true, 95), 95, $this->source), "html", null, true);
echo "</strong></p>
";
// line 106
echo " <p>";
echo $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, $context["day"], "Datum_description", [], "any", false, false, true, 106), 106, $this->source);
echo "</p></td>
</tr>
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['day'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 110
echo "
";
}
// line 113
echo "
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['cal'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 115
echo " </tbody>
</table>
";
}
// line 118
echo " </div>
</div>
</div>
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
public function getTemplateName()
{
return "calender/overview.html.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
return array ( 293 => 118, 288 => 115, 281 => 113, 276 => 110, 265 => 106, 261 => 95, 254 => 93, 251 => 92, 246 => 91, 244 => 90, 237 => 86, 232 => 83, 228 => 82, 219 => 78, 216 => 77, 214 => 76, 211 => 75, 202 => 71, 194 => 66, 187 => 61, 184 => 60, 169 => 52, 164 => 48, 156 => 45, 151 => 43, 145 => 40, 137 => 35, 133 => 34, 127 => 30, 122 => 29, 120 => 28, 114 => 25, 106 => 19, 102 => 18, 94 => 13, 89 => 12, 83 => 10, 81 => 9, 75 => 8, 69 => 4, 59 => 3, 37 => 1,);
}
public function getSourceContext()
{
return new Source("{% extends base_layout() %}
{% block content %}
<div class=\"container\">
<div class=\"row\">
<div class=\"col-12\">
<h1>{{ 'Kalender'|trans }} {{ year }}</h1>
{% if 'now' | date('Y') == year %}
{{ pimcore_link('linkNextYear', {'class': \"btn btn-outline-primary my-3 ms-lg-5 mt-3 mt-lg-0 text-uppercas\"}) }}
{% endif %}
<h2>{{ pimcore_input('title', {'placeholder':'Headline'}) }}</h2>
{{ pimcore_wysiwyg('content_text', {'placeholder':'Place content here'}) }}
</div>
</div>
<div class=\"row my-3\">
<div class=\"col-12\">
{% for cal in calender %}
<div class=\"row\">
<div class=\"col-lg-1 col-2 text-center\">
</div>
<div class=\"col\">
<h3 class=\"text-uppercase mb-3 text-primary\">{{ cal.month }}</h3></div>
</div>
<div class=\"row row-cols-lg-2 row-cols-1 g-5\">
{% if cal.days is defined %}
{% for day in cal.days %}
<div class=\"col\">
<div class=\"row mb-5\">
<div class=\"col-2 text-center d-flex align-items-center\">
<div>
<h1 class=\"display-4 text-black\">{{ day.Datum|date(\"d\") }}</h1>
<h2 class=\"display-6 text-black text-uppercase\">{{ day.Datum|date(\"M\") }}</h2>
</div>
</div>
<div class=\"col-10\">
<div class=\"bg-opacity-10 bg-primary p-4\">
<h3>{{ day.dayinfo }}</h3>
<div class=\"mb-3\">
<span class=\"me-3\">
<i class=\"fa-solid fa-calendar me-1 text-primary\"></i>{{ day.Datum|date(\"D\") }}</span>
<span class=\"me-3\">
<i class=\"fa-solid fa-clock me-1 text-primary\"></i>{{ day.start_u }} - {{ day.eind_u }}</span>
<span class=\"me-3\">
<i class=\"fa-sharp fa-solid fa-location-arrow me-1 text-primary\"></i>
{{ day.Place }}</span>
</div>
{#
<h3>Info:</h3> #}
<p>{{ day.Datum_description|raw }}</p>
</div>
</div>
</div>
</div>
{% endfor %}
{% else %}
<div class=\"col\">
<div class=\"row mb-5\">
<div class=\"col-2\">
</div>
<div class=\"col-10\">
<p>{{ \"geen geplande activiteiten\"|trans }}</p>
</div>
</div>
</div>
{% endif %}
</div>
{% endfor %}
{% if 'now' | date('Y') == year %}
<div class=\"my-5 text-center\">
<h2>{{ \"Historiek\"|trans }} {{ year }}</h2>
</div>
<table class=\"table table-sm\">
<tbody>
{% for cal in HisCalender %}
<tr class=\"bg-primary bg-opacity-10\">
<td class=\"col-lg-1 col-2\"></td>
<td class=\"col\"><h3 class=\"text-uppercase mb-0\">{{ cal.month }}</h3></td>
</tr>
{% if cal.days is defined %}
{% for day in cal.days %}
<tr>
<td>{{ day.Datum|date(\"d\") }} {{ day.Datum|date(\"M\") }}</td>
<td>
<p class=\"fs-5 mb-0\"><strong>{{ day.dayinfo }}</strong></p>
{#
<div class=\"mb-3\">
<span class=\"me-3\">
<i class=\"fa-solid fa-calendar me-1 text-primary\"></i>{{ day.Datum|date(\"D\") }}</span>
<span class=\"me-3\">
<i class=\"fa-solid fa-clock me-1 text-primary\"></i>{{ day.start_u }} - {{ day.eind_u }}</span>
<span class=\"me-3\">
<i class=\"fa-sharp fa-solid fa-location-arrow me-1 text-primary\"></i>
{{ day.Place }}</span>
</div> #}
<p>{{ day.Datum_description|raw }}</p></td>
</tr>
{% endfor %}
{% endif %}
{% endfor %}
</tbody>
</table>
{% endif %}
</div>
</div>
</div>
{% endblock %}", "calender/overview.html.twig", "/var/www/clients/client2/web45/web/pc/templates/calender/overview.html.twig");
}
public function checkSecurity()
{
static $tags = array("if" => 9, "for" => 18);
static $filters = array("escape" => 8, "trans" => 8, "date" => 9, "raw" => 52);
static $functions = array("pimcore_link" => 10, "pimcore_input" => 12, "pimcore_wysiwyg" => 13, "base_layout" => 1);
try {
$this->sandbox->checkSecurity(
['if', 'for'],
['escape', 'trans', 'date', 'raw'],
['pimcore_link', 'pimcore_input', 'pimcore_wysiwyg', 'base_layout']
);
} 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;
}
}
}