var/cache/dev/twig/cc/cc32dffd8e5a099b91d4ad7418eeb655.php line 40

Open in your IDE?
  1. <?php
  2. use Twig\Environment;
  3. use Twig\Error\LoaderError;
  4. use Twig\Error\RuntimeError;
  5. use Twig\Extension\SandboxExtension;
  6. use Twig\Markup;
  7. use Twig\Sandbox\SecurityError;
  8. use Twig\Sandbox\SecurityNotAllowedTagError;
  9. use Twig\Sandbox\SecurityNotAllowedFilterError;
  10. use Twig\Sandbox\SecurityNotAllowedFunctionError;
  11. use Twig\Source;
  12. use Twig\Template;
  13. /* services/overview.html.twig */
  14. class __TwigTemplate_cc4e0b1127abbab7c16e70bb3e246b44 extends Template
  15. {
  16.     private $source;
  17.     private $macros = [];
  18.     public function __construct(Environment $env)
  19.     {
  20.         parent::__construct($env);
  21.         $this->source $this->getSourceContext();
  22.         $this->blocks = [
  23.             'content' => [$this'block_content'],
  24.         ];
  25.         $this->sandbox $this->env->getExtension('\Twig\Extension\SandboxExtension');
  26.         $this->checkSecurity();
  27.     }
  28.     protected function doGetParent(array $context)
  29.     {
  30.         // line 1
  31.         return $this->loadTemplate($this->extensions['App\Twig\Extension\WebsiteExtension']->getBaseLayout(), "services/overview.html.twig"1);
  32.     }
  33.     protected function doDisplay(array $context, array $blocks = [])
  34.     {
  35.         $macros $this->macros;
  36.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  37.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""services/overview.html.twig"));
  38.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  39.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""services/overview.html.twig"));
  40.         $this->getParent($context)->display($contextarray_merge($this->blocks$blocks));
  41.         
  42.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  43.         
  44.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  45.     }
  46.     // line 3
  47.     public function block_content($context, array $blocks = [])
  48.     {
  49.         $macros $this->macros;
  50.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  51.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""content"));
  52.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  53.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""content"));
  54.         // line 4
  55.         echo "    <div class=\"container\">
  56.     <div class=\"row\">
  57.         <div class=\"col-12\">
  58.             <h1>";
  59.         // line 7
  60.         echo $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context"input""title", ["placeholder" => "Headline"]);
  61.         echo "</h1>
  62.             ";
  63.         // line 8
  64.         if ((isset($context["editmode"]) || array_key_exists("editmode"$context) ? $context["editmode"] : (function () { throw new RuntimeError('Variable "editmode" does not exist.'8$this->source); })())) {
  65.             // line 9
  66.             echo "                <div class=\"row\">
  67.                     <div class=\"col-12\">
  68.                         <p class=\"advice\">";
  69.             // line 11
  70.             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"nulltrue);
  71.             echo "</p>
  72.                     </div>
  73.                 </div>
  74.             ";
  75.         }
  76.         // line 15
  77.         echo "            <div class=\"row\">
  78.                 <div class=\"col-12\">
  79.                     ";
  80.         // line 17
  81.         echo $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context"areablock""content-top");
  82.         echo "
  83.                 </div>
  84.             </div>
  85.             <div class=\"container pt-5 pb-5\">
  86.                 ";
  87.         // line 21
  88.         if ((isset($context["editmode"]) || array_key_exists("editmode"$context) ? $context["editmode"] : (function () { throw new RuntimeError('Variable "editmode" does not exist.'21$this->source); })())) {
  89.             // line 22
  90.             echo "                    <div class=\"row\">
  91.                         <div class=\"col-12\">
  92.                             ";
  93.             // line 24
  94.             $context["message"] = "KampenType";
  95.             // line 25
  96.             echo "                            ";
  97.             $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"]));
  98.             // line 26
  99.             echo "
  100.                             ";
  101.             // line 27
  102.             echo $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context"relations""typeCampscourse", ["types" => [=> "object"], "subtypes" => ["object" => [=> "object"]], "classes" => [=> "typeCampscourse"]]);
  103.             // line 33
  104.             echo "
  105.                         </div>
  106.                     </div>
  107.                 ";
  108.         }
  109.         // line 38
  110.         echo "            </div>
  111.             <div class=\"container\">
  112.                 <div class=\"row row-cols-lg-2 row-cols-1 g-5 mb-2\">
  113.                     ";
  114.         // line 41
  115.         if ( !(isset($context["editmode"]) || array_key_exists("editmode"$context) ? $context["editmode"] : (function () { throw new RuntimeError('Variable "editmode" does not exist.'41$this->source); })())) {
  116.             // line 42
  117.             echo "                        ";
  118.             if (array_key_exists("Campscourse"$context)) {
  119.                 // line 43
  120.                 echo "                            ";
  121.                 $context['_parent'] = $context;
  122.                 $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); })()));
  123.                 foreach ($context['_seq'] as $context["_key"] => $context["course"]) {
  124.                     // line 44
  125.                     echo "                                ";
  126.                     if (( !twig_length_filter($this->envtwig_get_attribute($this->env$this->source$context["course"], "children", [], "any"falsefalsetrue44)) <= twig_get_attribute($this->env$this->source$context["course"], "maxpersons", [], "any"falsefalsetrue44))) {
  127.                         // line 45
  128.                         echo "                                    ";
  129.                         $context["detailLink"] = $this->extensions['App\Twig\Extension\CampscourseExtension']->generateLink($this->sandbox->ensureToStringAllowed($context["course"], 45$this->source));
  130.                         // line 46
  131.                         echo "                                    <div class=\"col\">
  132.                                         <div
  133.                                             class=\"row g-0\">
  134.                                             <div class=\"col-8\">
  135.                                                 <div class=\"bg-opacity-10 bg-primary p-4\">
  136.                                                     <h3>";
  137.                         // line 51
  138.                         echo twig_escape_filter($this->env$this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source$context["course"], "title", [], "any"falsefalsetrue51), 51$this->source), "html"nulltrue);
  139.                         echo "</h3>
  140.                                                     <div>
  141.                                                         <div class=\"mb-1\"><span
  142.                                                                 class=\"text-muted\">";
  143.                         // line 54
  144.                         echo twig_escape_filter($this->envtwig_date_format_filter($this->env$this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source$context["course"], "start_date", [], "any"falsefalsetrue54), 54$this->source), "d/m/Y"), "html"nulltrue);
  145.                         echo "</span>
  146.                                                             -
  147.                                                             <span
  148.                                                                 class=\"text-muted\">";
  149.                         // line 57
  150.                         echo twig_escape_filter($this->envtwig_date_format_filter($this->env$this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source$context["course"], "end_date", [], "any"falsefalsetrue57), 57$this->source), "d/m/Y"), "html"nulltrue);
  151.                         echo "</span>
  152.                                                         </div>
  153.                                                     </div>
  154.                                                     <p>
  155.                                                         <i class=\"fa-solid fa-people-group me-1 text-primary\"></i>";
  156.                         // line 62
  157.                         echo twig_escape_filter($this->envtwig_length_filter($this->env$this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source$context["course"], "children", [], "any"falsefalsetrue62), 62$this->source)), "html"nulltrue);
  158.                         echo "
  159.                                                         / ";
  160.                         // line 63
  161.                         echo twig_escape_filter($this->env$this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source$context["course"], "maxpersons", [], "any"falsefalsetrue63), 63$this->source), "html"nulltrue);
  162.                         echo "</p>
  163.                                                ";
  164.                         // line 67
  165.                         echo "
  166.                                                     <p class=\"mb-auto\">";
  167.                         // line 68
  168.                         echo $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source$context["course"], "content", [], "any"falsefalsetrue68), 68$this->source);
  169.                         echo "</p>
  170.                                                     <div class=\"d-flex justify-content-between\">
  171.                                                         <a href=\"";
  172.                         // line 71
  173.                         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"nulltrue);
  174.                         echo "\" class=\"mt-3 d-block\">";
  175.                         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Read More"), "html"nulltrue);
  176.                         echo "</a>
  177.                                                         <p class=\"fs-3\">€ ";
  178.                         // line 72
  179.                         echo twig_escape_filter($this->env$this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source$context["course"], "pricePerPerson", [], "any"falsefalsetrue72), 72$this->source), "html"nulltrue);
  180.                         echo "</p>
  181.                                                     </div>
  182.                                                 </div>
  183.                                             </div>
  184.                                             ";
  185.                         // line 77
  186.                         $context['_parent'] = $context;
  187.                         $context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env$this->source$context["course"], "image", [], "any"falsefalsetrue77));
  188.                         foreach ($context['_seq'] as $context["_key"] => $context["Image"]) {
  189.                             // line 78
  190.                             echo "                                                <div class=\"col bg-image-corr\" style=\"background-image: url(";
  191.                             echo twig_escape_filter($this->env$this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source$context["Image"], "getThumbnail", [=> "slideshow-product"], "method"falsefalsetrue78), 78$this->source), "html"nulltrue);
  192.                             echo ")\">
  193.                                                     ";
  194.                             // line 83
  195.                             echo "
  196.                                                 </div>
  197.                                             ";
  198.                         }
  199.                         $_parent $context['_parent'];
  200.                         unset($context['_seq'], $context['_iterated'], $context['_key'], $context['Image'], $context['_parent'], $context['loop']);
  201.                         $context array_intersect_key($context$_parent) + $_parent;
  202.                         // line 86
  203.                         echo "                                        </div>
  204.                                     </div>
  205.                                 ";
  206.                     }
  207.                     // line 89
  208.                     echo "                            ";
  209.                 }
  210.                 $_parent $context['_parent'];
  211.                 unset($context['_seq'], $context['_iterated'], $context['_key'], $context['course'], $context['_parent'], $context['loop']);
  212.                 $context array_intersect_key($context$_parent) + $_parent;
  213.                 // line 90
  214.                 echo "                        ";
  215.             }
  216.             // line 91
  217.             echo "                    ";
  218.         }
  219.         // line 92
  220.         echo "                </div>
  221.             </div>
  222.         </div>
  223.         ";
  224.         // line 95
  225.         if ((isset($context["editmode"]) || array_key_exists("editmode"$context) ? $context["editmode"] : (function () { throw new RuntimeError('Variable "editmode" does not exist.'95$this->source); })())) {
  226.             // line 96
  227.             echo "            <div class=\"row\">
  228.                 <div class=\"col-12\">
  229.                     <p class=\"advice\">";
  230.             // line 98
  231.             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"nulltrue);
  232.             echo "</p>
  233.                 </div>
  234.             </div>
  235.         ";
  236.         }
  237.         // line 102
  238.         echo "
  239.         <div class=\"row\">
  240.             <div class=\"col-12\">
  241.                 ";
  242.         // line 105
  243.         echo twig_include($this->env$context"includes/default-content.html.twig");
  244.         echo "
  245.             </div>
  246.         </div>
  247.     </div>
  248. ";
  249.         
  250.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  251.         
  252.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  253.     }
  254.     public function getTemplateName()
  255.     {
  256.         return "services/overview.html.twig";
  257.     }
  258.     public function isTraitable()
  259.     {
  260.         return false;
  261.     }
  262.     public function getDebugInfo()
  263.     {
  264.         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,);
  265.     }
  266.     public function getSourceContext()
  267.     {
  268.         return new Source("{% extends base_layout() %}
  269. {% block content %}
  270.     <div class=\"container\">
  271.     <div class=\"row\">
  272.         <div class=\"col-12\">
  273.             <h1>{{ pimcore_input('title', {'placeholder':'Headline'}) }}</h1>
  274.             {% if editmode %}
  275.                 <div class=\"row\">
  276.                     <div class=\"col-12\">
  277.                         <p class=\"advice\">{{ 'tip: Door op het plusteken te klikken kun je kiezen welke inhoudelijke blok je kan toevoegen.'|trans({}, 'admin') }}</p>
  278.                     </div>
  279.                 </div>
  280.             {% endif %}
  281.             <div class=\"row\">
  282.                 <div class=\"col-12\">
  283.                     {{ pimcore_areablock('content-top') }}
  284.                 </div>
  285.             </div>
  286.             <div class=\"container pt-5 pb-5\">
  287.                 {% if editmode %}
  288.                     <div class=\"row\">
  289.                         <div class=\"col-12\">
  290.                             {% set message = 'KampenType' %}
  291.                             {% include 'includes/basicBlocks/admin/message/tip.html.twig' with {'message': message, 'type' : 'info'} %}
  292.                             {{ pimcore_relations(\"typeCampscourse\", {
  293.                                 \"types\": [\"object\"],
  294.                                 \"subtypes\": {
  295.                                     \"object\": [\"object\"]
  296.                                 },
  297.                                 \"classes\": [\"typeCampscourse\"]
  298.                             }) }}
  299.                         </div>
  300.                     </div>
  301.                 {% endif %}
  302.             </div>
  303.             <div class=\"container\">
  304.                 <div class=\"row row-cols-lg-2 row-cols-1 g-5 mb-2\">
  305.                     {% if not editmode %}
  306.                         {% if Campscourse is defined %}
  307.                             {% for course in Campscourse %}
  308.                                 {% if not course.children|length <= course.maxpersons %}
  309.                                     {% set detailLink = app_course_detaillink(course) %}
  310.                                     <div class=\"col\">
  311.                                         <div
  312.                                             class=\"row g-0\">
  313.                                             <div class=\"col-8\">
  314.                                                 <div class=\"bg-opacity-10 bg-primary p-4\">
  315.                                                     <h3>{{ course.title }}</h3>
  316.                                                     <div>
  317.                                                         <div class=\"mb-1\"><span
  318.                                                                 class=\"text-muted\">{{ course.start_date|date(\"d/m/Y\") }}</span>
  319.                                                             -
  320.                                                             <span
  321.                                                                 class=\"text-muted\">{{ course.end_date|date(\"d/m/Y\") }}</span>
  322.                                                         </div>
  323.                                                     </div>
  324.                                                     <p>
  325.                                                         <i class=\"fa-solid fa-people-group me-1 text-primary\"></i>{{ course.children|length }}
  326.                                                         / {{ course.maxpersons }}</p>
  327.                                                {# <p>end datum {{ course.expiry_date|date(\"d/m/Y\") }}</p>#}
  328.                                                     <p class=\"mb-auto\">{{ course.content|raw }}</p>
  329.                                                     <div class=\"d-flex justify-content-between\">
  330.                                                         <a href=\"{{ detailLink }}\" class=\"mt-3 d-block\">{{ 'Read More'|trans }}</a>
  331.                                                         <p class=\"fs-3\">€ {{ course.pricePerPerson }}</p>
  332.                                                     </div>
  333.                                                 </div>
  334.                                             </div>
  335.                                             {% for Image in course.image %}
  336.                                                 <div class=\"col bg-image-corr\" style=\"background-image: url({{ Image.getThumbnail('slideshow-product') }})\">
  337.                                                     {#
  338.                                                     <img src=\"{{ Image.getThumbnail('slideshow-product') }}\"
  339.                                                          alt=\"\" class=\"img-fluid\"> #}
  340.                                                 </div>
  341.                                             {% endfor %}
  342.                                         </div>
  343.                                     </div>
  344.                                 {% endif %}
  345.                             {% endfor %}
  346.                         {% endif %}
  347.                     {% endif %}
  348.                 </div>
  349.             </div>
  350.         </div>
  351.         {% if editmode %}
  352.             <div class=\"row\">
  353.                 <div class=\"col-12\">
  354.                     <p class=\"advice\">{{ 'tip: Door op het plusteken te klikken kun je kiezen welke inhoudelijke blok je kan toevoegen.'|trans({}, 'admin') }}</p>
  355.                 </div>
  356.             </div>
  357.         {% endif %}
  358.         <div class=\"row\">
  359.             <div class=\"col-12\">
  360.                 {{ include('includes/default-content.html.twig') }}
  361.             </div>
  362.         </div>
  363.     </div>
  364. {% endblock %}""services/overview.html.twig""/var/www/clients/client2/web45/web/pc/templates/services/overview.html.twig");
  365.     }
  366.     
  367.     public function checkSecurity()
  368.     {
  369.         static $tags = array("if" => 8"set" => 24"include" => 25"for" => 43);
  370.         static $filters = array("escape" => 11"trans" => 11"length" => 44"date" => 54"raw" => 68);
  371.         static $functions = array("pimcore_input" => 7"pimcore_areablock" => 17"pimcore_relations" => 27"app_course_detaillink" => 45"include" => 105"base_layout" => 1);
  372.         try {
  373.             $this->sandbox->checkSecurity(
  374.                 ['if''set''include''for'],
  375.                 ['escape''trans''length''date''raw'],
  376.                 ['pimcore_input''pimcore_areablock''pimcore_relations''app_course_detaillink''include''base_layout']
  377.             );
  378.         } catch (SecurityError $e) {
  379.             $e->setSourceContext($this->source);
  380.             if ($e instanceof SecurityNotAllowedTagError && isset($tags[$e->getTagName()])) {
  381.                 $e->setTemplateLine($tags[$e->getTagName()]);
  382.             } elseif ($e instanceof SecurityNotAllowedFilterError && isset($filters[$e->getFilterName()])) {
  383.                 $e->setTemplateLine($filters[$e->getFilterName()]);
  384.             } elseif ($e instanceof SecurityNotAllowedFunctionError && isset($functions[$e->getFunctionName()])) {
  385.                 $e->setTemplateLine($functions[$e->getFunctionName()]);
  386.             }
  387.             throw $e;
  388.         }
  389.     }
  390. }