<?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;
/* organisme/_includes/breadcrumb.html.twig */
class __TwigTemplate_c68f57127d4eb98c4453d5f85c12b4e9ef4b009eee009b014748532b2c76a64a 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", "organisme/_includes/breadcrumb.html.twig"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "organisme/_includes/breadcrumb.html.twig"));
// line 1
$context["position"] = 1;
// line 2
echo "<ul class=\"breadcrumb\" itemscope itemtype=\"https://schema.org/BreadcrumbList\">
";
// line 5
echo " <li itemprop=\"itemListElement\" itemscope itemtype=\"https://schema.org/ListItem\">
<a href=\"";
// line 6
echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("homepage");
echo "\" itemscope itemtype=\"https://schema.org/Thing\" itemprop=\"item\" itemid=\"\"><span itemprop=\"name\">Accueil</span></a>
<meta itemprop=\"position\" content=\"";
// line 7
echo twig_escape_filter($this->env, (isset($context["position"]) || array_key_exists("position", $context) ? $context["position"] : (function () { throw new RuntimeError('Variable "position" does not exist.', 7, $this->source); })()), "html", null, true);
echo "\">
";
// line 8
$context["position"] = ((isset($context["position"]) || array_key_exists("position", $context) ? $context["position"] : (function () { throw new RuntimeError('Variable "position" does not exist.', 8, $this->source); })()) + 1);
// line 9
echo " </li>
<li class=\"separator\"></li>
";
// line 14
echo " ";
if ((0 === twig_compare(twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 14, $this->source); })()), "request", [], "any", false, false, false, 14), "attributes", [], "any", false, false, false, 14), "get", [0 => "_route"], "method", false, false, false, 14), "organismes_cos"))) {
// line 15
echo " <li itemprop=\"itemListElement\" itemscope itemtype=\"https://schema.org/ListItem\">
<span itemprop=\"name\">Orientation Scolaire</span>
<meta itemprop=\"position\" content=\"";
// line 17
echo twig_escape_filter($this->env, (isset($context["position"]) || array_key_exists("position", $context) ? $context["position"] : (function () { throw new RuntimeError('Variable "position" does not exist.', 17, $this->source); })()), "html", null, true);
echo "\">
";
// line 18
$context["position"] = ((isset($context["position"]) || array_key_exists("position", $context) ? $context["position"] : (function () { throw new RuntimeError('Variable "position" does not exist.', 18, $this->source); })()) + 1);
// line 19
echo " </li>
";
}
// line 21
echo "
";
// line 23
echo " ";
if ((0 === twig_compare(twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 23, $this->source); })()), "request", [], "any", false, false, false, 23), "attributes", [], "any", false, false, false, 23), "get", [0 => "_route"], "method", false, false, false, 23), "organisme"))) {
// line 24
echo " <li itemprop=\"itemListElement\" itemscope itemtype=\"https://schema.org/ListItem\">
<span itemprop=\"name\">Organismes</span>
<meta itemprop=\"position\" content=\"";
// line 26
echo twig_escape_filter($this->env, (isset($context["position"]) || array_key_exists("position", $context) ? $context["position"] : (function () { throw new RuntimeError('Variable "position" does not exist.', 26, $this->source); })()), "html", null, true);
echo "\">
";
// line 27
$context["position"] = ((isset($context["position"]) || array_key_exists("position", $context) ? $context["position"] : (function () { throw new RuntimeError('Variable "position" does not exist.', 27, $this->source); })()) + 1);
// line 28
echo " </li>
";
}
// line 30
echo "
";
// line 32
echo " ";
if ((0 === twig_compare(twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 32, $this->source); })()), "request", [], "any", false, false, false, 32), "attributes", [], "any", false, false, false, 32), "get", [0 => "_route"], "method", false, false, false, 32), "organismes_tous"))) {
// line 33
echo " <li itemprop=\"itemListElement\" itemscope itemtype=\"https://schema.org/ListItem\">
<a href=\"/organisme\" itemscope itemtype=\"https://schema.org/Thing\" itemprop=\"item\" itemid=\"/organisme\"><span itemprop=\"name\">Organismes</span></a>
<meta itemprop=\"position\" content=\"";
// line 35
echo twig_escape_filter($this->env, (isset($context["position"]) || array_key_exists("position", $context) ? $context["position"] : (function () { throw new RuntimeError('Variable "position" does not exist.', 35, $this->source); })()), "html", null, true);
echo "\">
";
// line 36
$context["position"] = ((isset($context["position"]) || array_key_exists("position", $context) ? $context["position"] : (function () { throw new RuntimeError('Variable "position" does not exist.', 36, $this->source); })()) + 1);
// line 37
echo " </li>
<li class=\"separator\"></li>
";
// line 39
if ((isset($context["categorie"]) || array_key_exists("categorie", $context) ? $context["categorie"] : (function () { throw new RuntimeError('Variable "categorie" does not exist.', 39, $this->source); })())) {
// line 40
echo " <li itemprop=\"itemListElement\" itemscope itemtype=\"https://schema.org/ListItem\">
<span itemprop=\"name\">";
// line 41
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["categorie"]) || array_key_exists("categorie", $context) ? $context["categorie"] : (function () { throw new RuntimeError('Variable "categorie" does not exist.', 41, $this->source); })()), "libelle", [], "any", false, false, false, 41), "html", null, true);
echo "</span>
<meta itemprop=\"position\" content=\"";
// line 42
echo twig_escape_filter($this->env, (isset($context["position"]) || array_key_exists("position", $context) ? $context["position"] : (function () { throw new RuntimeError('Variable "position" does not exist.', 42, $this->source); })()), "html", null, true);
echo "\">
";
// line 43
$context["position"] = ((isset($context["position"]) || array_key_exists("position", $context) ? $context["position"] : (function () { throw new RuntimeError('Variable "position" does not exist.', 43, $this->source); })()) + 1);
// line 44
echo " </li>
";
}
// line 46
echo " ";
}
// line 47
echo "
";
// line 49
echo " ";
if ((0 === twig_compare(twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 49, $this->source); })()), "request", [], "any", false, false, false, 49), "attributes", [], "any", false, false, false, 49), "get", [0 => "_route"], "method", false, false, false, 49), "organismes_departement"))) {
// line 50
echo " <li itemprop=\"itemListElement\" itemscope itemtype=\"https://schema.org/ListItem\">
<a href=\"/organisme\" itemscope itemtype=\"https://schema.org/Thing\" itemprop=\"item\" itemid=\"/organisme\"><span itemprop=\"name\">Organismes</span></a>
<meta itemprop=\"position\" content=\"";
// line 52
echo twig_escape_filter($this->env, (isset($context["position"]) || array_key_exists("position", $context) ? $context["position"] : (function () { throw new RuntimeError('Variable "position" does not exist.', 52, $this->source); })()), "html", null, true);
echo "\">
";
// line 53
$context["position"] = ((isset($context["position"]) || array_key_exists("position", $context) ? $context["position"] : (function () { throw new RuntimeError('Variable "position" does not exist.', 53, $this->source); })()) + 1);
// line 54
echo " </li>
<li class=\"separator\"></li>
";
// line 56
if (((isset($context["departement"]) || array_key_exists("departement", $context) ? $context["departement"] : (function () { throw new RuntimeError('Variable "departement" does not exist.', 56, $this->source); })()) && (0 !== twig_compare("BE", twig_get_attribute($this->env, $this->source, (isset($context["departement"]) || array_key_exists("departement", $context) ? $context["departement"] : (function () { throw new RuntimeError('Variable "departement" does not exist.', 56, $this->source); })()), "id", [], "any", false, false, false, 56))))) {
// line 57
echo " <li itemprop=\"itemListElement\" itemscope itemtype=\"https://schema.org/ListItem\">
<span itemprop=\"name\">";
// line 58
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["departement"]) || array_key_exists("departement", $context) ? $context["departement"] : (function () { throw new RuntimeError('Variable "departement" does not exist.', 58, $this->source); })()), "libelle", [], "any", false, false, false, 58), "html", null, true);
echo "</span>
<meta itemprop=\"position\" content=\"";
// line 59
echo twig_escape_filter($this->env, (isset($context["position"]) || array_key_exists("position", $context) ? $context["position"] : (function () { throw new RuntimeError('Variable "position" does not exist.', 59, $this->source); })()), "html", null, true);
echo "\">
";
// line 60
$context["position"] = ((isset($context["position"]) || array_key_exists("position", $context) ? $context["position"] : (function () { throw new RuntimeError('Variable "position" does not exist.', 60, $this->source); })()) + 1);
// line 61
echo " </li>
<li class=\"separator\"></li>
";
}
// line 64
echo " <li itemprop=\"itemListElement\" itemscope itemtype=\"https://schema.org/ListItem\">
<span itemprop=\"name\">";
// line 65
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["categorie"]) || array_key_exists("categorie", $context) ? $context["categorie"] : (function () { throw new RuntimeError('Variable "categorie" does not exist.', 65, $this->source); })()), "libelle", [], "any", false, false, false, 65), "html", null, true);
echo "</span>
<meta itemprop=\"position\" content=\"";
// line 66
echo twig_escape_filter($this->env, (isset($context["position"]) || array_key_exists("position", $context) ? $context["position"] : (function () { throw new RuntimeError('Variable "position" does not exist.', 66, $this->source); })()), "html", null, true);
echo "\">
";
// line 67
$context["position"] = ((isset($context["position"]) || array_key_exists("position", $context) ? $context["position"] : (function () { throw new RuntimeError('Variable "position" does not exist.', 67, $this->source); })()) + 1);
// line 68
echo " </li>
";
}
// line 70
echo "
";
// line 72
echo " ";
if ((0 === twig_compare(twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 72, $this->source); })()), "request", [], "any", false, false, false, 72), "attributes", [], "any", false, false, false, 72), "get", [0 => "_route"], "method", false, false, false, 72), "organismes_region"))) {
// line 73
echo " <li itemprop=\"itemListElement\" itemscope itemtype=\"https://schema.org/ListItem\">
<a href=\"/organisme\" itemscope itemtype=\"https://schema.org/Thing\" itemprop=\"item\" itemid=\"/organisme\"><span itemprop=\"name\">Organismes</span></a>
<meta itemprop=\"position\" content=\"";
// line 75
echo twig_escape_filter($this->env, (isset($context["position"]) || array_key_exists("position", $context) ? $context["position"] : (function () { throw new RuntimeError('Variable "position" does not exist.', 75, $this->source); })()), "html", null, true);
echo "\">
";
// line 76
$context["position"] = ((isset($context["position"]) || array_key_exists("position", $context) ? $context["position"] : (function () { throw new RuntimeError('Variable "position" does not exist.', 76, $this->source); })()) + 1);
// line 77
echo " </li>
<li class=\"separator\"></li>
";
// line 79
if (((isset($context["region"]) || array_key_exists("region", $context) ? $context["region"] : (function () { throw new RuntimeError('Variable "region" does not exist.', 79, $this->source); })()) && (0 !== twig_compare($this->extensions['App\Twig\LieuExtension']->lieuLibelle((isset($context["region"]) || array_key_exists("region", $context) ? $context["region"] : (function () { throw new RuntimeError('Variable "region" does not exist.', 79, $this->source); })())), "DEFAULT")))) {
// line 80
echo " <li itemprop=\"itemListElement\" itemscope itemtype=\"https://schema.org/ListItem\">
<span itemprop=\"name\">";
// line 81
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["region"]) || array_key_exists("region", $context) ? $context["region"] : (function () { throw new RuntimeError('Variable "region" does not exist.', 81, $this->source); })()), "libelle", [], "any", false, false, false, 81), "html", null, true);
echo "</span>
<meta itemprop=\"position\" content=\"";
// line 82
echo twig_escape_filter($this->env, (isset($context["position"]) || array_key_exists("position", $context) ? $context["position"] : (function () { throw new RuntimeError('Variable "position" does not exist.', 82, $this->source); })()), "html", null, true);
echo "\">
";
// line 83
$context["position"] = ((isset($context["position"]) || array_key_exists("position", $context) ? $context["position"] : (function () { throw new RuntimeError('Variable "position" does not exist.', 83, $this->source); })()) + 1);
// line 84
echo " </li>
<li class=\"separator\"></li>
";
}
// line 87
echo " <li itemprop=\"itemListElement\" itemscope itemtype=\"https://schema.org/ListItem\">
<span itemprop=\"name\">";
// line 88
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["categorie"]) || array_key_exists("categorie", $context) ? $context["categorie"] : (function () { throw new RuntimeError('Variable "categorie" does not exist.', 88, $this->source); })()), "libelle", [], "any", false, false, false, 88), "html", null, true);
echo "</span>
<meta itemprop=\"position\" content=\"";
// line 89
echo twig_escape_filter($this->env, (isset($context["position"]) || array_key_exists("position", $context) ? $context["position"] : (function () { throw new RuntimeError('Variable "position" does not exist.', 89, $this->source); })()), "html", null, true);
echo "\">
";
// line 90
$context["position"] = ((isset($context["position"]) || array_key_exists("position", $context) ? $context["position"] : (function () { throw new RuntimeError('Variable "position" does not exist.', 90, $this->source); })()) + 1);
// line 91
echo " </li>
";
}
// line 93
echo "
</ul>
";
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
}
public function getTemplateName()
{
return "organisme/_includes/breadcrumb.html.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
return array ( 261 => 93, 257 => 91, 255 => 90, 251 => 89, 247 => 88, 244 => 87, 239 => 84, 237 => 83, 233 => 82, 229 => 81, 226 => 80, 224 => 79, 220 => 77, 218 => 76, 214 => 75, 210 => 73, 207 => 72, 204 => 70, 200 => 68, 198 => 67, 194 => 66, 190 => 65, 187 => 64, 182 => 61, 180 => 60, 176 => 59, 172 => 58, 169 => 57, 167 => 56, 163 => 54, 161 => 53, 157 => 52, 153 => 50, 150 => 49, 147 => 47, 144 => 46, 140 => 44, 138 => 43, 134 => 42, 130 => 41, 127 => 40, 125 => 39, 121 => 37, 119 => 36, 115 => 35, 111 => 33, 108 => 32, 105 => 30, 101 => 28, 99 => 27, 95 => 26, 91 => 24, 88 => 23, 85 => 21, 81 => 19, 79 => 18, 75 => 17, 71 => 15, 68 => 14, 62 => 9, 60 => 8, 56 => 7, 52 => 6, 49 => 5, 45 => 2, 43 => 1,);
}
public function getSourceContext()
{
return new Source("{% set position = 1 %}
<ul class=\"breadcrumb\" itemscope itemtype=\"https://schema.org/BreadcrumbList\">
{# ----- Rubrique ------------------------------------------------------- #}
<li itemprop=\"itemListElement\" itemscope itemtype=\"https://schema.org/ListItem\">
<a href=\"{{ path('homepage') }}\" itemscope itemtype=\"https://schema.org/Thing\" itemprop=\"item\" itemid=\"\"><span itemprop=\"name\">Accueil</span></a>
<meta itemprop=\"position\" content=\"{{ position }}\">
{% set position = position + 1 %}
</li>
<li class=\"separator\"></li>
{# ----- organismes_cos ------------------------------------------------------- #}
{% if app.request.attributes.get('_route') == \"organismes_cos\" %}
<li itemprop=\"itemListElement\" itemscope itemtype=\"https://schema.org/ListItem\">
<span itemprop=\"name\">Orientation Scolaire</span>
<meta itemprop=\"position\" content=\"{{ position }}\">
{% set position = position + 1 %}
</li>
{% endif %}
{# ----- organismes ------------------------------------------------------- #}
{% if app.request.attributes.get('_route') == \"organisme\" %}
<li itemprop=\"itemListElement\" itemscope itemtype=\"https://schema.org/ListItem\">
<span itemprop=\"name\">Organismes</span>
<meta itemprop=\"position\" content=\"{{ position }}\">
{% set position = position + 1 %}
</li>
{% endif %}
{# ----- tous ------------------------------------------------------- #}
{% if app.request.attributes.get('_route') == \"organismes_tous\" %}
<li itemprop=\"itemListElement\" itemscope itemtype=\"https://schema.org/ListItem\">
<a href=\"/organisme\" itemscope itemtype=\"https://schema.org/Thing\" itemprop=\"item\" itemid=\"/organisme\"><span itemprop=\"name\">Organismes</span></a>
<meta itemprop=\"position\" content=\"{{ position }}\">
{% set position = position + 1 %}
</li>
<li class=\"separator\"></li>
{% if categorie %}
<li itemprop=\"itemListElement\" itemscope itemtype=\"https://schema.org/ListItem\">
<span itemprop=\"name\">{{ categorie.libelle }}</span>
<meta itemprop=\"position\" content=\"{{ position }}\">
{% set position = position + 1 %}
</li>
{% endif %}
{% endif %}
{# ----- departement ------------------------------------------------------- #}
{% if app.request.attributes.get('_route') == \"organismes_departement\" %}
<li itemprop=\"itemListElement\" itemscope itemtype=\"https://schema.org/ListItem\">
<a href=\"/organisme\" itemscope itemtype=\"https://schema.org/Thing\" itemprop=\"item\" itemid=\"/organisme\"><span itemprop=\"name\">Organismes</span></a>
<meta itemprop=\"position\" content=\"{{ position }}\">
{% set position = position + 1 %}
</li>
<li class=\"separator\"></li>
{% if departement and 'BE' != departement.id %}
<li itemprop=\"itemListElement\" itemscope itemtype=\"https://schema.org/ListItem\">
<span itemprop=\"name\">{{ departement.libelle }}</span>
<meta itemprop=\"position\" content=\"{{ position }}\">
{% set position = position + 1 %}
</li>
<li class=\"separator\"></li>
{% endif %}
<li itemprop=\"itemListElement\" itemscope itemtype=\"https://schema.org/ListItem\">
<span itemprop=\"name\">{{ categorie.libelle }}</span>
<meta itemprop=\"position\" content=\"{{ position }}\">
{% set position = position + 1 %}
</li>
{% endif %}
{# ----- Region ------------------------------------------------------- #}
{% if app.request.attributes.get('_route') == \"organismes_region\" %}
<li itemprop=\"itemListElement\" itemscope itemtype=\"https://schema.org/ListItem\">
<a href=\"/organisme\" itemscope itemtype=\"https://schema.org/Thing\" itemprop=\"item\" itemid=\"/organisme\"><span itemprop=\"name\">Organismes</span></a>
<meta itemprop=\"position\" content=\"{{ position }}\">
{% set position = position + 1 %}
</li>
<li class=\"separator\"></li>
{% if region and region | lieuLibelle != 'DEFAULT' %}
<li itemprop=\"itemListElement\" itemscope itemtype=\"https://schema.org/ListItem\">
<span itemprop=\"name\">{{ region.libelle }}</span>
<meta itemprop=\"position\" content=\"{{ position }}\">
{% set position = position + 1 %}
</li>
<li class=\"separator\"></li>
{% endif %}
<li itemprop=\"itemListElement\" itemscope itemtype=\"https://schema.org/ListItem\">
<span itemprop=\"name\">{{ categorie.libelle }}</span>
<meta itemprop=\"position\" content=\"{{ position }}\">
{% set position = position + 1 %}
</li>
{% endif %}
</ul>
", "organisme/_includes/breadcrumb.html.twig", "/app/templates/organisme/_includes/breadcrumb.html.twig");
}
}