<?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;
/* fiche/_includes/infos.html.twig */
class __TwigTemplate_0fa495e1674f395d9c48d5fb765a15c0f2fde14eb79a46c973b33cc44c36fd62 extends Template
{
private $source;
private $macros = [];
public function __construct(Environment $env)
{
parent::__construct($env);
$this->source = $this->getSourceContext();
$this->parent = false;
$this->blocks = [
];
}
protected function doDisplay(array $context, array $blocks = [])
{
$macros = $this->macros;
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "fiche/_includes/infos.html.twig"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "fiche/_includes/infos.html.twig"));
// line 2
$context["actualite"] = twig_get_attribute($this->env, $this->source, twig_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", false, false, false, 2), "first", [], "any", false, false, false, 2);
// line 3
$context["offreEmploi"] = twig_get_attribute($this->env, $this->source, twig_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", false, false, false, 3), "first", [], "any", false, false, false, 3);
// line 4
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); })()))) {
// line 5
echo " <div class=\"block-info mb-2\">
<h2 class=\"titre-haut-1\">En ce moment : </h2>
<div class=\"fiche-infos\">
";
// line 10
echo " ";
if ((isset($context["jpo"]) || array_key_exists("jpo", $context) ? $context["jpo"] : (function () { throw new RuntimeError('Variable "jpo" does not exist.', 10, $this->source); })())) {
// line 11
echo " <div class=\"jpo\">
<a class=\"title\" href=\"";
// line 12
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", false, false, false, 12)]), "html", null, true);
echo "\"><strong>Journée portes ouvertes </strong> du ";
echo twig_escape_filter($this->env, $this->extensions['Twig\Extra\Intl\IntlExtension']->formatDate($this->env, 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); })()), "date", [], "any", false, false, false, 12), "medium", "EEEE dd MMMM Y"), "html", null, true);
echo "</a>
</div>
";
}
// line 15
echo "
";
// line 17
echo "
";
// line 18
if ((isset($context["actualite"]) || array_key_exists("actualite", $context) ? $context["actualite"] : (function () { throw new RuntimeError('Variable "actualite" does not exist.', 18, $this->source); })())) {
// line 19
echo " <div class=\"actus\">
<a class=\"title\" href=\"#actualites\"><strong>Actualités :</strong> ";
// line 20
echo twig_escape_filter($this->env, twig_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", false, false, false, 20)), "truncate", [0 => 35, 1 => "...", 2 => false], "method", false, false, false, 20), "html", null, true);
echo "</a>
</div>
";
}
// line 23
echo "
";
// line 25
echo "
";
// line 26
if ((isset($context["offreEmploi"]) || array_key_exists("offreEmploi", $context) ? $context["offreEmploi"] : (function () { throw new RuntimeError('Variable "offreEmploi" does not exist.', 26, $this->source); })())) {
// line 27
echo " <div class=\"jobs\">
<a class=\"title\" href=\"";
// line 28
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", false, false, false, 28)]), "html", null, true);
echo "\"><strong>Offres d'emploi : </strong> ";
echo twig_escape_filter($this->env, twig_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", false, false, false, 28)), "truncate", [0 => 35, 1 => "...", 2 => false], "method", false, false, false, 28), "html", null, true);
echo "</a>
</div>
";
}
// line 31
echo "
</div>
</div>
";
}
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
}
public function getTemplateName()
{
return "fiche/_includes/infos.html.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
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,);
}
public function getSourceContext()
{
return new Source("{# {% set jpo = etablissement.jPOs.first %} #}
{% set actualite = etablissement.actualites.first %}
{% set offreEmploi = etablissement.offresEmploiValides.first %}
{% if actualite or offreEmploi or jpo %}
<div class=\"block-info mb-2\">
<h2 class=\"titre-haut-1\">En ce moment : </h2>
<div class=\"fiche-infos\">
{# ----- JPO ------------------------------------------- #}
{% if jpo %}
<div class=\"jpo\">
<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>
</div>
{% endif %}
{# ----- Actualité -------------------------------------------------- #}
{% if actualite %}
<div class=\"actus\">
<a class=\"title\" href=\"#actualites\"><strong>Actualités :</strong> {{ actualite.titre | u.truncate(35, \"...\", false) }}</a>
</div>
{% endif %}
{# ----- Offre d'emploi --------------------------------------------- #}
{% if offreEmploi %}
<div class=\"jobs\">
<a class=\"title\" href=\"{{ path('offre-emploi', {'id': offreEmploi.id}) }}\"><strong>Offres d'emploi : </strong> {{ offreEmploi.libelle | u.truncate(35, \"...\", false) }}</a>
</div>
{% endif %}
</div>
</div>
{% endif %}
", "fiche/_includes/infos.html.twig", "/app/templates/fiche/_includes/infos.html.twig");
}
}