var/cache/dev/twig/9f/9ff65ff3aec5775dda81c5af0c5a4e84.php line 38

  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. /* Default/opportunities.html.twig */
  14. class __TwigTemplate_63f87016bf0842c4f45a92a93f1c83c1 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.     }
  26.     protected function doGetParent(array $context)
  27.     {
  28.         // line 8
  29.         return "Default/base.html.twig";
  30.     }
  31.     protected function doDisplay(array $context, array $blocks = [])
  32.     {
  33.         $macros $this->macros;
  34.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  35.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""Default/opportunities.html.twig"));
  36.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  37.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""Default/opportunities.html.twig"));
  38.         // line 1
  39.         $context["title"] = (((isset($context["cat"]) || array_key_exists("cat"$context) ? $context["cat"] : (function () { throw new RuntimeError('Variable "cat" does not exist.'1$this->source); })())) ? (twig_get_attribute($this->env$this->source, (isset($context["cat"]) || array_key_exists("cat"$context) ? $context["cat"] : (function () { throw new RuntimeError('Variable "cat" does not exist.'1$this->source); })()), "label", [], "any"falsefalsefalse1)) : ("Emplois"));
  40.         // line 2
  41.         $context["iconColor"] = "#1F4878";
  42.         // line 3
  43.         $context["titleColor"] = "#ffffff";
  44.         // line 4
  45.         $context["bgColor"] = "#81B0B1";
  46.         // line 5
  47.         $context["menu"] = "jobs";
  48.         // line 6
  49.         $macros["macros"] = $this->macros["macros"] = $this->loadTemplate("Default/macros.html.twig""Default/opportunities.html.twig"6)->unwrap();
  50.         // line 8
  51.         $this->parent $this->loadTemplate("Default/base.html.twig""Default/opportunities.html.twig"8);
  52.         $this->parent->display($contextarray_merge($this->blocks$blocks));
  53.         
  54.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  55.         
  56.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  57.     }
  58.     // line 10
  59.     public function block_content($context, array $blocks = [])
  60.     {
  61.         $macros $this->macros;
  62.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  63.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""content"));
  64.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  65.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""content"));
  66.         // line 11
  67.         echo "<div class='bg-white ";
  68.         echo twig_escape_filter($this->env$this->env->getFunction('desktop')->getCallable()("gpadding top-80-in"), "html"nulltrue);
  69.         echo " ";
  70.         echo twig_escape_filter($this->env$this->env->getFunction('mobile')->getCallable()("hz-20-in top-40-in"), "html"nulltrue);
  71.         echo " '>
  72.    <div class='flex row space wrap ";
  73.         // line 12
  74.         echo twig_escape_filter($this->env$this->env->getFunction('desktop')->getCallable()("top-80"), "html"nulltrue);
  75.         echo " ";
  76.         echo twig_escape_filter($this->env$this->env->getFunction('mobile')->getCallable()(""), "html"nulltrue);
  77.         echo "'>
  78.         ";
  79.         // line 18
  80.         echo "\t\t
  81. \t\t";
  82.         // line 19
  83.         $context['_parent'] = $context;
  84.         $context['_seq'] = twig_ensure_traversable((isset($context["list"]) || array_key_exists("list"$context) ? $context["list"] : (function () { throw new RuntimeError('Variable "list" does not exist.'19$this->source); })()));
  85.         $context['loop'] = [
  86.           'parent' => $context['_parent'],
  87.           'index0' => 0,
  88.           'index'  => 1,
  89.           'first'  => true,
  90.         ];
  91.         if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof \Countable)) {
  92.             $length count($context['_seq']);
  93.             $context['loop']['revindex0'] = $length 1;
  94.             $context['loop']['revindex'] = $length;
  95.             $context['loop']['length'] = $length;
  96.             $context['loop']['last'] = === $length;
  97.         }
  98.         foreach ($context['_seq'] as $context["_key"] => $context["o"]) {
  99.             // line 20
  100.             echo "\t\t\t";
  101.             if ((twig_get_attribute($this->env$this->source, (isset($context["cat"]) || array_key_exists("cat"$context) ? $context["cat"] : (function () { throw new RuntimeError('Variable "cat" does not exist.'20$this->source); })()), "slug", [], "any"falsefalsefalse20) == "appels-offres")) {
  102.                 // line 21
  103.                 echo "\t\t\t";
  104.                 echo twig_call_macro($macros["macros"], "macro_opportunityAlt", [$context["o"], twig_get_attribute($this->env$this->source$context["loop"], "index", [], "any"falsefalsefalse21)], 21$context$this->getSourceContext());
  105.                 echo "
  106. \t\t\t";
  107.             } else {
  108.                 // line 23
  109.                 echo "\t\t\t";
  110.                 echo twig_call_macro($macros["macros"], "macro_opportunity", [$context["o"], falsefalse], 23$context$this->getSourceContext());
  111.                 echo "
  112. \t\t\t";
  113.             }
  114.             // line 25
  115.             echo "\t\t";
  116.             ++$context['loop']['index0'];
  117.             ++$context['loop']['index'];
  118.             $context['loop']['first'] = false;
  119.             if (isset($context['loop']['length'])) {
  120.                 --$context['loop']['revindex0'];
  121.                 --$context['loop']['revindex'];
  122.                 $context['loop']['last'] = === $context['loop']['revindex0'];
  123.             }
  124.         }
  125.         $_parent $context['_parent'];
  126.         unset($context['_seq'], $context['_iterated'], $context['_key'], $context['o'], $context['_parent'], $context['loop']);
  127.         $context array_intersect_key($context$_parent) + $_parent;
  128.         // line 26
  129.         echo "\t\t
  130.     </div>
  131.     <div class='";
  132.         // line 28
  133.         echo twig_escape_filter($this->env$this->env->getFunction('desktop')->getCallable()("top-40-in bottom-50-in"), "html"nulltrue);
  134.         echo "'>
  135.     ";
  136.         // line 29
  137.         $this->loadTemplate("Default/counter.html.twig""Default/opportunities.html.twig"29)->display(twig_array_merge($context, ["expanded" => true]));
  138.         // line 30
  139.         echo "    </div>
  140. </div>
  141. ";
  142.         
  143.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  144.         
  145.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  146.     }
  147.     public function getTemplateName()
  148.     {
  149.         return "Default/opportunities.html.twig";
  150.     }
  151.     public function isTraitable()
  152.     {
  153.         return false;
  154.     }
  155.     public function getDebugInfo()
  156.     {
  157.         return array (  153 => 30,  151 => 29,  147 => 28,  143 => 26,  129 => 25,  123 => 23,  117 => 21,  114 => 20,  97 => 19,  94 => 18,  88 => 12,  81 => 11,  71 => 10,  60 => 8,  58 => 6,  56 => 5,  54 => 4,  52 => 3,  50 => 2,  48 => 1,  35 => 8,);
  158.     }
  159.     public function getSourceContext()
  160.     {
  161.         return new Source("{% set title = cat ? cat.label : \"Emplois\"  %}
  162. {% set iconColor = \"#1F4878\" %}
  163. {% set titleColor = \"#ffffff\" %}
  164. {% set bgColor = \"#81B0B1\" %}
  165. {% set menu = 'jobs' %}
  166. {% import \"Default/macros.html.twig\" as macros %}
  167. {% extends 'Default/base.html.twig' %}
  168. {% block content %}
  169. <div class='bg-white {{desktop(\"gpadding top-80-in\")}} {{mobile(\"hz-20-in top-40-in\")}} '>
  170.    <div class='flex row space wrap {{desktop(\"top-80\")}} {{mobile(\"\")}}'>
  171.         {#{% set list =  [{'structure':\"drh\",'openingDate':\"05 MARS 2023\",'status':'En cours','title' : \"Avis de recrutement d’un Directeur Technique (H/F)\", 'banner':\"images/emp1.jpg\"}] %}
  172. \t\t{% set list =  list|merge([{'structure':\"drh\",'openingDate':\"05 MARS 2023\",'status':'En cours','title' : \"Avis de recrutement d’une Assistante de Direction\", 'banner':\"images/emp2.jpg\"}]) %}
  173. \t\t{% set list =  list|merge([{'structure':\"dsi\",'openingDate':\"05 MARS 2023\",'status':'Clôturé','title' : \"Avis de recrutement d’un Assistant Ressources Humaines (H/F)\", 'banner':\"images/emp3.jpg\"}]) %}
  174. \t\t{% set list =  list|merge([{'structure':\"dsi\",'openingDate':\"05 MARS 2023\",'status':'Clôturé','title' : \"Avis de recrutement d’un Assistant Ressources Humaines (H/F)\", 'banner':\"images/emp4.jpg\"}]) %}
  175. \t\t#}
  176. \t\t
  177. \t\t{% for o in list %}
  178. \t\t\t{% if cat.slug == \"appels-offres\" %}
  179. \t\t\t{{macros.opportunityAlt(o,loop.index)}}
  180. \t\t\t{%else%}
  181. \t\t\t{{macros.opportunity(o, false, false)}}
  182. \t\t\t{%endif%}
  183. \t\t{%endfor%}
  184. \t\t
  185.     </div>
  186.     <div class='{{desktop(\"top-40-in bottom-50-in\")}}'>
  187.     {% include (\"Default/counter.html.twig\") with {expanded:true} %}
  188.     </div>
  189. </div>
  190. {% endblock %}
  191. ""Default/opportunities.html.twig""/home/olasoftnka/asin/templates/Default/opportunities.html.twig");
  192.     }
  193. }