<?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;
/* services/overview-all.html.twig */
class __TwigTemplate_8875d327c1cdd43d94301518b502aae3 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(), "services/overview-all.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", "services/overview-all.html.twig"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "services/overview-all.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 7
echo $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context, "input", "title", ["placeholder" => "Headline"]);
echo "</h1>
";
// line 8
if ((isset($context["editmode"]) || array_key_exists("editmode", $context) ? $context["editmode"] : (function () { throw new RuntimeError('Variable "editmode" does not exist.', 8, $this->source); })())) {
// line 9
echo " <div class=\"row\">
<div class=\"col-12\">
<p class=\"advice\">";
// line 11
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("tip: Door op het plusteken te klikken kun je kiezen welke inhoudelijke blok je kan toevoegen.", [], "admin"), "html", null, true);
echo "</p>
</div>
</div>
";
}
// line 15
echo " <div class=\"row\">
<div class=\"col-12\">
";
// line 17
echo $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context, "areablock", "content-top");
echo "
</div>
</div>
<div class=\"row row-cols-lg-2 row-cols-1 g-5 mb-2\">
";
// line 22
if ( !(isset($context["editmode"]) || array_key_exists("editmode", $context) ? $context["editmode"] : (function () { throw new RuntimeError('Variable "editmode" does not exist.', 22, $this->source); })())) {
// line 23
echo " ";
if (array_key_exists("Campscourse", $context)) {
// line 24
echo " ";
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable((isset($context["Campscourse"]) || array_key_exists("Campscourse", $context) ? $context["Campscourse"] : (function () { throw new RuntimeError('Variable "Campscourse" does not exist.', 24, $this->source); })()));
foreach ($context['_seq'] as $context["_key"] => $context["course"]) {
// line 25
echo " ";
if (( !twig_length_filter($this->env, twig_get_attribute($this->env, $this->source, $context["course"], "children", [], "any", false, false, true, 25)) <= twig_get_attribute($this->env, $this->source, $context["course"], "maxpersons", [], "any", false, false, true, 25))) {
// line 26
echo " ";
$context["detailLink"] = $this->extensions['App\Twig\Extension\CampscourseExtension']->generateLink($this->sandbox->ensureToStringAllowed($context["course"], 26, $this->source));
// line 27
echo " <div class=\"col\">
<div class=\"row g-0\">
<div class=\"col-8\">
<div class=\"bg-opacity-10 bg-primary p-4\">
<h3>";
// line 32
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, $context["course"], "title", [], "any", false, false, true, 32), 32, $this->source), "html", null, true);
echo "</h3>
<div>
<div class=\"mb-1\"><span
class=\"text-muted\">";
// 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["course"], "start_date", [], "any", false, false, true, 35), 35, $this->source), "d/m/Y"), "html", null, true);
echo "</span>
-
<span
class=\"text-muted\">";
// line 38
echo twig_escape_filter($this->env, twig_date_format_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, $context["course"], "end_date", [], "any", false, false, true, 38), 38, $this->source), "d/m/Y"), "html", null, true);
echo "</span>
</div>
</div>
<p>
<i class=\"fa-solid fa-people-group me-1 text-primary\"></i>";
// line 43
echo twig_escape_filter($this->env, twig_length_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, $context["course"], "children", [], "any", false, false, true, 43), 43, $this->source)), "html", null, true);
echo "
/ ";
// line 44
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, $context["course"], "maxpersons", [], "any", false, false, true, 44), 44, $this->source), "html", null, true);
echo "</p>
";
// line 48
echo "
<p class=\"mb-auto\">";
// line 50
echo $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, $context["course"], "content", [], "any", false, false, true, 50), 50, $this->source);
echo "</p>
<div class=\"d-flex justify-content-between\">
<a href=\"";
// line 53
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed((isset($context["detailLink"]) || array_key_exists("detailLink", $context) ? $context["detailLink"] : (function () { throw new RuntimeError('Variable "detailLink" does not exist.', 53, $this->source); })()), 53, $this->source), "html", null, true);
echo "\" class=\"mt-3 d-block\">";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Read More"), "html", null, true);
echo "</a>
<p class=\"fs-3\">€ ";
// line 54
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, $context["course"], "pricePerPerson", [], "any", false, false, true, 54), 54, $this->source), "html", null, true);
echo "</p>
</div>
</div>
</div>
";
// line 59
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env, $this->source, $context["course"], "image", [], "any", false, false, true, 59));
foreach ($context['_seq'] as $context["_key"] => $context["Image"]) {
// line 60
echo " <div class=\"col bg-image-corr\" style=\"background-image: url(";
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, $context["Image"], "getThumbnail", [0 => "slideshow-product"], "method", false, false, true, 60), 60, $this->source), "html", null, true);
echo ")\">
";
// line 65
echo "
</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 68
echo "
</div>
</div>
";
}
// line 72
echo " ";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['course'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 73
echo " ";
}
// line 74
echo " ";
} else {
// line 75
echo " <div class=\"col-12\">
<p class=\"advice\">";
// line 76
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("tip: Hier komen de kampen en lessen.", [], "admin"), "html", null, true);
echo "</p>
</div>
";
}
// line 79
echo "
</div>
</div>
";
// line 82
if ((isset($context["editmode"]) || array_key_exists("editmode", $context) ? $context["editmode"] : (function () { throw new RuntimeError('Variable "editmode" does not exist.', 82, $this->source); })())) {
// line 83
echo " <div class=\"row\">
<div class=\"col-12\">
<p class=\"advice\">";
// line 85
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("tip: Door op het plusteken te klikken kun je kiezen welke inhoudelijke blok je kan toevoegen.", [], "admin"), "html", null, true);
echo "</p>
</div>
</div>
";
}
// line 89
echo "
<div class=\"row\">
<div class=\"col-12\">
";
// line 92
echo twig_include($this->env, $context, "includes/default-content.html.twig");
echo "
</div>
</div>
</div>
</div>
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
public function getTemplateName()
{
return "services/overview-all.html.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
return array ( 248 => 92, 243 => 89, 236 => 85, 232 => 83, 230 => 82, 225 => 79, 219 => 76, 216 => 75, 213 => 74, 210 => 73, 204 => 72, 198 => 68, 190 => 65, 184 => 60, 180 => 59, 172 => 54, 166 => 53, 160 => 50, 156 => 48, 150 => 44, 146 => 43, 138 => 38, 132 => 35, 126 => 32, 119 => 27, 116 => 26, 113 => 25, 108 => 24, 105 => 23, 103 => 22, 95 => 17, 91 => 15, 84 => 11, 80 => 9, 78 => 8, 74 => 7, 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>{{ pimcore_input('title', {'placeholder':'Headline'}) }}</h1>
{% if editmode %}
<div class=\"row\">
<div class=\"col-12\">
<p class=\"advice\">{{ 'tip: Door op het plusteken te klikken kun je kiezen welke inhoudelijke blok je kan toevoegen.'|trans({}, 'admin') }}</p>
</div>
</div>
{% endif %}
<div class=\"row\">
<div class=\"col-12\">
{{ pimcore_areablock('content-top') }}
</div>
</div>
<div class=\"row row-cols-lg-2 row-cols-1 g-5 mb-2\">
{% if not editmode %}
{% if Campscourse is defined %}
{% for course in Campscourse %}
{% if not course.children|length <= course.maxpersons %}
{% set detailLink = app_course_detaillink(course) %}
<div class=\"col\">
<div class=\"row g-0\">
<div class=\"col-8\">
<div class=\"bg-opacity-10 bg-primary p-4\">
<h3>{{ course.title }}</h3>
<div>
<div class=\"mb-1\"><span
class=\"text-muted\">{{ course.start_date|date(\"d/m/Y\") }}</span>
-
<span
class=\"text-muted\">{{ course.end_date|date(\"d/m/Y\") }}</span>
</div>
</div>
<p>
<i class=\"fa-solid fa-people-group me-1 text-primary\"></i>{{ course.children|length }}
/ {{ course.maxpersons }}</p>
{# <p>end datum {{ course.expiry_date|date(\"d/m/Y\") }}</p> #}
<p class=\"mb-auto\">{{ course.content|raw }}</p>
<div class=\"d-flex justify-content-between\">
<a href=\"{{ detailLink }}\" class=\"mt-3 d-block\">{{ 'Read More'|trans }}</a>
<p class=\"fs-3\">€ {{ course.pricePerPerson }}</p>
</div>
</div>
</div>
{% for Image in course.image %}
<div class=\"col bg-image-corr\" style=\"background-image: url({{ Image.getThumbnail('slideshow-product') }})\">
{#
<img src=\"{{ Image.getThumbnail('slideshow-product') }}\"
alt=\"\" class=\"img-fluid\"> #}
</div>
{% endfor %}
</div>
</div>
{% endif %}
{% endfor %}
{% endif %}
{% else %}
<div class=\"col-12\">
<p class=\"advice\">{{ 'tip: Hier komen de kampen en lessen.'|trans({}, 'admin') }}</p>
</div>
{% endif %}
</div>
</div>
{% if editmode %}
<div class=\"row\">
<div class=\"col-12\">
<p class=\"advice\">{{ 'tip: Door op het plusteken te klikken kun je kiezen welke inhoudelijke blok je kan toevoegen.'|trans({}, 'admin') }}</p>
</div>
</div>
{% endif %}
<div class=\"row\">
<div class=\"col-12\">
{{ include('includes/default-content.html.twig') }}
</div>
</div>
</div>
</div>
{% endblock %}", "services/overview-all.html.twig", "/var/www/clients/client2/web45/web/pc/templates/services/overview-all.html.twig");
}
public function checkSecurity()
{
static $tags = array("if" => 8, "for" => 24, "set" => 26);
static $filters = array("escape" => 11, "trans" => 11, "length" => 25, "date" => 35, "raw" => 50);
static $functions = array("pimcore_input" => 7, "pimcore_areablock" => 17, "app_course_detaillink" => 26, "include" => 92, "base_layout" => 1);
try {
$this->sandbox->checkSecurity(
['if', 'for', 'set'],
['escape', 'trans', 'length', 'date', 'raw'],
['pimcore_input', 'pimcore_areablock', 'app_course_detaillink', 'include', '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;
}
}
}