var/cache/dev/twig/93/93891603d2e025e303f45613c32363c6.php line 38

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. /* Layout/_formations.html.twig */
  16. class __TwigTemplate_77bcd4dfc9744f73c2aa95170b917bd6 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""Layout/_formations.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""Layout/_formations.html.twig"));
  38.         // line 1
  39.         if ((Twig\Extension\CoreExtension::length($this->env->getCharset(), $this->extensions['IUTUDC\WebsiteBundle\Twig\FunctionTwigExtension']->getFormations()) > 0)) {
  40.             // line 2
  41.             yield "    <section class=\"formations\">
  42.         <div class=\"container\">
  43.             <div class=\"row\">
  44.                 <div class=\"col\">
  45.                     <h1 class=\"section-title\">Nos formations</h1>
  46.                 </div>
  47.             </div>
  48.             <div class=\"row no-gutters\">
  49.                 ";
  50.             // line 10
  51.             $context['_parent'] = $context;
  52.             $context['_seq'] = CoreExtension::ensureTraversable($this->extensions['IUTUDC\WebsiteBundle\Twig\FunctionTwigExtension']->getFormations());
  53.             foreach ($context['_seq'] as $context["_key"] => $context["formation"]) {
  54.                 // line 11
  55.                 yield "                    ";
  56.                 $context["formationnode"] = $this->extensions['Kunstmaan\NodeBundle\Twig\NodeTwigExtension']->getNodeTranslationFor($context["formation"]);
  57.                 // line 12
  58.                 yield "                    <div class=\"col-sm-4\">
  59.                         <div class=\"block-formation\">
  60.                             ";
  61.                 // line 15
  62.                 if ((CoreExtension::getAttribute($this->env$this->source$context["formation"], "uri", [], "any"falsefalsefalse15) == "genie-informatique")) {
  63.                     // line 16
  64.                     yield "                                <i class=\"icon-screen-desktop\"></i>
  65.                             ";
  66.                 } elseif ((CoreExtension::getAttribute($this->env$this->source,                 // line 17
  67. $context["formation"], "uri", [], "any"falsefalsefalse17) == "habitat-et-son-environnement")) {
  68.                     // line 18
  69.                     yield "                                <i class=\"icon-home\"></i>
  70.                             ";
  71.                 } elseif ((CoreExtension::getAttribute($this->env$this->source,                 // line 19
  72. $context["formation"], "uri", [], "any"falsefalsefalse19) == "tourisme-hotellerie")) {
  73.                     // line 20
  74.                     yield "                                <i class=\"icon-paper-plane\"></i>
  75.                             ";
  76.                 } elseif ((CoreExtension::getAttribute($this->env$this->source,                 // line 21
  77. $context["formation"], "uri", [], "any"falsefalsefalse21) == "gestion-administration")) {
  78.                     // line 22
  79.                     yield "                                <i class=\"icon-briefcase\"></i>
  80.                             ";
  81.                 } elseif ((CoreExtension::getAttribute($this->env$this->source,                 // line 23
  82. $context["formation"], "uri", [], "any"falsefalsefalse23) == "statistiques")) {
  83.                     // line 24
  84.                     yield "                                <i class=\"icon-graph\"></i>
  85.                             ";
  86.                 } elseif ((CoreExtension::getAttribute($this->env$this->source,                 // line 25
  87. $context["formation"], "uri", [], "any"falsefalsefalse25) == "commerce")) {
  88.                     // line 26
  89.                     yield "                                <i class=\"icon-basket\"></i>
  90.                             ";
  91.                 } else {
  92.                     // line 28
  93.                     yield "                                <i class=\"icon-notebook\"></i>
  94.                             ";
  95.                 }
  96.                 // line 30
  97.                 yield "
  98.                             <h3 class=\"formation-name\">";
  99.                 // line 31
  100.                 yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env$this->source$context["formation"], "title", [], "any"falsefalsefalse31), "html"nulltrue);
  101.                 yield "</h3>
  102.                             <a class=\"btn btn-outline-light\" href=\"";
  103.                 // line 32
  104.                 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"falsefalsefalse32), "html"nulltrue);
  105.                 yield "\">En savoir plus</a>
  106.                         </div>
  107.                     </div>
  108.                 ";
  109.             }
  110.             $_parent $context['_parent'];
  111.             unset($context['_seq'], $context['_key'], $context['formation'], $context['_parent']);
  112.             $context array_intersect_key($context$_parent) + $_parent;
  113.             // line 36
  114.             yield "            </div>
  115.         </div>
  116.     </section>
  117. ";
  118.         }
  119.         
  120.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  121.         
  122.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  123.         yield from [];
  124.     }
  125.     /**
  126.      * @codeCoverageIgnore
  127.      */
  128.     public function getTemplateName(): string
  129.     {
  130.         return "Layout/_formations.html.twig";
  131.     }
  132.     /**
  133.      * @codeCoverageIgnore
  134.      */
  135.     public function isTraitable(): bool
  136.     {
  137.         return false;
  138.     }
  139.     /**
  140.      * @codeCoverageIgnore
  141.      */
  142.     public function getDebugInfo(): array
  143.     {
  144.         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,);
  145.     }
  146.     public function getSourceContext(): Source
  147.     {
  148.         return new Source("{% if get_formations()|length > 0 %}
  149.     <section class=\"formations\">
  150.         <div class=\"container\">
  151.             <div class=\"row\">
  152.                 <div class=\"col\">
  153.                     <h1 class=\"section-title\">Nos formations</h1>
  154.                 </div>
  155.             </div>
  156.             <div class=\"row no-gutters\">
  157.                 {% for formation in get_formations() %}
  158.                     {% set formationnode = get_node_translation_for(formation) %}
  159.                     <div class=\"col-sm-4\">
  160.                         <div class=\"block-formation\">
  161.                             {% if formation.uri == 'genie-informatique' %}
  162.                                 <i class=\"icon-screen-desktop\"></i>
  163.                             {% elseif formation.uri == 'habitat-et-son-environnement' %}
  164.                                 <i class=\"icon-home\"></i>
  165.                             {% elseif formation.uri == 'tourisme-hotellerie' %}
  166.                                 <i class=\"icon-paper-plane\"></i>
  167.                             {% elseif formation.uri == 'gestion-administration' %}
  168.                                 <i class=\"icon-briefcase\"></i>
  169.                             {% elseif formation.uri == 'statistiques' %}
  170.                                 <i class=\"icon-graph\"></i>
  171.                             {% elseif formation.uri == 'commerce' %}
  172.                                 <i class=\"icon-basket\"></i>
  173.                             {% else %}
  174.                                 <i class=\"icon-notebook\"></i>
  175.                             {% endif %}
  176.                             <h3 class=\"formation-name\">{{ formation.title }}</h3>
  177.                             <a class=\"btn btn-outline-light\" href=\"{{ formationnode.url }}\">En savoir plus</a>
  178.                         </div>
  179.                     </div>
  180.                 {% endfor %}
  181.             </div>
  182.         </div>
  183.     </section>
  184. {% endif %}""Layout/_formations.html.twig""/home/u363484990/domains/iut-udc.online/public_html/templates/Layout/_formations.html.twig");
  185.     }
  186. }