var/cache/dev/twig/a4/a4b9690ec16735cfa97af10ea17edf9bde6fd2df337f849538c36dc3669c6732.php line 99

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. /* fiche/_includes/infos.html.twig */
  14. class __TwigTemplate_0fa495e1674f395d9c48d5fb765a15c0f2fde14eb79a46c973b33cc44c36fd62 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->parent false;
  23.         $this->blocks = [
  24.         ];
  25.     }
  26.     protected function doDisplay(array $context, array $blocks = [])
  27.     {
  28.         $macros $this->macros;
  29.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  30.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""fiche/_includes/infos.html.twig"));
  31.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  32.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""fiche/_includes/infos.html.twig"));
  33.         // line 2
  34.         $context["actualite"] = twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["etablissement"]) || array_key_exists("etablissement"$context) ? $context["etablissement"] : (function () { throw new RuntimeError('Variable "etablissement" does not exist.'2$this->source); })()), "actualites", [], "any"falsefalsefalse2), "first", [], "any"falsefalsefalse2);
  35.         // line 3
  36.         $context["offreEmploi"] = twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["etablissement"]) || array_key_exists("etablissement"$context) ? $context["etablissement"] : (function () { throw new RuntimeError('Variable "etablissement" does not exist.'3$this->source); })()), "offresEmploiValides", [], "any"falsefalsefalse3), "first", [], "any"falsefalsefalse3);
  37.         // line 4
  38.         if ((((isset($context["actualite"]) || array_key_exists("actualite"$context) ? $context["actualite"] : (function () { throw new RuntimeError('Variable "actualite" does not exist.'4$this->source); })()) || (isset($context["offreEmploi"]) || array_key_exists("offreEmploi"$context) ? $context["offreEmploi"] : (function () { throw new RuntimeError('Variable "offreEmploi" does not exist.'4$this->source); })())) || (isset($context["jpo"]) || array_key_exists("jpo"$context) ? $context["jpo"] : (function () { throw new RuntimeError('Variable "jpo" does not exist.'4$this->source); })()))) {
  39.             // line 5
  40.             echo "    <div class=\"block-info mb-2\">
  41.         <h2 class=\"titre-haut-1\">En ce moment : </h2>
  42.         <div class=\"fiche-infos\">
  43.             ";
  44.             // line 10
  45.             echo "            ";
  46.             if ((isset($context["jpo"]) || array_key_exists("jpo"$context) ? $context["jpo"] : (function () { throw new RuntimeError('Variable "jpo" does not exist.'10$this->source); })())) {
  47.                 // line 11
  48.                 echo "                <div class=\"jpo\">
  49.                     <a class=\"title\" href=\"";
  50.                 // line 12
  51.                 echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("jpo-etab", ["id" => twig_get_attribute($this->env$this->source, (isset($context["jpo"]) || array_key_exists("jpo"$context) ? $context["jpo"] : (function () { throw new RuntimeError('Variable "jpo" does not exist.'12$this->source); })()), "id", [], "any"falsefalsefalse12)]), "html"nulltrue);
  52.                 echo "\"><strong>Journée portes ouvertes </strong> du ";
  53.                 echo twig_escape_filter($this->env$this->extensions['Twig\Extra\Intl\IntlExtension']->formatDate($this->envtwig_get_attribute($this->env$this->source, (isset($context["jpo"]) || array_key_exists("jpo"$context) ? $context["jpo"] : (function () { throw new RuntimeError('Variable "jpo" does not exist.'12$this->source); })()), "date", [], "any"falsefalsefalse12), "medium""EEEE dd MMMM Y"), "html"nulltrue);
  54.                 echo "</a>
  55.                 </div>
  56.             ";
  57.             }
  58.             // line 15
  59.             echo "
  60.             ";
  61.             // line 17
  62.             echo "
  63.             ";
  64.             // line 18
  65.             if ((isset($context["actualite"]) || array_key_exists("actualite"$context) ? $context["actualite"] : (function () { throw new RuntimeError('Variable "actualite" does not exist.'18$this->source); })())) {
  66.                 // line 19
  67.                 echo "                <div class=\"actus\">
  68.                     <a class=\"title\" href=\"#actualites\"><strong>Actualités :</strong> ";
  69.                 // line 20
  70.                 echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$this->extensions['Twig\Extra\String\StringExtension']->createUnicodeString(twig_get_attribute($this->env$this->source, (isset($context["actualite"]) || array_key_exists("actualite"$context) ? $context["actualite"] : (function () { throw new RuntimeError('Variable "actualite" does not exist.'20$this->source); })()), "titre", [], "any"falsefalsefalse20)), "truncate", [=> 35=> "..."=> false], "method"falsefalsefalse20), "html"nulltrue);
  71.                 echo "</a>
  72.                 </div>
  73.             ";
  74.             }
  75.             // line 23
  76.             echo "
  77.             ";
  78.             // line 25
  79.             echo "
  80.             ";
  81.             // line 26
  82.             if ((isset($context["offreEmploi"]) || array_key_exists("offreEmploi"$context) ? $context["offreEmploi"] : (function () { throw new RuntimeError('Variable "offreEmploi" does not exist.'26$this->source); })())) {
  83.                 // line 27
  84.                 echo "                <div class=\"jobs\">
  85.                     <a class=\"title\" href=\"";
  86.                 // line 28
  87.                 echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("offre-emploi", ["id" => twig_get_attribute($this->env$this->source, (isset($context["offreEmploi"]) || array_key_exists("offreEmploi"$context) ? $context["offreEmploi"] : (function () { throw new RuntimeError('Variable "offreEmploi" does not exist.'28$this->source); })()), "id", [], "any"falsefalsefalse28)]), "html"nulltrue);
  88.                 echo "\"><strong>Offres d'emploi : </strong> ";
  89.                 echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$this->extensions['Twig\Extra\String\StringExtension']->createUnicodeString(twig_get_attribute($this->env$this->source, (isset($context["offreEmploi"]) || array_key_exists("offreEmploi"$context) ? $context["offreEmploi"] : (function () { throw new RuntimeError('Variable "offreEmploi" does not exist.'28$this->source); })()), "libelle", [], "any"falsefalsefalse28)), "truncate", [=> 35=> "..."=> false], "method"falsefalsefalse28), "html"nulltrue);
  90.                 echo "</a>
  91.                 </div>
  92.             ";
  93.             }
  94.             // line 31
  95.             echo "
  96.         </div>
  97.     </div>
  98. ";
  99.         }
  100.         
  101.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  102.         
  103.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  104.     }
  105.     public function getTemplateName()
  106.     {
  107.         return "fiche/_includes/infos.html.twig";
  108.     }
  109.     public function isTraitable()
  110.     {
  111.         return false;
  112.     }
  113.     public function getDebugInfo()
  114.     {
  115.         return array (  105 => 31,  97 => 28,  94 => 27,  92 => 26,  89 => 25,  86 => 23,  80 => 20,  77 => 19,  75 => 18,  72 => 17,  69 => 15,  61 => 12,  58 => 11,  55 => 10,  49 => 5,  47 => 4,  45 => 3,  43 => 2,);
  116.     }
  117.     public function getSourceContext()
  118.     {
  119.         return new Source("{# {% set jpo = etablissement.jPOs.first %} #}
  120. {% set actualite = etablissement.actualites.first %}
  121. {% set offreEmploi = etablissement.offresEmploiValides.first %}
  122. {% if actualite or offreEmploi or jpo %}
  123.     <div class=\"block-info mb-2\">
  124.         <h2 class=\"titre-haut-1\">En ce moment : </h2>
  125.         <div class=\"fiche-infos\">
  126.             {# ----- JPO ------------------------------------------- #}
  127.             {% if jpo %}
  128.                 <div class=\"jpo\">
  129.                     <a class=\"title\" href=\"{{ path('jpo-etab', {'id': jpo.id}) }}\"><strong>Journée portes ouvertes </strong> du {{jpo.date | format_date(pattern='EEEE dd MMMM Y')}}</a>
  130.                 </div>
  131.             {% endif %}
  132.             {# ----- Actualité -------------------------------------------------- #}
  133.             {% if actualite %}
  134.                 <div class=\"actus\">
  135.                     <a class=\"title\" href=\"#actualites\"><strong>Actualités :</strong> {{ actualite.titre | u.truncate(35, \"...\", false) }}</a>
  136.                 </div>
  137.             {% endif %}
  138.             {# ----- Offre d'emploi --------------------------------------------- #}
  139.             {% if offreEmploi %}
  140.                 <div class=\"jobs\">
  141.                     <a class=\"title\" href=\"{{ path('offre-emploi', {'id': offreEmploi.id}) }}\"><strong>Offres d'emploi : </strong> {{ offreEmploi.libelle | u.truncate(35, \"...\", false) }}</a>
  142.                 </div>
  143.             {% endif %}
  144.         </div>
  145.     </div>
  146. {% endif %}
  147. ""fiche/_includes/infos.html.twig""/app/templates/fiche/_includes/infos.html.twig");
  148.     }
  149. }