<?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;
/* @VisualMediaVacancy/Vacancy/index.html.twig */
class __TwigTemplate_606891202e37b75806b5efb54c4cabc1 extends \Twig\Template
{
private $source;
private $macros = [];
public function __construct(Environment $env)
{
parent::__construct($env);
$this->source = $this->getSourceContext();
$this->blocks = [
'main' => [$this, 'block_main'],
'breadcrumb' => [$this, 'block_breadcrumb'],
];
}
protected function doGetParent(array $context)
{
// line 1
return "Layout/base.html.twig";
}
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", "@VisualMediaVacancy/Vacancy/index.html.twig"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "@VisualMediaVacancy/Vacancy/index.html.twig"));
$this->parent = $this->loadTemplate("Layout/base.html.twig", "@VisualMediaVacancy/Vacancy/index.html.twig", 1);
$this->parent->display($context, array_merge($this->blocks, $blocks));
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
}
// line 4
public function block_main($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", "main"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "main"));
// line 5
echo " <div class=\"container\">
<div class=\"row\">
<div class=\"col-12\">
";
// line 8
$this->displayBlock('breadcrumb', $context, $blocks);
// line 11
echo " </div>
</div>
</div>
<section class=\"vacancy-index\">
<div class=\"container\">
<div class=\"row\">
";
// line 18
$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.', 18, $this->source); })()));
foreach ($context['_seq'] as $context["_key"] => $context["vacancy"]) {
// line 19
echo " <div class=\"col-12 col-md-6 col-lg-4 mb-5\">
<h1>";
// line 20
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["vacancy"], "title", [], "any", false, false, false, 20), "html", null, true);
echo "</h1>
<a href=\"";
// line 21
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("vacancy_view", ["slug" => twig_get_attribute($this->env, $this->source, $context["vacancy"], "slug", [], "any", false, false, false, 21)]), "html", null, true);
echo "\">
<img src=\"";
// line 22
echo twig_escape_filter($this->env, $this->extensions['VisualMedia\LisaBundle\Twig\TwigUploadUrl']->url(twig_get_attribute($this->env, $this->source, $context["vacancy"], "upload", [], "any", false, false, false, 22)), "html", null, true);
echo "\" alt=\"\" class=\"img-fluid\" />
</a>
<p>";
// line 24
echo twig_truncate_filter($this->env, twig_get_attribute($this->env, $this->source, $context["vacancy"], "htmlContent", [], "any", false, false, false, 24), 150);
echo "</p>
<a href=\"";
// line 25
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("vacancy_view", ["slug" => twig_get_attribute($this->env, $this->source, $context["vacancy"], "slug", [], "any", false, false, false, 25)]), "html", null, true);
echo "\" class=\"btn btn-primary\" >";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("vacancy.index.read_more", [], "frontend"), "html", null, true);
echo " <i class=\"fas fa-chevron-right\"></i></a>
</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 28
echo " </div>
</div>
</section>
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
// line 8
public function block_breadcrumb($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", "breadcrumb"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "breadcrumb"));
// line 9
echo " ";
$this->loadTemplate("@VisualMediaBreadcrumb/Breadcrumb/breadcrumb.html.twig", "@VisualMediaVacancy/Vacancy/index.html.twig", 9)->display($context);
// line 10
echo " ";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
public function getTemplateName()
{
return "@VisualMediaVacancy/Vacancy/index.html.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
return array ( 146 => 10, 143 => 9, 133 => 8, 120 => 28, 109 => 25, 105 => 24, 100 => 22, 96 => 21, 92 => 20, 89 => 19, 85 => 18, 76 => 11, 74 => 8, 69 => 5, 59 => 4, 36 => 1,);
}
public function getSourceContext()
{
return new Source("{% extends 'Layout/base.html.twig' %}
{% block main %}
<div class=\"container\">
<div class=\"row\">
<div class=\"col-12\">
{% block breadcrumb %}
{% include '@VisualMediaBreadcrumb/Breadcrumb/breadcrumb.html.twig' %}
{% endblock %}
</div>
</div>
</div>
<section class=\"vacancy-index\">
<div class=\"container\">
<div class=\"row\">
{% for vacancy in vacancies %}
<div class=\"col-12 col-md-6 col-lg-4 mb-5\">
<h1>{{ vacancy.title }}</h1>
<a href=\"{{ path('vacancy_view', { slug : vacancy.slug }) }}\">
<img src=\"{{ vacancy.upload|url() }}\" alt=\"\" class=\"img-fluid\" />
</a>
<p>{{ vacancy.htmlContent|truncate(150)|raw }}</p>
<a href=\"{{ path('vacancy_view', { slug : vacancy.slug }) }}\" class=\"btn btn-primary\" >{{ 'vacancy.index.read_more'|trans({}, 'frontend') }} <i class=\"fas fa-chevron-right\"></i></a>
</div>
{% endfor %}
</div>
</div>
</section>
{% endblock %}
", "@VisualMediaVacancy/Vacancy/index.html.twig", "/var/www/public_html/lib/composer/VacancyBundle/src/VisualMedia/VacancyBundle/Resources/views/Vacancy/index.html.twig");
}
}