var/cache/dev/twig/a5/a5346d1e026dd489bfc69f437a245673.php line 49

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. /* vacancy/overview.html.twig */
  14. class __TwigTemplate_9a7bfde7fac54274359d6eb4763ca621 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(), "vacancy/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""vacancy/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""vacancy/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 mb-5\">
  56.                 ";
  57.         // line 6
  58.         echo twig_include($this->env$context"includes/title.html.twig");
  59.         echo "
  60.         <div class=\"row\">
  61.             <div class=\"col-12\">
  62.                 <div class=\"row\">
  63.                     <div class=\"col-12\">
  64.                         ";
  65.         // line 12
  66.         if ((isset($context["editmode"]) || array_key_exists("editmode"$context) ? $context["editmode"] : (function () { throw new RuntimeError('Variable "editmode" does not exist.'12$this->source); })())) {
  67.             // line 13
  68.             echo "                            ";
  69.             $context["message"] = "Om een job toe te voegen: wendt u zich naar \"Objects\"";
  70.             // line 14
  71.             echo "                            ";
  72.             $this->loadTemplate("includes/basicBlocks/admin/message/tip.html.twig""vacancy/overview.html.twig"14)->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.'14$this->source); })()), "type" => "alert"]));
  73.             // line 15
  74.             echo "                        ";
  75.         }
  76.         // line 16
  77.         echo "                    </div>
  78.                 </div>
  79.                 <div class=\"row\">
  80.                     <div class=\"col-lg-4 d-none d-lg-block\">
  81.                         ";
  82.         // line 21
  83.         if ((isset($context["editmode"]) || array_key_exists("editmode"$context) ? $context["editmode"] : (function () { throw new RuntimeError('Variable "editmode" does not exist.'21$this->source); })())) {
  84.             // line 22
  85.             echo "                            ";
  86.             echo $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context"image""myImagevac", ["title" => "Drag your image here""width" => 200"height" => 300"thumbnail" => "jobs-thumb""attributes" => ["class" => "img-fluid"]]);
  87.             // line 30
  88.             echo "
  89.                         ";
  90.         }
  91.         // line 32
  92.         echo "
  93.                         ";
  94.         // line 33
  95.         if ( !(isset($context["editmode"]) || array_key_exists("editmode"$context) ? $context["editmode"] : (function () { throw new RuntimeError('Variable "editmode" does not exist.'33$this->source); })())) {
  96.             // line 34
  97.             echo "
  98.                                                             <img src=\"";
  99.             // line 35
  100.             echo twig_escape_filter($this->env$this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source$this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context"image""myImagevac"), "getThumbnail", [=> "jobs-thumb"], "method"falsefalsetrue35), 35$this->source), "html"nulltrue);
  101.             echo "\" class=\"img-fluid\">
  102.                         ";
  103.         }
  104.         // line 39
  105.         echo "                    </div>
  106.                     <div class=\"col-lg-8 ps-lg-5\">
  107.                         ";
  108.         // line 44
  109.         if ((twig_length_filter($this->env, (isset($context["vacancies"]) || array_key_exists("vacancies"$context) ? $context["vacancies"] : (function () { throw new RuntimeError('Variable "vacancies" does not exist.'44$this->source); })())) >= 1)) {
  110.             // line 45
  111.             echo "                            <section class=\"event-overview\">
  112.                                 ";
  113.             // line 46
  114.             $context['_parent'] = $context;
  115.             $context['_seq'] = twig_ensure_traversable((isset($context["vacancies"]) || array_key_exists("vacancies"$context) ? $context["vacancies"] : (function () { throw new RuntimeError('Variable "vacancies" does not exist.'46$this->source); })()));
  116.             foreach ($context['_seq'] as $context["_key"] => $context["vacancy"]) {
  117.                 // line 47
  118.                 echo "                                    ";
  119.                 $context["detailLink"] = $this->extensions['App\Twig\Extension\VacancyExtension']->generateLink($this->sandbox->ensureToStringAllowed($context["vacancy"], 47$this->source));
  120.                 // line 48
  121.                 echo "                                    <div class=\"row mb-5\">
  122.                                         <div class=\"col-12\">
  123.                                             <h2>";
  124.                 // line 50
  125.                 echo twig_escape_filter($this->env$this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source$context["vacancy"], "title", [], "any"falsefalsetrue50), 50$this->source), "html"nulltrue);
  126.                 echo "</h2>
  127.                                             <p>
  128.                                                     <span class=\"date text-black text-opacity-50 fst-italic\">
  129.                                                         ";
  130.                 // line 53
  131.                 echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Geplaatst op:"), "html"nulltrue);
  132.                 echo "
  133.                                                         ";
  134.                 // line 54
  135.                 echo twig_escape_filter($this->env$this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["vacancy"], "getDate", [], "method"falsefalsetrue54), "format", [=> "d/m/y"], "method"falsefalsetrue54), 54$this->source), "html"nulltrue);
  136.                 echo "
  137.                                                     </span>
  138.                                             </p>
  139.                                             <p>
  140.                                                 ";
  141.                 // line 58
  142.                 echo twig_escape_filter($this->env$this->extensions['App\Twig\Extension\TruncateExtension']->truncateContent($this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source$context["vacancy"], "content", [], "any"falsefalsetrue58), 58$this->source), 300"..."), "html"nulltrue);
  143.                 echo "
  144.                                             </p>
  145.                                             <p>
  146.                                                 <a href=\"";
  147.                 // line 62
  148.                 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.'62$this->source); })()), 62$this->source), "html"nulltrue);
  149.                 echo "\" class=\"btn btn-primary\">";
  150.                 echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Meer lezen"), "html"nulltrue);
  151.                 echo "</a>
  152.                                             </p>
  153.                                         </div>
  154.                                     </div>
  155.                                 ";
  156.             }
  157.             $_parent $context['_parent'];
  158.             unset($context['_seq'], $context['_iterated'], $context['_key'], $context['vacancy'], $context['_parent'], $context['loop']);
  159.             $context array_intersect_key($context$_parent) + $_parent;
  160.             // line 68
  161.             echo "                            </section>
  162.                         ";
  163.         } else {
  164.             // line 70
  165.             echo "                            <p>";
  166.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Er werden geen vacatures gevonden."), "html"nulltrue);
  167.             echo "</p>
  168.                         ";
  169.         }
  170.         // line 72
  171.         echo "
  172.                         <div class=\"col-12\">
  173.                             ";
  174.         // line 74
  175.         $this->loadTemplate("includes/pagination.html.twig""vacancy/overview.html.twig"74)->display($context);
  176.         // line 75
  177.         echo "                        </div>
  178.                     </div>
  179.                 </div>
  180.             </div>
  181.         </div>
  182.     </div>
  183. ";
  184.         
  185.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  186.         
  187.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  188.     }
  189.     public function getTemplateName()
  190.     {
  191.         return "vacancy/overview.html.twig";
  192.     }
  193.     public function isTraitable()
  194.     {
  195.         return false;
  196.     }
  197.     public function getDebugInfo()
  198.     {
  199.         return array (  201 => 75,  199 => 74,  195 => 72,  189 => 70,  185 => 68,  171 => 62,  164 => 58,  157 => 54,  153 => 53,  147 => 50,  143 => 48,  140 => 47,  136 => 46,  133 => 45,  131 => 44,  124 => 39,  117 => 35,  114 => 34,  112 => 33,  109 => 32,  105 => 30,  102 => 22,  100 => 21,  93 => 16,  90 => 15,  87 => 14,  84 => 13,  82 => 12,  73 => 6,  69 => 4,  59 => 3,  37 => 1,);
  200.     }
  201.     public function getSourceContext()
  202.     {
  203.         return new Source("{% extends base_layout() %}
  204. {% block content %}
  205.     <div class=\"container mb-5\">
  206.                 {{ include('includes/title.html.twig') }}
  207.         <div class=\"row\">
  208.             <div class=\"col-12\">
  209.                 <div class=\"row\">
  210.                     <div class=\"col-12\">
  211.                         {% if editmode %}
  212.                             {% set message = 'Om een job toe te voegen: wendt u zich naar \"Objects\"' %}
  213.                             {% include 'includes/basicBlocks/admin/message/tip.html.twig' with {'message': message, 'type' : 'alert'} %}
  214.                         {% endif %}
  215.                     </div>
  216.                 </div>
  217.                 <div class=\"row\">
  218.                     <div class=\"col-lg-4 d-none d-lg-block\">
  219.                         {% if editmode %}
  220.                             {{ pimcore_image(\"myImagevac\", {
  221.                                 \"title\": \"Drag your image here\",
  222.                                 \"width\": 200,
  223.                                 \"height\": 300,
  224.                                 \"thumbnail\": \"jobs-thumb\",
  225.                                 \"attributes\": {
  226.                                     \"class\": \"img-fluid\"
  227.                                 }
  228.                             }) }}
  229.                         {% endif %}
  230.                         {% if not editmode %}
  231.                                                             <img src=\"{{ pimcore_image(\"myImagevac\").getThumbnail(\"jobs-thumb\") }}\" class=\"img-fluid\">
  232.                         {% endif %}
  233.                     </div>
  234.                     <div class=\"col-lg-8 ps-lg-5\">
  235.                         {% if vacancies|length >= 1 %}
  236.                             <section class=\"event-overview\">
  237.                                 {% for vacancy in vacancies %}
  238.                                     {% set detailLink = app_vacancy_detaillink(vacancy) %}
  239.                                     <div class=\"row mb-5\">
  240.                                         <div class=\"col-12\">
  241.                                             <h2>{{ vacancy.title }}</h2>
  242.                                             <p>
  243.                                                     <span class=\"date text-black text-opacity-50 fst-italic\">
  244.                                                         {{ 'Geplaatst op:'|trans }}
  245.                                                         {{ vacancy.getDate().format(\"d/m/y\") }}
  246.                                                     </span>
  247.                                             </p>
  248.                                             <p>
  249.                                                 {{ vacancy.content|truncate(300, '...') }}
  250.                                             </p>
  251.                                             <p>
  252.                                                 <a href=\"{{ detailLink }}\" class=\"btn btn-primary\">{{ 'Meer lezen'|trans }}</a>
  253.                                             </p>
  254.                                         </div>
  255.                                     </div>
  256.                                 {% endfor %}
  257.                             </section>
  258.                         {% else %}
  259.                             <p>{{ 'Er werden geen vacatures gevonden.'|trans }}</p>
  260.                         {% endif %}
  261.                         <div class=\"col-12\">
  262.                             {% include 'includes/pagination.html.twig' %}
  263.                         </div>
  264.                     </div>
  265.                 </div>
  266.             </div>
  267.         </div>
  268.     </div>
  269. {% endblock %}""vacancy/overview.html.twig""/var/www/clients/client2/web42/web/pc/templates/vacancy/overview.html.twig");
  270.     }
  271.     
  272.     public function checkSecurity()
  273.     {
  274.         static $tags = array("if" => 12"set" => 13"include" => 14"for" => 46);
  275.         static $filters = array("escape" => 35"length" => 44"trans" => 53"truncate" => 58);
  276.         static $functions = array("include" => 6"pimcore_image" => 22"app_vacancy_detaillink" => 47"base_layout" => 1);
  277.         try {
  278.             $this->sandbox->checkSecurity(
  279.                 ['if''set''include''for'],
  280.                 ['escape''length''trans''truncate'],
  281.                 ['include''pimcore_image''app_vacancy_detaillink''base_layout']
  282.             );
  283.         } catch (SecurityError $e) {
  284.             $e->setSourceContext($this->source);
  285.             if ($e instanceof SecurityNotAllowedTagError && isset($tags[$e->getTagName()])) {
  286.                 $e->setTemplateLine($tags[$e->getTagName()]);
  287.             } elseif ($e instanceof SecurityNotAllowedFilterError && isset($filters[$e->getFilterName()])) {
  288.                 $e->setTemplateLine($filters[$e->getFilterName()]);
  289.             } elseif ($e instanceof SecurityNotAllowedFunctionError && isset($functions[$e->getFunctionName()])) {
  290.                 $e->setTemplateLine($functions[$e->getFunctionName()]);
  291.             }
  292.             throw $e;
  293.         }
  294.     }
  295. }