<?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;
/* Pages\InscriptionsContentPage\pagetemplate.html.twig */
class __TwigTemplate_19e4c724d2231b42e171c11da21e78e4 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", "Pages\\InscriptionsContentPage\\pagetemplate.html.twig"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "Pages\\InscriptionsContentPage\\pagetemplate.html.twig"));
// line 4
yield "
<div class=\"hi-jumbo\">
<h1 class=\"jumbo-title\">";
// line 6
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, (isset($context["page"]) || array_key_exists("page", $context) ? $context["page"] : (function () { throw new RuntimeError('Variable "page" does not exist.', 6, $this->source); })()), "pageTitle", [], "any", false, false, false, 6), "html", null, true);
yield "</h1>
</div>
<section class=\"section\">
<div class=\"container\">
<div class=\"row\">
<div class=\"col-sm-8\">
<div class=\"row\">
<div class=\"col-12\">
<div class=\"article-open\">
<div class=\"text-content\">
";
// line 17
yield $this->extensions['Kunstmaan\NodeBundle\Twig\UrlReplaceTwigExtension']->replaceUrl(CoreExtension::getAttribute($this->env, $this->source, (isset($context["page"]) || array_key_exists("page", $context) ? $context["page"] : (function () { throw new RuntimeError('Variable "page" does not exist.', 17, $this->source); })()), "intro", [], "any", false, false, false, 17));
yield "
<h2 class=\"inner-title-2\">Les conditions d'admission</h2>
</div>
\t\t\t\t\t\t\t";
// line 20
$context["formations"] = $this->extensions['IUTUDC\WebsiteBundle\Twig\FunctionTwigExtension']->getFormations();
// line 21
yield " ";
if ((Twig\Extension\CoreExtension::length($this->env->getCharset(), (isset($context["formations"]) || array_key_exists("formations", $context) ? $context["formations"] : (function () { throw new RuntimeError('Variable "formations" does not exist.', 21, $this->source); })())) > 0)) {
// line 22
yield " <div class=\"accordion inscript\" id=\"accordionExample\">
";
// line 23
$context['_parent'] = $context;
$context['_seq'] = CoreExtension::ensureTraversable((isset($context["formations"]) || array_key_exists("formations", $context) ? $context["formations"] : (function () { throw new RuntimeError('Variable "formations" does not exist.', 23, $this->source); })()));
$context['loop'] = [
'parent' => $context['_parent'],
'index0' => 0,
'index' => 1,
'first' => true,
];
if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof \Countable)) {
$length = count($context['_seq']);
$context['loop']['revindex0'] = $length - 1;
$context['loop']['revindex'] = $length;
$context['loop']['length'] = $length;
$context['loop']['last'] = 1 === $length;
}
foreach ($context['_seq'] as $context["_key"] => $context["formation"]) {
// line 24
yield " <div class=\"card\">
<div class=\"card-header\" id=\"heading";
// line 25
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["loop"], "index", [], "any", false, false, false, 25), "html", null, true);
yield "\" style=\"background-color:";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['IUTUDC\WebsiteBundle\Twig\FunctionTwigExtension']->getBgColor($context["formation"]), "html", null, true);
yield " !important;\">
<h5 class=\"mb-0\">
<button class=\"btn btn-link btn-block\" type=\"button\" data-toggle=\"collapse\" data-target=\"#collapse";
// line 27
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["loop"], "index", [], "any", false, false, false, 27), "html", null, true);
yield "\" aria-expanded=\"true\" aria-controls=\"collapse";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["loop"], "index", [], "any", false, false, false, 27), "html", null, true);
yield "\">
";
// line 28
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["formation"], "title", [], "any", false, false, false, 28), "html", null, true);
yield "<span class=\"float-right\">+</span>
</button>
</h5>
</div>
<div id=\"collapse";
// line 33
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["loop"], "index", [], "any", false, false, false, 33), "html", null, true);
yield "\" class=\"collapse\" aria-labelledby=\"heading";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["loop"], "index", [], "any", false, false, false, 33), "html", null, true);
yield "\" data-parent=\"#accordionExample\">
<div class=\"card-body\">
";
// line 35
yield $this->extensions['Kunstmaan\NodeBundle\Twig\UrlReplaceTwigExtension']->replaceUrl(CoreExtension::getAttribute($this->env, $this->source, $context["formation"], "admission", [], "any", false, false, false, 35));
yield "
</div>
</div>
</div>
";
++$context['loop']['index0'];
++$context['loop']['index'];
$context['loop']['first'] = false;
if (isset($context['loop']['revindex0'], $context['loop']['revindex'])) {
--$context['loop']['revindex0'];
--$context['loop']['revindex'];
$context['loop']['last'] = 0 === $context['loop']['revindex0'];
}
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_key'], $context['formation'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 40
yield " </div>
";
}
// line 42
yield " </div>
</div>
</div>
</div>
";
// line 47
if ( !Twig\Extension\CoreExtension::testEmpty($this->extensions['Acme\OffresBundle\Twig\OffreTwigExtension']->getLastEnabledOffres(4))) {
// line 48
yield " <div class=\"col-sm-4\">
<aside class=\"row\">
<div class=\"col-12\">
<div class=\"colored-aside calendar\">
<h3>Opportunités</h3>
<hr />
<div class=\"colored-aside-text\">
";
// line 55
$context['_parent'] = $context;
$context['_seq'] = CoreExtension::ensureTraversable($this->extensions['Acme\OffresBundle\Twig\OffreTwigExtension']->getLastEnabledOffres(3));
foreach ($context['_seq'] as $context["_key"] => $context["offre"]) {
// line 56
yield " <div class=\"calendar-item\">
<h6 class=\"calendar-text\"><a href=\"";
// line 57
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("job_show", ["id" => CoreExtension::getAttribute($this->env, $this->source, $context["offre"], "id", [], "any", false, false, false, 57)]), "html", null, true);
yield "\">";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["offre"], "titreoffre", [], "any", false, false, false, 57), "html", null, true);
yield "</a></h6>
<div class=\"calendar-date\">
";
// line 59
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['IUTUDC\WebsiteBundle\Twig\DateTwigExtension']->returnFormatDate(CoreExtension::getAttribute($this->env, $this->source, $context["offre"], "datecreation", [], "any", false, false, false, 59), "l d/m/Y à H:i"), "html", null, true);
yield "
</div>
</div>
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_key'], $context['offre'], $context['_parent']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 63
yield " </div>
</div>
</div>
</aside>
</div>
";
}
// line 69
yield " </div>
</div>
</section>";
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
yield from [];
}
/**
* @codeCoverageIgnore
*/
public function getTemplateName(): string
{
return "Pages\\InscriptionsContentPage\\pagetemplate.html.twig";
}
/**
* @codeCoverageIgnore
*/
public function isTraitable(): bool
{
return false;
}
/**
* @codeCoverageIgnore
*/
public function getDebugInfo(): array
{
return array ( 201 => 69, 193 => 63, 183 => 59, 176 => 57, 173 => 56, 169 => 55, 160 => 48, 158 => 47, 151 => 42, 147 => 40, 128 => 35, 121 => 33, 113 => 28, 107 => 27, 100 => 25, 97 => 24, 80 => 23, 77 => 22, 74 => 21, 72 => 20, 66 => 17, 52 => 6, 48 => 4,);
}
public function getSourceContext(): Source
{
return new Source("{# {% set nodeInternalNameParent = nodemenu.current.node.parent.internalName %} #}
{# {% set titlePageNodeParent = nodemenu.getNodeByInternalName(nodeInternalNameParent).title %} #}
{# {{ titlePageNodeParent == \"Accueil\" ? page.title : titlePageNodeParent }} #}
<div class=\"hi-jumbo\">
<h1 class=\"jumbo-title\">{{ page.pageTitle }}</h1>
</div>
<section class=\"section\">
<div class=\"container\">
<div class=\"row\">
<div class=\"col-sm-8\">
<div class=\"row\">
<div class=\"col-12\">
<div class=\"article-open\">
<div class=\"text-content\">
{{ page.intro|replace_url|raw }}
<h2 class=\"inner-title-2\">Les conditions d'admission</h2>
</div>
\t\t\t\t\t\t\t{% set formations = get_formations() %}
{% if formations|length>0 %}
<div class=\"accordion inscript\" id=\"accordionExample\">
{% for formation in formations %}
<div class=\"card\">
<div class=\"card-header\" id=\"heading{{ loop.index }}\" style=\"background-color:{{ get_bg_color(formation) }} !important;\">
<h5 class=\"mb-0\">
<button class=\"btn btn-link btn-block\" type=\"button\" data-toggle=\"collapse\" data-target=\"#collapse{{ loop.index }}\" aria-expanded=\"true\" aria-controls=\"collapse{{ loop.index }}\">
{{ formation.title }}<span class=\"float-right\">+</span>
</button>
</h5>
</div>
<div id=\"collapse{{ loop.index }}\" class=\"collapse\" aria-labelledby=\"heading{{ loop.index }}\" data-parent=\"#accordionExample\">
<div class=\"card-body\">
{{ formation.admission|replace_url|raw }}
</div>
</div>
</div>
{% endfor %}
</div>
{% endif %}
</div>
</div>
</div>
</div>
{% if get_last_enabled_offres(4) is not empty %}
<div class=\"col-sm-4\">
<aside class=\"row\">
<div class=\"col-12\">
<div class=\"colored-aside calendar\">
<h3>Opportunités</h3>
<hr />
<div class=\"colored-aside-text\">
{% for offre in get_last_enabled_offres(3) %}
<div class=\"calendar-item\">
<h6 class=\"calendar-text\"><a href=\"{{ path('job_show', { 'id': offre.id }) }}\">{{ offre.titreoffre }}</a></h6>
<div class=\"calendar-date\">
{{ format_date(offre.datecreation, 'l d/m/Y à H:i') }}
</div>
</div>
{% endfor %}
</div>
</div>
</div>
</aside>
</div>
{% endif %}
</div>
</div>
</section>", "Pages\\InscriptionsContentPage\\pagetemplate.html.twig", "/home/u363484990/domains/iut-udc.online/public_html/templates/Pages/InscriptionsContentPage/pagetemplate.html.twig");
}
}