<?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.html.twig */
class __TwigTemplate_cc4e0b1127abbab7c16e70bb3e246b44 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.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.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.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=\"container pt-5 pb-5\">
";
// line 21
if ((isset($context["editmode"]) || array_key_exists("editmode", $context) ? $context["editmode"] : (function () { throw new RuntimeError('Variable "editmode" does not exist.', 21, $this->source); })())) {
// line 22
echo " <div class=\"row\">
<div class=\"col-12\">
";
// line 24
$context["message"] = "KampenType";
// line 25
echo " ";
$this->loadTemplate("includes/basicBlocks/admin/message/tip.html.twig", "services/overview.html.twig", 25)->display(twig_array_merge($context, ["message" => (isset($context["message"]) || array_key_exists("message", $context) ? $context["message"] : (function () { throw new RuntimeError('Variable "message" does not exist.', 25, $this->source); })()), "type" => "info"]));
// line 26
echo "
";
// line 27
echo $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context, "relations", "typeCampscourse", ["types" => [0 => "object"], "subtypes" => ["object" => [0 => "object"]], "classes" => [0 => "typeCampscourse"]]);
// line 33
echo "
</div>
</div>
";
}
// line 38
echo " </div>
<div class=\"container\">
<div class=\"row row-cols-lg-2 row-cols-1 g-5 mb-2\">
";
// line 41
if ( !(isset($context["editmode"]) || array_key_exists("editmode", $context) ? $context["editmode"] : (function () { throw new RuntimeError('Variable "editmode" does not exist.', 41, $this->source); })())) {
// line 42
echo " ";
if (array_key_exists("Campscourse", $context)) {
// line 43
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.', 43, $this->source); })()));
foreach ($context['_seq'] as $context["_key"] => $context["course"]) {
// line 44
echo " ";
if (( !twig_length_filter($this->env, twig_get_attribute($this->env, $this->source, $context["course"], "children", [], "any", false, false, true, 44)) <= twig_get_attribute($this->env, $this->source, $context["course"], "maxpersons", [], "any", false, false, true, 44))) {
// line 45
echo " ";
$context["detailLink"] = $this->extensions['App\Twig\Extension\CampscourseExtension']->generateLink($this->sandbox->ensureToStringAllowed($context["course"], 45, $this->source));
// line 46
echo " <div class=\"col\">
<div
class=\"row g-0\">
<div class=\"col-8\">
<div class=\"bg-opacity-10 bg-primary p-4\">
<h3>";
// line 51
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, $context["course"], "title", [], "any", false, false, true, 51), 51, $this->source), "html", null, true);
echo "</h3>
<div>
<div class=\"mb-1\"><span
class=\"text-muted\">";
// line 54
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, 54), 54, $this->source), "d/m/Y"), "html", null, true);
echo "</span>
-
<span
class=\"text-muted\">";
// line 57
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, 57), 57, $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 62
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, 62), 62, $this->source)), "html", null, true);
echo "
/ ";
// line 63
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, $context["course"], "maxpersons", [], "any", false, false, true, 63), 63, $this->source), "html", null, true);
echo "</p>
";
// line 67
echo "
<p class=\"mb-auto\">";
// line 68
echo $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, $context["course"], "content", [], "any", false, false, true, 68), 68, $this->source);
echo "</p>
<div class=\"d-flex justify-content-between\">
<a href=\"";
// line 71
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.', 71, $this->source); })()), 71, $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 72
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, $context["course"], "pricePerPerson", [], "any", false, false, true, 72), 72, $this->source), "html", null, true);
echo "</p>
</div>
</div>
</div>
";
// line 77
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env, $this->source, $context["course"], "image", [], "any", false, false, true, 77));
foreach ($context['_seq'] as $context["_key"] => $context["Image"]) {
// line 78
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, 78), 78, $this->source), "html", null, true);
echo ")\">
";
// line 83
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 86
echo " </div>
</div>
";
}
// line 89
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 90
echo " ";
}
// line 91
echo " ";
}
// line 92
echo " </div>
</div>
</div>
";
// line 95
if ((isset($context["editmode"]) || array_key_exists("editmode", $context) ? $context["editmode"] : (function () { throw new RuntimeError('Variable "editmode" does not exist.', 95, $this->source); })())) {
// line 96
echo " <div class=\"row\">
<div class=\"col-12\">
<p class=\"advice\">";
// line 98
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 102
echo "
<div class=\"row\">
<div class=\"col-12\">
";
// line 105
echo twig_include($this->env, $context, "includes/default-content.html.twig");
echo "
</div>
</div>
</div>
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
public function getTemplateName()
{
return "services/overview.html.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
return array ( 264 => 105, 259 => 102, 252 => 98, 248 => 96, 246 => 95, 241 => 92, 238 => 91, 235 => 90, 229 => 89, 224 => 86, 216 => 83, 210 => 78, 206 => 77, 198 => 72, 192 => 71, 186 => 68, 183 => 67, 177 => 63, 173 => 62, 165 => 57, 159 => 54, 153 => 51, 146 => 46, 143 => 45, 140 => 44, 135 => 43, 132 => 42, 130 => 41, 125 => 38, 118 => 33, 116 => 27, 113 => 26, 110 => 25, 108 => 24, 104 => 22, 102 => 21, 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=\"container pt-5 pb-5\">
{% if editmode %}
<div class=\"row\">
<div class=\"col-12\">
{% set message = 'KampenType' %}
{% include 'includes/basicBlocks/admin/message/tip.html.twig' with {'message': message, 'type' : 'info'} %}
{{ pimcore_relations(\"typeCampscourse\", {
\"types\": [\"object\"],
\"subtypes\": {
\"object\": [\"object\"]
},
\"classes\": [\"typeCampscourse\"]
}) }}
</div>
</div>
{% endif %}
</div>
<div class=\"container\">
<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 %}
{% endif %}
</div>
</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>
{% endblock %}", "services/overview.html.twig", "/var/www/clients/client2/web45/web/pc/templates/services/overview.html.twig");
}
public function checkSecurity()
{
static $tags = array("if" => 8, "set" => 24, "include" => 25, "for" => 43);
static $filters = array("escape" => 11, "trans" => 11, "length" => 44, "date" => 54, "raw" => 68);
static $functions = array("pimcore_input" => 7, "pimcore_areablock" => 17, "pimcore_relations" => 27, "app_course_detaillink" => 45, "include" => 105, "base_layout" => 1);
try {
$this->sandbox->checkSecurity(
['if', 'set', 'include', 'for'],
['escape', 'trans', 'length', 'date', 'raw'],
['pimcore_input', 'pimcore_areablock', 'pimcore_relations', '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;
}
}
}