var/cache/dev/twig/4a/4a8f1f67dc8c505270235f9e65e06a87.php line 72

Open in your IDE?
  1. <?php
  2. use Twig\Environment;
  3. use Twig\Error\LoaderError;
  4. use Twig\Error\RuntimeError;
  5. use Twig\Extension\CoreExtension;
  6. use Twig\Extension\SandboxExtension;
  7. use Twig\Markup;
  8. use Twig\Sandbox\SecurityError;
  9. use Twig\Sandbox\SecurityNotAllowedTagError;
  10. use Twig\Sandbox\SecurityNotAllowedFilterError;
  11. use Twig\Sandbox\SecurityNotAllowedFunctionError;
  12. use Twig\Source;
  13. use Twig\Template;
  14. use Twig\TemplateWrapper;
  15. /* Pages\InscriptionsContentPage\pagetemplate.html.twig */
  16. class __TwigTemplate_19e4c724d2231b42e171c11da21e78e4 extends Template
  17. {
  18.     private Source $source;
  19.     /**
  20.      * @var array<string, Template>
  21.      */
  22.     private array $macros = [];
  23.     public function __construct(Environment $env)
  24.     {
  25.         parent::__construct($env);
  26.         $this->source $this->getSourceContext();
  27.         $this->parent false;
  28.         $this->blocks = [
  29.         ];
  30.     }
  31.     protected function doDisplay(array $context, array $blocks = []): iterable
  32.     {
  33.         $macros $this->macros;
  34.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  35.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""Pages\\InscriptionsContentPage\\pagetemplate.html.twig"));
  36.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  37.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""Pages\\InscriptionsContentPage\\pagetemplate.html.twig"));
  38.         // line 4
  39.         yield "
  40. <div class=\"hi-jumbo\">
  41.     <h1 class=\"jumbo-title\">";
  42.         // line 6
  43.         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"falsefalsefalse6), "html"nulltrue);
  44.         yield "</h1>
  45. </div>
  46. <section class=\"section\">
  47.     <div class=\"container\">
  48.         <div class=\"row\">
  49.             <div class=\"col-sm-8\">
  50.                 <div class=\"row\">
  51.                     <div class=\"col-12\">
  52.                         <div class=\"article-open\">
  53.                             <div class=\"text-content\">
  54.                                 ";
  55.         // line 17
  56.         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"falsefalsefalse17));
  57.         yield "
  58.                                 <h2 class=\"inner-title-2\">Les conditions d'admission</h2>
  59.                             </div>
  60. \t\t\t\t\t\t\t";
  61.         // line 20
  62.         $context["formations"] = $this->extensions['IUTUDC\WebsiteBundle\Twig\FunctionTwigExtension']->getFormations();
  63.         // line 21
  64.         yield "                            ";
  65.         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)) {
  66.             // line 22
  67.             yield "                                <div class=\"accordion inscript\" id=\"accordionExample\">
  68.                                     ";
  69.             // line 23
  70.             $context['_parent'] = $context;
  71.             $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); })()));
  72.             $context['loop'] = [
  73.               'parent' => $context['_parent'],
  74.               'index0' => 0,
  75.               'index'  => 1,
  76.               'first'  => true,
  77.             ];
  78.             if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof \Countable)) {
  79.                 $length count($context['_seq']);
  80.                 $context['loop']['revindex0'] = $length 1;
  81.                 $context['loop']['revindex'] = $length;
  82.                 $context['loop']['length'] = $length;
  83.                 $context['loop']['last'] = === $length;
  84.             }
  85.             foreach ($context['_seq'] as $context["_key"] => $context["formation"]) {
  86.                 // line 24
  87.                 yield "                                        <div class=\"card\">
  88.                                             <div class=\"card-header\" id=\"heading";
  89.                 // line 25
  90.                 yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env$this->source$context["loop"], "index", [], "any"falsefalsefalse25), "html"nulltrue);
  91.                 yield "\" style=\"background-color:";
  92.                 yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['IUTUDC\WebsiteBundle\Twig\FunctionTwigExtension']->getBgColor($context["formation"]), "html"nulltrue);
  93.                 yield " !important;\">
  94.                                             <h5 class=\"mb-0\">
  95.                                                 <button class=\"btn btn-link btn-block\" type=\"button\" data-toggle=\"collapse\" data-target=\"#collapse";
  96.                 // line 27
  97.                 yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env$this->source$context["loop"], "index", [], "any"falsefalsefalse27), "html"nulltrue);
  98.                 yield "\" aria-expanded=\"true\" aria-controls=\"collapse";
  99.                 yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env$this->source$context["loop"], "index", [], "any"falsefalsefalse27), "html"nulltrue);
  100.                 yield "\">
  101.                                                 ";
  102.                 // line 28
  103.                 yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env$this->source$context["formation"], "title", [], "any"falsefalsefalse28), "html"nulltrue);
  104.                 yield "<span class=\"float-right\">+</span>
  105.                                                 </button>
  106.                                             </h5>
  107.                                             </div>
  108.                                         
  109.                                             <div id=\"collapse";
  110.                 // line 33
  111.                 yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env$this->source$context["loop"], "index", [], "any"falsefalsefalse33), "html"nulltrue);
  112.                 yield "\" class=\"collapse\" aria-labelledby=\"heading";
  113.                 yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env$this->source$context["loop"], "index", [], "any"falsefalsefalse33), "html"nulltrue);
  114.                 yield "\" data-parent=\"#accordionExample\">
  115.                                                 <div class=\"card-body\">
  116.                                                     ";
  117.                 // line 35
  118.                 yield $this->extensions['Kunstmaan\NodeBundle\Twig\UrlReplaceTwigExtension']->replaceUrl(CoreExtension::getAttribute($this->env$this->source$context["formation"], "admission", [], "any"falsefalsefalse35));
  119.                 yield "
  120.                                                 </div>
  121.                                             </div>
  122.                                         </div>
  123.                                     ";
  124.                 ++$context['loop']['index0'];
  125.                 ++$context['loop']['index'];
  126.                 $context['loop']['first'] = false;
  127.                 if (isset($context['loop']['revindex0'], $context['loop']['revindex'])) {
  128.                     --$context['loop']['revindex0'];
  129.                     --$context['loop']['revindex'];
  130.                     $context['loop']['last'] = === $context['loop']['revindex0'];
  131.                 }
  132.             }
  133.             $_parent $context['_parent'];
  134.             unset($context['_seq'], $context['_key'], $context['formation'], $context['_parent'], $context['loop']);
  135.             $context array_intersect_key($context$_parent) + $_parent;
  136.             // line 40
  137.             yield "                                </div>
  138.                             ";
  139.         }
  140.         // line 42
  141.         yield "                        </div>
  142.                     </div>
  143.                 </div>
  144.             </div>
  145.             ";
  146.         // line 47
  147.         if ( !Twig\Extension\CoreExtension::testEmpty($this->extensions['Acme\OffresBundle\Twig\OffreTwigExtension']->getLastEnabledOffres(4))) {
  148.             // line 48
  149.             yield "                <div class=\"col-sm-4\">
  150.                     <aside class=\"row\">
  151.                         <div class=\"col-12\">
  152.                             <div class=\"colored-aside calendar\">
  153.                                 <h3>Opportunités</h3>
  154.                                 <hr />
  155.                                 <div class=\"colored-aside-text\">
  156.                                     ";
  157.             // line 55
  158.             $context['_parent'] = $context;
  159.             $context['_seq'] = CoreExtension::ensureTraversable($this->extensions['Acme\OffresBundle\Twig\OffreTwigExtension']->getLastEnabledOffres(3));
  160.             foreach ($context['_seq'] as $context["_key"] => $context["offre"]) {
  161.                 // line 56
  162.                 yield "                                        <div class=\"calendar-item\">
  163.                                             <h6 class=\"calendar-text\"><a href=\"";
  164.                 // line 57
  165.                 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"falsefalsefalse57)]), "html"nulltrue);
  166.                 yield "\">";
  167.                 yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env$this->source$context["offre"], "titreoffre", [], "any"falsefalsefalse57), "html"nulltrue);
  168.                 yield "</a></h6>
  169.                                             <div class=\"calendar-date\">
  170.                                                 ";
  171.                 // line 59
  172.                 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"falsefalsefalse59), "l d/m/Y à H:i"), "html"nulltrue);
  173.                 yield "
  174.                                             </div>
  175.                                         </div>
  176.                                     ";
  177.             }
  178.             $_parent $context['_parent'];
  179.             unset($context['_seq'], $context['_key'], $context['offre'], $context['_parent']);
  180.             $context array_intersect_key($context$_parent) + $_parent;
  181.             // line 63
  182.             yield "                                </div>
  183.                             </div>
  184.                         </div>
  185.                     </aside>
  186.                 </div>
  187.             ";
  188.         }
  189.         // line 69
  190.         yield "        </div>
  191.     </div>
  192. </section>";
  193.         
  194.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  195.         
  196.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  197.         yield from [];
  198.     }
  199.     /**
  200.      * @codeCoverageIgnore
  201.      */
  202.     public function getTemplateName(): string
  203.     {
  204.         return "Pages\\InscriptionsContentPage\\pagetemplate.html.twig";
  205.     }
  206.     /**
  207.      * @codeCoverageIgnore
  208.      */
  209.     public function isTraitable(): bool
  210.     {
  211.         return false;
  212.     }
  213.     /**
  214.      * @codeCoverageIgnore
  215.      */
  216.     public function getDebugInfo(): array
  217.     {
  218.         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,);
  219.     }
  220.     public function getSourceContext(): Source
  221.     {
  222.         return new Source("{# {% set nodeInternalNameParent = nodemenu.current.node.parent.internalName %} #}
  223. {# {% set titlePageNodeParent = nodemenu.getNodeByInternalName(nodeInternalNameParent).title %} #}
  224. {# {{ titlePageNodeParent == \"Accueil\" ? page.title : titlePageNodeParent }} #}
  225. <div class=\"hi-jumbo\">
  226.     <h1 class=\"jumbo-title\">{{ page.pageTitle }}</h1>
  227. </div>
  228. <section class=\"section\">
  229.     <div class=\"container\">
  230.         <div class=\"row\">
  231.             <div class=\"col-sm-8\">
  232.                 <div class=\"row\">
  233.                     <div class=\"col-12\">
  234.                         <div class=\"article-open\">
  235.                             <div class=\"text-content\">
  236.                                 {{ page.intro|replace_url|raw }}
  237.                                 <h2 class=\"inner-title-2\">Les conditions d'admission</h2>
  238.                             </div>
  239. \t\t\t\t\t\t\t{% set formations = get_formations() %}
  240.                             {% if formations|length>0 %}
  241.                                 <div class=\"accordion inscript\" id=\"accordionExample\">
  242.                                     {% for formation in formations %}
  243.                                         <div class=\"card\">
  244.                                             <div class=\"card-header\" id=\"heading{{ loop.index }}\" style=\"background-color:{{ get_bg_color(formation) }} !important;\">
  245.                                             <h5 class=\"mb-0\">
  246.                                                 <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 }}\">
  247.                                                 {{ formation.title }}<span class=\"float-right\">+</span>
  248.                                                 </button>
  249.                                             </h5>
  250.                                             </div>
  251.                                         
  252.                                             <div id=\"collapse{{ loop.index }}\" class=\"collapse\" aria-labelledby=\"heading{{ loop.index }}\" data-parent=\"#accordionExample\">
  253.                                                 <div class=\"card-body\">
  254.                                                     {{ formation.admission|replace_url|raw }}
  255.                                                 </div>
  256.                                             </div>
  257.                                         </div>
  258.                                     {% endfor %}
  259.                                 </div>
  260.                             {% endif %}
  261.                         </div>
  262.                     </div>
  263.                 </div>
  264.             </div>
  265.             {% if get_last_enabled_offres(4) is not empty %}
  266.                 <div class=\"col-sm-4\">
  267.                     <aside class=\"row\">
  268.                         <div class=\"col-12\">
  269.                             <div class=\"colored-aside calendar\">
  270.                                 <h3>Opportunités</h3>
  271.                                 <hr />
  272.                                 <div class=\"colored-aside-text\">
  273.                                     {% for offre in get_last_enabled_offres(3) %}
  274.                                         <div class=\"calendar-item\">
  275.                                             <h6 class=\"calendar-text\"><a href=\"{{ path('job_show', { 'id': offre.id }) }}\">{{ offre.titreoffre }}</a></h6>
  276.                                             <div class=\"calendar-date\">
  277.                                                 {{ format_date(offre.datecreation, 'l d/m/Y à H:i') }}
  278.                                             </div>
  279.                                         </div>
  280.                                     {% endfor %}
  281.                                 </div>
  282.                             </div>
  283.                         </div>
  284.                     </aside>
  285.                 </div>
  286.             {% endif %}
  287.         </div>
  288.     </div>
  289. </section>""Pages\\InscriptionsContentPage\\pagetemplate.html.twig""/home/u363484990/domains/iut-udc.online/public_html/templates/Pages/InscriptionsContentPage/pagetemplate.html.twig");
  290.     }
  291. }