var/cache/dev/twig/29/29104b9b13d55bed1f04d6470867f366.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-all.html.twig */
  14. class __TwigTemplate_8875d327c1cdd43d94301518b502aae3 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-all.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-all.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-all.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=\"row row-cols-lg-2 row-cols-1 g-5 mb-2\">
  86.                     ";
  87.         // line 22
  88.         if ( !(isset($context["editmode"]) || array_key_exists("editmode"$context) ? $context["editmode"] : (function () { throw new RuntimeError('Variable "editmode" does not exist.'22$this->source); })())) {
  89.             // line 23
  90.             echo "                        ";
  91.             if (array_key_exists("Campscourse"$context)) {
  92.                 // line 24
  93.                 echo "                            ";
  94.                 $context['_parent'] = $context;
  95.                 $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); })()));
  96.                 foreach ($context['_seq'] as $context["_key"] => $context["course"]) {
  97.                     // line 25
  98.                     echo "                                ";
  99.                     if (( !twig_length_filter($this->envtwig_get_attribute($this->env$this->source$context["course"], "children", [], "any"falsefalsetrue25)) <= twig_get_attribute($this->env$this->source$context["course"], "maxpersons", [], "any"falsefalsetrue25))) {
  100.                         // line 26
  101.                         echo "                                    ";
  102.                         $context["detailLink"] = $this->extensions['App\Twig\Extension\CampscourseExtension']->generateLink($this->sandbox->ensureToStringAllowed($context["course"], 26$this->source));
  103.                         // line 27
  104.                         echo "                                    <div class=\"col\">
  105.                                         <div class=\"row g-0\">
  106.                                             <div class=\"col-8\">
  107.                                                 <div class=\"bg-opacity-10 bg-primary p-4\">
  108.                                                     <h3>";
  109.                         // line 32
  110.                         echo twig_escape_filter($this->env$this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source$context["course"], "title", [], "any"falsefalsetrue32), 32$this->source), "html"nulltrue);
  111.                         echo "</h3>
  112.                                                     <div>
  113.                                                         <div class=\"mb-1\"><span
  114.                                                                 class=\"text-muted\">";
  115.                         // line 35
  116.                         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"falsefalsetrue35), 35$this->source), "d/m/Y"), "html"nulltrue);
  117.                         echo "</span>
  118.                                                             -
  119.                                                             <span
  120.                                                                 class=\"text-muted\">";
  121.                         // line 38
  122.                         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"falsefalsetrue38), 38$this->source), "d/m/Y"), "html"nulltrue);
  123.                         echo "</span>
  124.                                                         </div>
  125.                                                     </div>
  126.                                                     <p>
  127.                                                         <i class=\"fa-solid fa-people-group me-1 text-primary\"></i>";
  128.                         // line 43
  129.                         echo twig_escape_filter($this->envtwig_length_filter($this->env$this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source$context["course"], "children", [], "any"falsefalsetrue43), 43$this->source)), "html"nulltrue);
  130.                         echo "
  131.                                                         / ";
  132.                         // line 44
  133.                         echo twig_escape_filter($this->env$this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source$context["course"], "maxpersons", [], "any"falsefalsetrue44), 44$this->source), "html"nulltrue);
  134.                         echo "</p>
  135.                                                     ";
  136.                         // line 48
  137.                         echo "
  138.                                                     <p class=\"mb-auto\">";
  139.                         // line 50
  140.                         echo $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source$context["course"], "content", [], "any"falsefalsetrue50), 50$this->source);
  141.                         echo "</p>
  142.                                                     <div class=\"d-flex justify-content-between\">
  143.                                                         <a href=\"";
  144.                         // line 53
  145.                         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"nulltrue);
  146.                         echo "\" class=\"mt-3 d-block\">";
  147.                         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Read More"), "html"nulltrue);
  148.                         echo "</a>
  149.                                                         <p class=\"fs-3\">€ ";
  150.                         // line 54
  151.                         echo twig_escape_filter($this->env$this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source$context["course"], "pricePerPerson", [], "any"falsefalsetrue54), 54$this->source), "html"nulltrue);
  152.                         echo "</p>
  153.                                                     </div>
  154.                                                 </div>
  155.                                             </div>
  156.                                             ";
  157.                         // line 59
  158.                         $context['_parent'] = $context;
  159.                         $context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env$this->source$context["course"], "image", [], "any"falsefalsetrue59));
  160.                         foreach ($context['_seq'] as $context["_key"] => $context["Image"]) {
  161.                             // line 60
  162.                             echo "                                            <div class=\"col bg-image-corr\" style=\"background-image: url(";
  163.                             echo twig_escape_filter($this->env$this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source$context["Image"], "getThumbnail", [=> "slideshow-product"], "method"falsefalsetrue60), 60$this->source), "html"nulltrue);
  164.                             echo ")\">
  165. ";
  166.                             // line 65
  167.                             echo "
  168.                                             </div>
  169.                                         ";
  170.                         }
  171.                         $_parent $context['_parent'];
  172.                         unset($context['_seq'], $context['_iterated'], $context['_key'], $context['Image'], $context['_parent'], $context['loop']);
  173.                         $context array_intersect_key($context$_parent) + $_parent;
  174.                         // line 68
  175.                         echo "
  176.                                         </div>
  177.                                     </div>
  178.                                 ";
  179.                     }
  180.                     // line 72
  181.                     echo "                            ";
  182.                 }
  183.                 $_parent $context['_parent'];
  184.                 unset($context['_seq'], $context['_iterated'], $context['_key'], $context['course'], $context['_parent'], $context['loop']);
  185.                 $context array_intersect_key($context$_parent) + $_parent;
  186.                 // line 73
  187.                 echo "                        ";
  188.             }
  189.             // line 74
  190.             echo "                    ";
  191.         } else {
  192.             // line 75
  193.             echo "                        <div class=\"col-12\">
  194.                             <p class=\"advice\">";
  195.             // line 76
  196.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("tip: Hier komen de kampen en lessen.", [], "admin"), "html"nulltrue);
  197.             echo "</p>
  198.                         </div>
  199.                     ";
  200.         }
  201.         // line 79
  202.         echo "
  203.                 </div>
  204.             </div>
  205.             ";
  206.         // line 82
  207.         if ((isset($context["editmode"]) || array_key_exists("editmode"$context) ? $context["editmode"] : (function () { throw new RuntimeError('Variable "editmode" does not exist.'82$this->source); })())) {
  208.             // line 83
  209.             echo "                <div class=\"row\">
  210.                     <div class=\"col-12\">
  211.                         <p class=\"advice\">";
  212.             // line 85
  213.             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);
  214.             echo "</p>
  215.                     </div>
  216.                 </div>
  217.             ";
  218.         }
  219.         // line 89
  220.         echo "
  221.             <div class=\"row\">
  222.                 <div class=\"col-12\">
  223.                     ";
  224.         // line 92
  225.         echo twig_include($this->env$context"includes/default-content.html.twig");
  226.         echo "
  227.                 </div>
  228.             </div>
  229.         </div>
  230.     </div>
  231. ";
  232.         
  233.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  234.         
  235.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  236.     }
  237.     public function getTemplateName()
  238.     {
  239.         return "services/overview-all.html.twig";
  240.     }
  241.     public function isTraitable()
  242.     {
  243.         return false;
  244.     }
  245.     public function getDebugInfo()
  246.     {
  247.         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,);
  248.     }
  249.     public function getSourceContext()
  250.     {
  251.         return new Source("{% extends base_layout() %}
  252. {% block content %}
  253.     <div class=\"container\">
  254.         <div class=\"row\">
  255.             <div class=\"col-12\">
  256.                 <h1>{{ pimcore_input('title', {'placeholder':'Headline'}) }}</h1>
  257.                 {% if editmode %}
  258.                     <div class=\"row\">
  259.                         <div class=\"col-12\">
  260.                             <p class=\"advice\">{{ 'tip: Door op het plusteken te klikken kun je kiezen welke inhoudelijke blok je kan toevoegen.'|trans({}, 'admin') }}</p>
  261.                         </div>
  262.                     </div>
  263.                 {% endif %}
  264.                 <div class=\"row\">
  265.                     <div class=\"col-12\">
  266.                         {{ pimcore_areablock('content-top') }}
  267.                     </div>
  268.                 </div>
  269.                 <div class=\"row row-cols-lg-2 row-cols-1 g-5 mb-2\">
  270.                     {% if not editmode %}
  271.                         {% if Campscourse is defined %}
  272.                             {% for course in Campscourse %}
  273.                                 {% if not course.children|length <= course.maxpersons %}
  274.                                     {% set detailLink = app_course_detaillink(course) %}
  275.                                     <div class=\"col\">
  276.                                         <div class=\"row g-0\">
  277.                                             <div class=\"col-8\">
  278.                                                 <div class=\"bg-opacity-10 bg-primary p-4\">
  279.                                                     <h3>{{ course.title }}</h3>
  280.                                                     <div>
  281.                                                         <div class=\"mb-1\"><span
  282.                                                                 class=\"text-muted\">{{ course.start_date|date(\"d/m/Y\") }}</span>
  283.                                                             -
  284.                                                             <span
  285.                                                                 class=\"text-muted\">{{ course.end_date|date(\"d/m/Y\") }}</span>
  286.                                                         </div>
  287.                                                     </div>
  288.                                                     <p>
  289.                                                         <i class=\"fa-solid fa-people-group me-1 text-primary\"></i>{{ course.children|length }}
  290.                                                         / {{ course.maxpersons }}</p>
  291.                                                     {# <p>end datum {{ course.expiry_date|date(\"d/m/Y\") }}</p> #}
  292.                                                     <p class=\"mb-auto\">{{ course.content|raw }}</p>
  293.                                                     <div class=\"d-flex justify-content-between\">
  294.                                                         <a href=\"{{ detailLink }}\" class=\"mt-3 d-block\">{{ 'Read More'|trans }}</a>
  295.                                                         <p class=\"fs-3\">€ {{ course.pricePerPerson }}</p>
  296.                                                     </div>
  297.                                                 </div>
  298.                                             </div>
  299.                                             {% for Image in course.image %}
  300.                                             <div class=\"col bg-image-corr\" style=\"background-image: url({{ Image.getThumbnail('slideshow-product') }})\">
  301. {#
  302.                                                         <img src=\"{{ Image.getThumbnail('slideshow-product') }}\"
  303.                                                              alt=\"\" class=\"img-fluid\"> #}
  304.                                             </div>
  305.                                         {% endfor %}
  306.                                         </div>
  307.                                     </div>
  308.                                 {% endif %}
  309.                             {% endfor %}
  310.                         {% endif %}
  311.                     {% else %}
  312.                         <div class=\"col-12\">
  313.                             <p class=\"advice\">{{ 'tip: Hier komen de kampen en lessen.'|trans({}, 'admin') }}</p>
  314.                         </div>
  315.                     {% endif %}
  316.                 </div>
  317.             </div>
  318.             {% if editmode %}
  319.                 <div class=\"row\">
  320.                     <div class=\"col-12\">
  321.                         <p class=\"advice\">{{ 'tip: Door op het plusteken te klikken kun je kiezen welke inhoudelijke blok je kan toevoegen.'|trans({}, 'admin') }}</p>
  322.                     </div>
  323.                 </div>
  324.             {% endif %}
  325.             <div class=\"row\">
  326.                 <div class=\"col-12\">
  327.                     {{ include('includes/default-content.html.twig') }}
  328.                 </div>
  329.             </div>
  330.         </div>
  331.     </div>
  332. {% endblock %}""services/overview-all.html.twig""/var/www/clients/client2/web45/web/pc/templates/services/overview-all.html.twig");
  333.     }
  334.     
  335.     public function checkSecurity()
  336.     {
  337.         static $tags = array("if" => 8"for" => 24"set" => 26);
  338.         static $filters = array("escape" => 11"trans" => 11"length" => 25"date" => 35"raw" => 50);
  339.         static $functions = array("pimcore_input" => 7"pimcore_areablock" => 17"app_course_detaillink" => 26"include" => 92"base_layout" => 1);
  340.         try {
  341.             $this->sandbox->checkSecurity(
  342.                 ['if''for''set'],
  343.                 ['escape''trans''length''date''raw'],
  344.                 ['pimcore_input''pimcore_areablock''app_course_detaillink''include''base_layout']
  345.             );
  346.         } catch (SecurityError $e) {
  347.             $e->setSourceContext($this->source);
  348.             if ($e instanceof SecurityNotAllowedTagError && isset($tags[$e->getTagName()])) {
  349.                 $e->setTemplateLine($tags[$e->getTagName()]);
  350.             } elseif ($e instanceof SecurityNotAllowedFilterError && isset($filters[$e->getFilterName()])) {
  351.                 $e->setTemplateLine($filters[$e->getFilterName()]);
  352.             } elseif ($e instanceof SecurityNotAllowedFunctionError && isset($functions[$e->getFunctionName()])) {
  353.                 $e->setTemplateLine($functions[$e->getFunctionName()]);
  354.             }
  355.             throw $e;
  356.         }
  357.     }
  358. }