<?php
use Twig\Environment;
use Twig\Error\LoaderError;
use Twig\Error\RuntimeError;
use Twig\Extension\CoreExtension;
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;
use Twig\TemplateWrapper;
/* Layout/_formations.html.twig */
class __TwigTemplate_77bcd4dfc9744f73c2aa95170b917bd6 extends Template
{
private Source $source;
/**
* @var array<string, Template>
*/
private array $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 = []): iterable
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "Layout/_formations.html.twig"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "Layout/_formations.html.twig"));
// line 1
if ((Twig\Extension\CoreExtension::length($this->env->getCharset(), $this->extensions['IUTUDC\WebsiteBundle\Twig\FunctionTwigExtension']->getFormations()) > 0)) {
// line 2
yield " <section class=\"formations\">
<div class=\"container\">
<div class=\"row\">
<div class=\"col\">
<h1 class=\"section-title\">Nos formations</h1>
</div>
</div>
<div class=\"row no-gutters\">
";
// line 10
$context['_parent'] = $context;
$context['_seq'] = CoreExtension::ensureTraversable($this->extensions['IUTUDC\WebsiteBundle\Twig\FunctionTwigExtension']->getFormations());
foreach ($context['_seq'] as $context["_key"] => $context["formation"]) {
// line 11
yield " ";
$context["formationnode"] = $this->extensions['Kunstmaan\NodeBundle\Twig\NodeTwigExtension']->getNodeTranslationFor($context["formation"]);
// line 12
yield " <div class=\"col-sm-4\">
<div class=\"block-formation\">
";
// line 15
if ((CoreExtension::getAttribute($this->env, $this->source, $context["formation"], "uri", [], "any", false, false, false, 15) == "genie-informatique")) {
// line 16
yield " <i class=\"icon-screen-desktop\"></i>
";
} elseif ((CoreExtension::getAttribute($this->env, $this->source, // line 17
$context["formation"], "uri", [], "any", false, false, false, 17) == "habitat-et-son-environnement")) {
// line 18
yield " <i class=\"icon-home\"></i>
";
} elseif ((CoreExtension::getAttribute($this->env, $this->source, // line 19
$context["formation"], "uri", [], "any", false, false, false, 19) == "tourisme-hotellerie")) {
// line 20
yield " <i class=\"icon-paper-plane\"></i>
";
} elseif ((CoreExtension::getAttribute($this->env, $this->source, // line 21
$context["formation"], "uri", [], "any", false, false, false, 21) == "gestion-administration")) {
// line 22
yield " <i class=\"icon-briefcase\"></i>
";
} elseif ((CoreExtension::getAttribute($this->env, $this->source, // line 23
$context["formation"], "uri", [], "any", false, false, false, 23) == "statistiques")) {
// line 24
yield " <i class=\"icon-graph\"></i>
";
} elseif ((CoreExtension::getAttribute($this->env, $this->source, // line 25
$context["formation"], "uri", [], "any", false, false, false, 25) == "commerce")) {
// line 26
yield " <i class=\"icon-basket\"></i>
";
} else {
// line 28
yield " <i class=\"icon-notebook\"></i>
";
}
// line 30
yield "
<h3 class=\"formation-name\">";
// line 31
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["formation"], "title", [], "any", false, false, false, 31), "html", null, true);
yield "</h3>
<a class=\"btn btn-outline-light\" href=\"";
// line 32
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, (isset($context["formationnode"]) || array_key_exists("formationnode", $context) ? $context["formationnode"] : (function () { throw new RuntimeError('Variable "formationnode" does not exist.', 32, $this->source); })()), "url", [], "any", false, false, false, 32), "html", null, true);
yield "\">En savoir plus</a>
</div>
</div>
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_key'], $context['formation'], $context['_parent']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 36
yield " </div>
</div>
</section>
";
}
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
yield from [];
}
/**
* @codeCoverageIgnore
*/
public function getTemplateName(): string
{
return "Layout/_formations.html.twig";
}
/**
* @codeCoverageIgnore
*/
public function isTraitable(): bool
{
return false;
}
/**
* @codeCoverageIgnore
*/
public function getDebugInfo(): array
{
return array ( 124 => 36, 114 => 32, 110 => 31, 107 => 30, 103 => 28, 99 => 26, 97 => 25, 94 => 24, 92 => 23, 89 => 22, 87 => 21, 84 => 20, 82 => 19, 79 => 18, 77 => 17, 74 => 16, 72 => 15, 67 => 12, 64 => 11, 60 => 10, 50 => 2, 48 => 1,);
}
public function getSourceContext(): Source
{
return new Source("{% if get_formations()|length > 0 %}
<section class=\"formations\">
<div class=\"container\">
<div class=\"row\">
<div class=\"col\">
<h1 class=\"section-title\">Nos formations</h1>
</div>
</div>
<div class=\"row no-gutters\">
{% for formation in get_formations() %}
{% set formationnode = get_node_translation_for(formation) %}
<div class=\"col-sm-4\">
<div class=\"block-formation\">
{% if formation.uri == 'genie-informatique' %}
<i class=\"icon-screen-desktop\"></i>
{% elseif formation.uri == 'habitat-et-son-environnement' %}
<i class=\"icon-home\"></i>
{% elseif formation.uri == 'tourisme-hotellerie' %}
<i class=\"icon-paper-plane\"></i>
{% elseif formation.uri == 'gestion-administration' %}
<i class=\"icon-briefcase\"></i>
{% elseif formation.uri == 'statistiques' %}
<i class=\"icon-graph\"></i>
{% elseif formation.uri == 'commerce' %}
<i class=\"icon-basket\"></i>
{% else %}
<i class=\"icon-notebook\"></i>
{% endif %}
<h3 class=\"formation-name\">{{ formation.title }}</h3>
<a class=\"btn btn-outline-light\" href=\"{{ formationnode.url }}\">En savoir plus</a>
</div>
</div>
{% endfor %}
</div>
</div>
</section>
{% endif %}", "Layout/_formations.html.twig", "/home/u363484990/domains/iut-udc.online/public_html/templates/Layout/_formations.html.twig");
}
}