var/cache/dev/twig/ee/ee5278555e28e1835fd9cdc3c4ecd09a.php line 93

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. /* Jobs/_job_detail.html.twig */
  14. class __TwigTemplate_7eb23d3bfe5e25f3be155641e1f3729a 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.             'titlebox' => [$this'block_titlebox'],
  24.             'job_content' => [$this'block_job_content'],
  25.         ];
  26.     }
  27.     protected function doGetParent(array $context)
  28.     {
  29.         // line 1
  30.         return "Jobs/job.html.twig";
  31.     }
  32.     protected function doDisplay(array $context, array $blocks = [])
  33.     {
  34.         $macros $this->macros;
  35.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  36.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""Jobs/_job_detail.html.twig"));
  37.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  38.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""Jobs/_job_detail.html.twig"));
  39.         // line 2
  40.         $macros["celler"] = $this->macros["celler"] = $this->loadTemplate("Admin/macros.html.twig""Jobs/_job_detail.html.twig"2)->unwrap();
  41.         // line 4
  42.         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"falsefalsefalse4)) {
  43.             // line 5
  44.             $context["banner"] = $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl(twig_get_attribute($this->env$this->sourcetwig_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"falsefalsefalse5), "file", [], "any"falsefalsefalse5));
  45.         }
  46.         // line 1
  47.         $this->parent $this->loadTemplate("Jobs/job.html.twig""Jobs/_job_detail.html.twig"1);
  48.         $this->parent->display($contextarray_merge($this->blocks$blocks));
  49.         
  50.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  51.         
  52.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  53.     }
  54.     // line 8
  55.     public function block_titlebox($context, array $blocks = [])
  56.     {
  57.         $macros $this->macros;
  58.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  59.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""titlebox"));
  60.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  61.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""titlebox"));
  62.         // line 9
  63.         echo "    <div class=\"fill relative flex col middle\">
  64.         <h1 class=\"h2 white\">";
  65.         // line 10
  66.         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"nulltrue);
  67.         echo "</h1>
  68.     </div>
  69. ";
  70.         
  71.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  72.         
  73.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  74.     }
  75.     // line 14
  76.     public function block_job_content($context, array $blocks = [])
  77.     {
  78.         $macros $this->macros;
  79.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  80.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""job_content"));
  81.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  82.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""job_content"));
  83.         // line 15
  84.         echo "    <div class='";
  85.         echo twig_escape_filter($this->env$this->env->getFunction('desktop')->getCallable()("flex row space top bottom-80 top-60"), "html"nulltrue);
  86.         echo " ";
  87.         echo twig_escape_filter($this->env$this->env->getFunction('mobile')->getCallable()(""), "html"nulltrue);
  88.         echo "'>
  89.         <div class='w100 ";
  90.         // line 16
  91.         echo twig_escape_filter($this->env$this->env->getFunction('desktop')->getCallable()("right-60"), "html"nulltrue);
  92.         echo "'>
  93.             ";
  94.         // line 17
  95.         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]);
  96.         echo "
  97.         </div>
  98.         <aside class=\"";
  99.         // line 19
  100.         echo twig_escape_filter($this->env$this->env->getFunction('desktop')->getCallable()("third left-80 vt-20-in"), "html"nulltrue);
  101.         echo " ";
  102.         echo twig_escape_filter($this->env$this->env->getFunction('mobile')->getCallable()("vt-20-in"), "html"nulltrue);
  103.         echo "\">
  104.             ";
  105.         // line 20
  106.         if ((isset($context["sectorsJobs"]) || array_key_exists("sectorsJobs"$context) ? $context["sectorsJobs"] : (function () { throw new RuntimeError('Variable "sectorsJobs" does not exist.'20$this->source); })())) {
  107.             // line 21
  108.             echo "                ";
  109.             if ($this->env->getFunction('isMobile')->getCallable()()) {
  110.                 // line 22
  111.                 echo "                    <div class=\"border border-gray border-1x bottom-40\"></div>
  112.                 ";
  113.             }
  114.             // line 24
  115.             echo "                <p class=\"semibold ";
  116.             echo twig_escape_filter($this->env$this->env->getFunction('desktop')->getCallable()("h4 warning"), "html"nulltrue);
  117.             echo twig_escape_filter($this->env$this->env->getFunction('mobile')->getCallable()("top-20 h2 text-center black-alt"), "html"nulltrue);
  118.             echo "\">";
  119.             echo twig_escape_filter($this->envtwig_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"falsefalsefalse24), "html"nulltrue);
  120.             echo "</p>
  121.                 <div class=\"";
  122.             // line 25
  123.             echo twig_escape_filter($this->env$this->env->getFunction('desktop')->getCallable()("top-30"), "html"nulltrue);
  124.             echo twig_escape_filter($this->env$this->env->getFunction('mobile')->getCallable()("top-40"), "html"nulltrue);
  125.             echo " flex col\">
  126.                     ";
  127.             // line 26
  128.             $context['_parent'] = $context;
  129.             $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"falsefalsefalse26));
  130.             foreach ($context['_seq'] as $context["_key"] => $context["o"]) {
  131.                 // line 27
  132.                 echo "                        ";
  133.                 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); })()))) {
  134.                     // line 28
  135.                     echo "                            <div class=\"radius-5 ";
  136.                     echo twig_escape_filter($this->env$this->env->getFunction('desktop')->getCallable()("padding-20 bottom-30 shadow-alt"), "html"nulltrue);
  137.                     echo twig_escape_filter($this->env$this->env->getFunction('mobile')->getCallable()("padding-15 bottom-20 shadow-alt-2"), "html"nulltrue);
  138.                     echo " bg-white black-alt\">
  139.                                 <label class=\"";
  140.                     // line 29
  141.                     echo (($this->env->getFunction('isDesktop')->getCallable()()) ? ("black-alt") : (""));
  142.                     echo " semibold ";
  143.                     echo twig_escape_filter($this->env$this->env->getFunction('desktop')->getCallable()("h6"), "html"nulltrue);
  144.                     echo twig_escape_filter($this->env$this->env->getFunction('mobile')->getCallable()("h3"), "html"nulltrue);
  145.                     echo "\">";
  146.                     echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["o"], "title", [], "any"falsefalsefalse29), "html"nulltrue);
  147.                     echo "</label>
  148.                                 <p class=\"vt-10-in black-alt ";
  149.                     // line 30
  150.                     echo (($this->env->getFunction('isDesktop')->getCallable()()) ? ("p-alt") : ("h4"));
  151.                     echo "\">";
  152.                     echo twig_escape_filter($this->env$this->extensions['App\Twig\OSExtension']->ellipseString(twig_get_attribute($this->env$this->source$context["o"], "description", [], "any"falsefalsefalse30)), "html"nulltrue);
  153.                     echo "</p>
  154.                                 <div class=\"border ";
  155.                     // line 31
  156.                     echo (($this->env->getFunction('isDesktop')->getCallable()()) ? ("border-gray") : ("border-success"));
  157.                     echo " border ";
  158.                     echo twig_escape_filter($this->env$this->env->getFunction('mobile')->getCallable()("bottom-25 top-10"), "html"nulltrue);
  159.                     echo "\"></div>
  160.                                 <div class=\"top-20 bottom-10 flex row space\">
  161.                                     <span></span>
  162.                                     <a class='p-alt radius-5 ";
  163.                     // line 34
  164.                     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"nulltrue);
  165.                     echo " ";
  166.                     echo twig_escape_filter($this->env$this->env->getFunction('mobile')->getCallable()("bg-gray success medium vt-5-in hz-10-in"), "html"nulltrue);
  167.                     echo " nowrap'
  168.                                        href='";
  169.                     // line 35
  170.                     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"falsefalsefalse35)]), "html"nulltrue);
  171.                     echo "'>
  172.                                         ";
  173.                     // line 36
  174.                     echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("see more"), "html"nulltrue);
  175.                     echo "
  176.                                     </a>
  177.                                 </div>
  178.                             </div>
  179.                         ";
  180.                 }
  181.                 // line 41
  182.                 echo "                    ";
  183.             }
  184.             $_parent $context['_parent'];
  185.             unset($context['_seq'], $context['_iterated'], $context['_key'], $context['o'], $context['_parent'], $context['loop']);
  186.             $context array_intersect_key($context$_parent) + $_parent;
  187.             // line 42
  188.             echo "                </div>
  189.             ";
  190.         }
  191.         // line 44
  192.         echo "        </aside>
  193.     </div>
  194. ";
  195.         
  196.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  197.         
  198.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  199.     }
  200.     public function getTemplateName()
  201.     {
  202.         return "Jobs/_job_detail.html.twig";
  203.     }
  204.     public function isTraitable()
  205.     {
  206.         return false;
  207.     }
  208.     public function getDebugInfo()
  209.     {
  210.         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,);
  211.     }
  212.     public function getSourceContext()
  213.     {
  214.         return new Source("{% extends \"Jobs/job.html.twig\" %}
  215. {% import \"Admin/macros.html.twig\" as celler %}
  216. {% if job.banner %}
  217.     {% set banner= asset(job.banner.file) %}
  218. {% endif %}
  219. {% block titlebox %}
  220.     <div class=\"fill relative flex col middle\">
  221.         <h1 class=\"h2 white\">{{title}}</h1>
  222.     </div>
  223. {% endblock %}
  224. {% block job_content %}
  225.     <div class='{{desktop(\"flex row space top bottom-80 top-60\")}} {{mobile(\"\")}}'>
  226.         <div class='w100 {{ desktop(\"right-60\") }}'>
  227.             {{ include('Jobs/_job_info_.html.twig', {job:job, withButton: true}) }}
  228.         </div>
  229.         <aside class=\"{{desktop('third left-80 vt-20-in')}} {{mobile('vt-20-in')}}\">
  230.             {% if sectorsJobs %}
  231.                 {% if isMobile() %}
  232.                     <div class=\"border border-gray border-1x bottom-40\"></div>
  233.                 {% endif %}
  234.                 <p class=\"semibold {{ desktop(\"h4 warning\") }}{{ mobile(\"top-20 h2 text-center black-alt\") }}\">{{ static.JobDetailPageConnexeOfferTitle }}</p>
  235.                 <div class=\"{{ desktop(\"top-30\") }}{{ mobile(\"top-40\")}} flex col\">
  236.                     {% for o in sectorsJobs.results %}
  237.                         {% if o != job %}
  238.                             <div class=\"radius-5 {{ desktop(\"padding-20 bottom-30 shadow-alt\")}}{{ mobile(\"padding-15 bottom-20 shadow-alt-2\")}} bg-white black-alt\">
  239.                                 <label class=\"{{ isDesktop() ? 'black-alt'}} semibold {{ desktop(\"h6\") }}{{ mobile(\"h3\") }}\">{{o.title}}</label>
  240.                                 <p class=\"vt-10-in black-alt {{ isDesktop() ? \"p-alt\" : \"h4\" }}\">{{ o.description|ellipse }}</p>
  241.                                 <div class=\"border {{ isDesktop() ? \"border-gray\" : \"border-success\" }} border {{ mobile(\"bottom-25 top-10\") }}\"></div>
  242.                                 <div class=\"top-20 bottom-10 flex row space\">
  243.                                     <span></span>
  244.                                     <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'
  245.                                        href='{{ path('job-detail', {uuid: o.uuid }) }}'>
  246.                                         {{ \"see more\"|trans }}
  247.                                     </a>
  248.                                 </div>
  249.                             </div>
  250.                         {% endif %}
  251.                     {% endfor %}
  252.                 </div>
  253.             {% endif %}
  254.         </aside>
  255.     </div>
  256. {% endblock %}""Jobs/_job_detail.html.twig""/home/olasoftnka/nsia-jobs/templates/Jobs/_job_detail.html.twig");
  257.     }
  258. }