var/cache/dev/twig/5a/5ad85590704acc0b589cf78cf6c5db6e.php line 33

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. /* areas/vakteam-loader/view.html.twig */
  14. class __TwigTemplate_95c556ebfe611b82c73df271c0577796 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->parent false;
  23.         $this->blocks = [
  24.         ];
  25.     }
  26.     protected function doDisplay(array $context, array $blocks = [])
  27.     {
  28.         $macros $this->macros;
  29.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  30.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""areas/vakteam-loader/view.html.twig"));
  31.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  32.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""areas/vakteam-loader/view.html.twig"));
  33.         // line 1
  34.         $context["vakteamElement"] = $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context"relations""vakteam", ["types" => [=> "object"], "subtypes" => ["object" => [=> "object"]], "classes" => [=> "Vakteam"], "reload" => true]);
  35.         // line 9
  36.         echo "<div class=\"container\">
  37.     ";
  38.         // line 10
  39.         if ((isset($context["editmode"]) || array_key_exists("editmode"$context) ? $context["editmode"] : (function () { throw new RuntimeError('Variable "editmode" does not exist.'10$this->source); })())) {
  40.             // line 11
  41.             echo "        <div class=\"row\">
  42.             <div class=\"col-sm-10 wysiwyg-block\">
  43.                 <h2>Voeg hier de vakteams toe</h2>
  44.                 ";
  45.             // line 14
  46.             echo (isset($context["vakteamElement"]) || array_key_exists("vakteamElement"$context) ? $context["vakteamElement"] : (function () { throw new RuntimeError('Variable "vakteamElement" does not exist.'14$this->source); })());
  47.             echo "
  48.             </div>
  49.         </div>
  50.     ";
  51.         }
  52.         // line 18
  53.         echo "    ";
  54.         $context['_parent'] = $context;
  55.         $context['_seq'] = twig_ensure_traversable((isset($context["vakteamElement"]) || array_key_exists("vakteamElement"$context) ? $context["vakteamElement"] : (function () { throw new RuntimeError('Variable "vakteamElement" does not exist.'18$this->source); })()));
  56.         $context['loop'] = [
  57.           'parent' => $context['_parent'],
  58.           'index0' => 0,
  59.           'index'  => 1,
  60.           'first'  => true,
  61.         ];
  62.         if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof \Countable)) {
  63.             $length count($context['_seq']);
  64.             $context['loop']['revindex0'] = $length 1;
  65.             $context['loop']['revindex'] = $length;
  66.             $context['loop']['length'] = $length;
  67.             $context['loop']['last'] = === $length;
  68.         }
  69.         foreach ($context['_seq'] as $context["_key"] => $context["vakteam"]) {
  70.             // line 19
  71.             echo "        ";
  72.             // line 20
  73.             echo "        <div class=\"row\">
  74.             <div class=\"col-sm-10 wysiwyg-block\">
  75.                 <h2>";
  76.             // line 22
  77.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["vakteam"], "name", [], "any"falsefalsefalse22), "html"nulltrue);
  78.             echo "</h2>
  79.                 ";
  80.             // line 23
  81.             echo twig_get_attribute($this->env$this->source$context["vakteam"], "content", [], "any"falsefalsefalse23);
  82.             echo "
  83.             </div>
  84.         </div>
  85.         ";
  86.             // line 26
  87.             if ( !(null === twig_get_attribute($this->env$this->source$context["vakteam"], "image", [], "any"falsefalsefalse26))) {
  88.                 // line 27
  89.                 echo "        <div class=\"row\">
  90.             <div class=\"col-sm-12\">
  91.                 <img src=\"";
  92.                 // line 29
  93.                 echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["vakteam"], "image", [], "any"falsefalsefalse29), "getThumbnail", [=> "pageImage"], "method"falsefalsefalse29), "html"nulltrue);
  94.                 echo "\" alt=\"\" class=\"img-fluid\">
  95.             </div>
  96.         </div>
  97.         ";
  98.             }
  99.             // line 33
  100.             echo "        ";
  101.             if ((twig_length_filter($this->envtwig_get_attribute($this->env$this->source$context["vakteam"], "jobs", [], "any"falsefalsefalse33)) > 0)) {
  102.                 // line 34
  103.                 echo "            <div class=\"row\">
  104.                 <div class=\"col-sm-10 wysiwyg-block\">
  105.                     <h2>Vacatures</h2>
  106.                     ";
  107.                 // line 37
  108.                 $context['_parent'] = $context;
  109.                 $context['_seq'] = twig_ensure_traversable(twig_sort_filter($this->envtwig_get_attribute($this->env$this->source$context["vakteam"], "jobs", [], "any"falsefalsefalse37), function ($__a__$__b__) use ($context$macros) { $context["a"] = $__a__$context["b"] = $__b__; return (twig_get_attribute($this->env$this->source, (isset($context["b"]) || array_key_exists("b"$context) ? $context["b"] : (function () { throw new RuntimeError('Variable "b" does not exist.'37$this->source); })()), "date", [], "any"falsefalsefalse37) >= twig_get_attribute($this->env$this->source, (isset($context["a"]) || array_key_exists("a"$context) ? $context["a"] : (function () { throw new RuntimeError('Variable "a" does not exist.'37$this->source); })()), "date", [], "any"falsefalsefalse37)); }));
  110.                 $context['loop'] = [
  111.                   'parent' => $context['_parent'],
  112.                   'index0' => 0,
  113.                   'index'  => 1,
  114.                   'first'  => true,
  115.                 ];
  116.                 if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof \Countable)) {
  117.                     $length count($context['_seq']);
  118.                     $context['loop']['revindex0'] = $length 1;
  119.                     $context['loop']['revindex'] = $length;
  120.                     $context['loop']['length'] = $length;
  121.                     $context['loop']['last'] = === $length;
  122.                 }
  123.                 foreach ($context['_seq'] as $context["_key"] => $context["j"]) {
  124.                     // line 38
  125.                     echo "                        ";
  126.                     // line 39
  127.                     echo "                        ";
  128.                     if (twig_get_attribute($this->env$this->source$context["j"], "getPublished", [], "method"falsefalsefalse39)) {
  129.                         // line 40
  130.                         echo "                        ";
  131.                         echo twig_include($this->env$context"partials/job.html.twig", ["j" => $context["j"]]);
  132.                         echo "
  133.                         ";
  134.                     }
  135.                     // line 42
  136.                     echo "                    ";
  137.                     ++$context['loop']['index0'];
  138.                     ++$context['loop']['index'];
  139.                     $context['loop']['first'] = false;
  140.                     if (isset($context['loop']['length'])) {
  141.                         --$context['loop']['revindex0'];
  142.                         --$context['loop']['revindex'];
  143.                         $context['loop']['last'] = === $context['loop']['revindex0'];
  144.                     }
  145.                 }
  146.                 $_parent $context['_parent'];
  147.                 unset($context['_seq'], $context['_iterated'], $context['_key'], $context['j'], $context['_parent'], $context['loop']);
  148.                 $context array_intersect_key($context$_parent) + $_parent;
  149.                 // line 43
  150.                 echo "                </div>
  151.             </div>
  152.         ";
  153.             }
  154.             // line 46
  155.             echo "    ";
  156.             ++$context['loop']['index0'];
  157.             ++$context['loop']['index'];
  158.             $context['loop']['first'] = false;
  159.             if (isset($context['loop']['length'])) {
  160.                 --$context['loop']['revindex0'];
  161.                 --$context['loop']['revindex'];
  162.                 $context['loop']['last'] = === $context['loop']['revindex0'];
  163.             }
  164.         }
  165.         $_parent $context['_parent'];
  166.         unset($context['_seq'], $context['_iterated'], $context['_key'], $context['vakteam'], $context['_parent'], $context['loop']);
  167.         $context array_intersect_key($context$_parent) + $_parent;
  168.         // line 47
  169.         echo "</div>";
  170.         
  171.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  172.         
  173.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  174.     }
  175.     public function getTemplateName()
  176.     {
  177.         return "areas/vakteam-loader/view.html.twig";
  178.     }
  179.     public function isTraitable()
  180.     {
  181.         return false;
  182.     }
  183.     public function getDebugInfo()
  184.     {
  185.         return array (  178 => 47,  164 => 46,  159 => 43,  145 => 42,  139 => 40,  136 => 39,  134 => 38,  117 => 37,  112 => 34,  109 => 33,  102 => 29,  98 => 27,  96 => 26,  90 => 23,  86 => 22,  82 => 20,  80 => 19,  62 => 18,  55 => 14,  50 => 11,  48 => 10,  45 => 9,  43 => 1,);
  186.     }
  187.     public function getSourceContext()
  188.     {
  189.         return new Source("{% set vakteamElement = pimcore_relations('vakteam', {
  190.     types: ['object'],
  191.     subtypes: {
  192.         object: ['object']
  193.     },
  194.     classes: ['Vakteam'],
  195.     reload: true
  196. }) %}
  197. <div class=\"container\">
  198.     {% if editmode %}
  199.         <div class=\"row\">
  200.             <div class=\"col-sm-10 wysiwyg-block\">
  201.                 <h2>Voeg hier de vakteams toe</h2>
  202.                 {{ vakteamElement|raw }}
  203.             </div>
  204.         </div>
  205.     {% endif %}
  206.     {% for vakteam in vakteamElement %}
  207.         {# @var vakteam \\Pimcore\\Model\\DataObject\\Vakteam #}
  208.         <div class=\"row\">
  209.             <div class=\"col-sm-10 wysiwyg-block\">
  210.                 <h2>{{ vakteam.name }}</h2>
  211.                 {{ vakteam.content|raw }}
  212.             </div>
  213.         </div>
  214.         {% if vakteam.image is not null %}
  215.         <div class=\"row\">
  216.             <div class=\"col-sm-12\">
  217.                 <img src=\"{{ vakteam.image.getThumbnail('pageImage') }}\" alt=\"\" class=\"img-fluid\">
  218.             </div>
  219.         </div>
  220.         {% endif %}
  221.         {% if vakteam.jobs|length > 0 %}
  222.             <div class=\"row\">
  223.                 <div class=\"col-sm-10 wysiwyg-block\">
  224.                     <h2>Vacatures</h2>
  225.                     {% for j in vakteam.jobs|sort((a,b) => b.date >= a.date) %}
  226.                         {# @var j \\Pimcore\\Model\\DataObject\\Job #}
  227.                         {% if j.getPublished() %}
  228.                         {{ include(\"partials/job.html.twig\", {j: j}) }}
  229.                         {% endif %}
  230.                     {% endfor %}
  231.                 </div>
  232.             </div>
  233.         {% endif %}
  234.     {% endfor %}
  235. </div>""areas/vakteam-loader/view.html.twig""/var/www/dev/templates/areas/vakteam-loader/view.html.twig");
  236.     }
  237. }