<?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;
/* vacancy/overview.html.twig */
class __TwigTemplate_9a7bfde7fac54274359d6eb4763ca621 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(), "vacancy/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", "vacancy/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", "vacancy/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 mb-5\">
";
// line 6
echo twig_include($this->env, $context, "includes/title.html.twig");
echo "
<div class=\"row\">
<div class=\"col-12\">
<div class=\"row\">
<div class=\"col-12\">
";
// line 12
if ((isset($context["editmode"]) || array_key_exists("editmode", $context) ? $context["editmode"] : (function () { throw new RuntimeError('Variable "editmode" does not exist.', 12, $this->source); })())) {
// line 13
echo " ";
$context["message"] = "Om een job toe te voegen: wendt u zich naar \"Objects\"";
// line 14
echo " ";
$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"]));
// line 15
echo " ";
}
// line 16
echo " </div>
</div>
<div class=\"row\">
<div class=\"col-lg-4 d-none d-lg-block\">
";
// 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 " ";
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"]]);
// line 30
echo "
";
}
// line 32
echo "
";
// line 33
if ( !(isset($context["editmode"]) || array_key_exists("editmode", $context) ? $context["editmode"] : (function () { throw new RuntimeError('Variable "editmode" does not exist.', 33, $this->source); })())) {
// line 34
echo "
<img src=\"";
// line 35
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", [0 => "jobs-thumb"], "method", false, false, true, 35), 35, $this->source), "html", null, true);
echo "\" class=\"img-fluid\">
";
}
// line 39
echo " </div>
<div class=\"col-lg-8 ps-lg-5\">
";
// line 44
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)) {
// line 45
echo " <section class=\"event-overview\">
";
// line 46
$context['_parent'] = $context;
$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); })()));
foreach ($context['_seq'] as $context["_key"] => $context["vacancy"]) {
// line 47
echo " ";
$context["detailLink"] = $this->extensions['App\Twig\Extension\VacancyExtension']->generateLink($this->sandbox->ensureToStringAllowed($context["vacancy"], 47, $this->source));
// line 48
echo " <div class=\"row mb-5\">
<div class=\"col-12\">
<h2>";
// line 50
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, $context["vacancy"], "title", [], "any", false, false, true, 50), 50, $this->source), "html", null, true);
echo "</h2>
<p>
<span class=\"date text-black text-opacity-50 fst-italic\">
";
// line 53
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Geplaatst op:"), "html", null, true);
echo "
";
// line 54
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["vacancy"], "getDate", [], "method", false, false, true, 54), "format", [0 => "d/m/y"], "method", false, false, true, 54), 54, $this->source), "html", null, true);
echo "
</span>
</p>
<p>
";
// line 58
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", false, false, true, 58), 58, $this->source), 300, "..."), "html", null, true);
echo "
</p>
<p>
<a href=\"";
// line 62
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", null, true);
echo "\" class=\"btn btn-primary\">";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Meer lezen"), "html", null, true);
echo "</a>
</p>
</div>
</div>
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['vacancy'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 68
echo " </section>
";
} else {
// line 70
echo " <p>";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Er werden geen vacatures gevonden."), "html", null, true);
echo "</p>
";
}
// line 72
echo "
<div class=\"col-12\">
";
// line 74
$this->loadTemplate("includes/pagination.html.twig", "vacancy/overview.html.twig", 74)->display($context);
// line 75
echo " </div>
</div>
</div>
</div>
</div>
</div>
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
public function getTemplateName()
{
return "vacancy/overview.html.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
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,);
}
public function getSourceContext()
{
return new Source("{% extends base_layout() %}
{% block content %}
<div class=\"container mb-5\">
{{ include('includes/title.html.twig') }}
<div class=\"row\">
<div class=\"col-12\">
<div class=\"row\">
<div class=\"col-12\">
{% if editmode %}
{% set message = 'Om een job toe te voegen: wendt u zich naar \"Objects\"' %}
{% include 'includes/basicBlocks/admin/message/tip.html.twig' with {'message': message, 'type' : 'alert'} %}
{% endif %}
</div>
</div>
<div class=\"row\">
<div class=\"col-lg-4 d-none d-lg-block\">
{% if editmode %}
{{ pimcore_image(\"myImagevac\", {
\"title\": \"Drag your image here\",
\"width\": 200,
\"height\": 300,
\"thumbnail\": \"jobs-thumb\",
\"attributes\": {
\"class\": \"img-fluid\"
}
}) }}
{% endif %}
{% if not editmode %}
<img src=\"{{ pimcore_image(\"myImagevac\").getThumbnail(\"jobs-thumb\") }}\" class=\"img-fluid\">
{% endif %}
</div>
<div class=\"col-lg-8 ps-lg-5\">
{% if vacancies|length >= 1 %}
<section class=\"event-overview\">
{% for vacancy in vacancies %}
{% set detailLink = app_vacancy_detaillink(vacancy) %}
<div class=\"row mb-5\">
<div class=\"col-12\">
<h2>{{ vacancy.title }}</h2>
<p>
<span class=\"date text-black text-opacity-50 fst-italic\">
{{ 'Geplaatst op:'|trans }}
{{ vacancy.getDate().format(\"d/m/y\") }}
</span>
</p>
<p>
{{ vacancy.content|truncate(300, '...') }}
</p>
<p>
<a href=\"{{ detailLink }}\" class=\"btn btn-primary\">{{ 'Meer lezen'|trans }}</a>
</p>
</div>
</div>
{% endfor %}
</section>
{% else %}
<p>{{ 'Er werden geen vacatures gevonden.'|trans }}</p>
{% endif %}
<div class=\"col-12\">
{% include 'includes/pagination.html.twig' %}
</div>
</div>
</div>
</div>
</div>
</div>
{% endblock %}", "vacancy/overview.html.twig", "/var/www/clients/client2/web42/web/pc/templates/vacancy/overview.html.twig");
}
public function checkSecurity()
{
static $tags = array("if" => 12, "set" => 13, "include" => 14, "for" => 46);
static $filters = array("escape" => 35, "length" => 44, "trans" => 53, "truncate" => 58);
static $functions = array("include" => 6, "pimcore_image" => 22, "app_vacancy_detaillink" => 47, "base_layout" => 1);
try {
$this->sandbox->checkSecurity(
['if', 'set', 'include', 'for'],
['escape', 'length', 'trans', 'truncate'],
['include', 'pimcore_image', 'app_vacancy_detaillink', '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;
}
}
}