<?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;
/* Jobs/_job_detail.html.twig */
class __TwigTemplate_7eb23d3bfe5e25f3be155641e1f3729a extends Template
{
private $source;
private $macros = [];
public function __construct(Environment $env)
{
parent::__construct($env);
$this->source = $this->getSourceContext();
$this->blocks = [
'titlebox' => [$this, 'block_titlebox'],
'job_content' => [$this, 'block_job_content'],
];
}
protected function doGetParent(array $context)
{
// line 1
return "Jobs/job.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", "Jobs/_job_detail.html.twig"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "Jobs/_job_detail.html.twig"));
// line 2
$macros["celler"] = $this->macros["celler"] = $this->loadTemplate("Admin/macros.html.twig", "Jobs/_job_detail.html.twig", 2)->unwrap();
// line 4
if (twig_get_attribute($this->env, $this->source, (isset($context["job"]) || array_key_exists("job", $context) ? $context["job"] : (function () { throw new RuntimeError('Variable "job" does not exist.', 4, $this->source); })()), "banner", [], "any", false, false, false, 4)) {
// line 5
$context["banner"] = $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl(twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["job"]) || array_key_exists("job", $context) ? $context["job"] : (function () { throw new RuntimeError('Variable "job" does not exist.', 5, $this->source); })()), "banner", [], "any", false, false, false, 5), "file", [], "any", false, false, false, 5));
}
// line 1
$this->parent = $this->loadTemplate("Jobs/job.html.twig", "Jobs/_job_detail.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 8
public function block_titlebox($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", "titlebox"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "titlebox"));
// line 9
echo " <div class=\"fill relative flex col middle\">
<h1 class=\"h2 white\">";
// line 10
echo twig_escape_filter($this->env, (isset($context["title"]) || array_key_exists("title", $context) ? $context["title"] : (function () { throw new RuntimeError('Variable "title" does not exist.', 10, $this->source); })()), "html", null, true);
echo "</h1>
</div>
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
// line 14
public function block_job_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", "job_content"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "job_content"));
// line 15
echo " <div class='";
echo twig_escape_filter($this->env, $this->env->getFunction('desktop')->getCallable()("flex row space top bottom-80 top-60"), "html", null, true);
echo " ";
echo twig_escape_filter($this->env, $this->env->getFunction('mobile')->getCallable()(""), "html", null, true);
echo "'>
<div class='w100 ";
// line 16
echo twig_escape_filter($this->env, $this->env->getFunction('desktop')->getCallable()("right-60"), "html", null, true);
echo "'>
";
// line 17
echo twig_include($this->env, $context, "Jobs/_job_info_.html.twig", ["job" => (isset($context["job"]) || array_key_exists("job", $context) ? $context["job"] : (function () { throw new RuntimeError('Variable "job" does not exist.', 17, $this->source); })()), "withButton" => true]);
echo "
</div>
<aside class=\"";
// line 19
echo twig_escape_filter($this->env, $this->env->getFunction('desktop')->getCallable()("third left-80 vt-20-in"), "html", null, true);
echo " ";
echo twig_escape_filter($this->env, $this->env->getFunction('mobile')->getCallable()("vt-20-in"), "html", null, true);
echo "\">
";
// line 20
if ((isset($context["sectorsJobs"]) || array_key_exists("sectorsJobs", $context) ? $context["sectorsJobs"] : (function () { throw new RuntimeError('Variable "sectorsJobs" does not exist.', 20, $this->source); })())) {
// line 21
echo " ";
if ($this->env->getFunction('isMobile')->getCallable()()) {
// line 22
echo " <div class=\"border border-gray border-1x bottom-40\"></div>
";
}
// line 24
echo " <p class=\"semibold ";
echo twig_escape_filter($this->env, $this->env->getFunction('desktop')->getCallable()("h4 warning"), "html", null, true);
echo twig_escape_filter($this->env, $this->env->getFunction('mobile')->getCallable()("top-20 h2 text-center black-alt"), "html", null, true);
echo "\">";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["static"]) || array_key_exists("static", $context) ? $context["static"] : (function () { throw new RuntimeError('Variable "static" does not exist.', 24, $this->source); })()), "JobDetailPageConnexeOfferTitle", [], "any", false, false, false, 24), "html", null, true);
echo "</p>
<div class=\"";
// line 25
echo twig_escape_filter($this->env, $this->env->getFunction('desktop')->getCallable()("top-30"), "html", null, true);
echo twig_escape_filter($this->env, $this->env->getFunction('mobile')->getCallable()("top-40"), "html", null, true);
echo " flex col\">
";
// line 26
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env, $this->source, (isset($context["sectorsJobs"]) || array_key_exists("sectorsJobs", $context) ? $context["sectorsJobs"] : (function () { throw new RuntimeError('Variable "sectorsJobs" does not exist.', 26, $this->source); })()), "results", [], "any", false, false, false, 26));
foreach ($context['_seq'] as $context["_key"] => $context["o"]) {
// line 27
echo " ";
if (($context["o"] != (isset($context["job"]) || array_key_exists("job", $context) ? $context["job"] : (function () { throw new RuntimeError('Variable "job" does not exist.', 27, $this->source); })()))) {
// line 28
echo " <div class=\"radius-5 ";
echo twig_escape_filter($this->env, $this->env->getFunction('desktop')->getCallable()("padding-20 bottom-30 shadow-alt"), "html", null, true);
echo twig_escape_filter($this->env, $this->env->getFunction('mobile')->getCallable()("padding-15 bottom-20 shadow-alt-2"), "html", null, true);
echo " bg-white black-alt\">
<label class=\"";
// line 29
echo (($this->env->getFunction('isDesktop')->getCallable()()) ? ("black-alt") : (""));
echo " semibold ";
echo twig_escape_filter($this->env, $this->env->getFunction('desktop')->getCallable()("h6"), "html", null, true);
echo twig_escape_filter($this->env, $this->env->getFunction('mobile')->getCallable()("h3"), "html", null, true);
echo "\">";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["o"], "title", [], "any", false, false, false, 29), "html", null, true);
echo "</label>
<p class=\"vt-10-in black-alt ";
// line 30
echo (($this->env->getFunction('isDesktop')->getCallable()()) ? ("p-alt") : ("h4"));
echo "\">";
echo twig_escape_filter($this->env, $this->extensions['App\Twig\OSExtension']->ellipseString(twig_get_attribute($this->env, $this->source, $context["o"], "description", [], "any", false, false, false, 30)), "html", null, true);
echo "</p>
<div class=\"border ";
// line 31
echo (($this->env->getFunction('isDesktop')->getCallable()()) ? ("border-gray") : ("border-success"));
echo " border ";
echo twig_escape_filter($this->env, $this->env->getFunction('mobile')->getCallable()("bottom-25 top-10"), "html", null, true);
echo "\"></div>
<div class=\"top-20 bottom-10 flex row space\">
<span></span>
<a class='p-alt radius-5 ";
// line 34
echo twig_escape_filter($this->env, $this->env->getFunction('desktop')->getCallable()("bg-gray border border-black border-1x black vt-7-in hz-10-in"), "html", null, true);
echo " ";
echo twig_escape_filter($this->env, $this->env->getFunction('mobile')->getCallable()("bg-gray success medium vt-5-in hz-10-in"), "html", null, true);
echo " nowrap'
href='";
// line 35
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("job-detail", ["uuid" => twig_get_attribute($this->env, $this->source, $context["o"], "uuid", [], "any", false, false, false, 35)]), "html", null, true);
echo "'>
";
// line 36
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("see more"), "html", null, true);
echo "
</a>
</div>
</div>
";
}
// line 41
echo " ";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['o'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 42
echo " </div>
";
}
// line 44
echo " </aside>
</div>
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
public function getTemplateName()
{
return "Jobs/_job_detail.html.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
return array ( 211 => 44, 207 => 42, 201 => 41, 193 => 36, 189 => 35, 183 => 34, 175 => 31, 169 => 30, 160 => 29, 154 => 28, 151 => 27, 147 => 26, 142 => 25, 134 => 24, 130 => 22, 127 => 21, 125 => 20, 119 => 19, 114 => 17, 110 => 16, 103 => 15, 93 => 14, 80 => 10, 77 => 9, 67 => 8, 56 => 1, 53 => 5, 51 => 4, 49 => 2, 36 => 1,);
}
public function getSourceContext()
{
return new Source("{% extends \"Jobs/job.html.twig\" %}
{% import \"Admin/macros.html.twig\" as celler %}
{% if job.banner %}
{% set banner= asset(job.banner.file) %}
{% endif %}
{% block titlebox %}
<div class=\"fill relative flex col middle\">
<h1 class=\"h2 white\">{{title}}</h1>
</div>
{% endblock %}
{% block job_content %}
<div class='{{desktop(\"flex row space top bottom-80 top-60\")}} {{mobile(\"\")}}'>
<div class='w100 {{ desktop(\"right-60\") }}'>
{{ include('Jobs/_job_info_.html.twig', {job:job, withButton: true}) }}
</div>
<aside class=\"{{desktop('third left-80 vt-20-in')}} {{mobile('vt-20-in')}}\">
{% if sectorsJobs %}
{% if isMobile() %}
<div class=\"border border-gray border-1x bottom-40\"></div>
{% endif %}
<p class=\"semibold {{ desktop(\"h4 warning\") }}{{ mobile(\"top-20 h2 text-center black-alt\") }}\">{{ static.JobDetailPageConnexeOfferTitle }}</p>
<div class=\"{{ desktop(\"top-30\") }}{{ mobile(\"top-40\")}} flex col\">
{% for o in sectorsJobs.results %}
{% if o != job %}
<div class=\"radius-5 {{ desktop(\"padding-20 bottom-30 shadow-alt\")}}{{ mobile(\"padding-15 bottom-20 shadow-alt-2\")}} bg-white black-alt\">
<label class=\"{{ isDesktop() ? 'black-alt'}} semibold {{ desktop(\"h6\") }}{{ mobile(\"h3\") }}\">{{o.title}}</label>
<p class=\"vt-10-in black-alt {{ isDesktop() ? \"p-alt\" : \"h4\" }}\">{{ o.description|ellipse }}</p>
<div class=\"border {{ isDesktop() ? \"border-gray\" : \"border-success\" }} border {{ mobile(\"bottom-25 top-10\") }}\"></div>
<div class=\"top-20 bottom-10 flex row space\">
<span></span>
<a class='p-alt radius-5 {{desktop('bg-gray border border-black border-1x black vt-7-in hz-10-in')}} {{mobile('bg-gray success medium vt-5-in hz-10-in')}} nowrap'
href='{{ path('job-detail', {uuid: o.uuid }) }}'>
{{ \"see more\"|trans }}
</a>
</div>
</div>
{% endif %}
{% endfor %}
</div>
{% endif %}
</aside>
</div>
{% endblock %}", "Jobs/_job_detail.html.twig", "/home/olasoftnka/nsia-jobs/templates/Jobs/_job_detail.html.twig");
}
}