var/cache/dev/twig/5d/5d932b88afdfd1b499c4c93c1fcf982e7a8ff22c65a189f26bc7cef243f56c34.php line 76

Open in your IDE?
  1. <?php
  2. use Twig\Environment;
  3. use Twig\Error\LoaderError;
  4. use Twig\Error\RuntimeError;
  5. use Twig\Extension\SandboxExtension;
  6. use Twig\Markup;
  7. use Twig\Sandbox\SecurityError;
  8. use Twig\Sandbox\SecurityNotAllowedTagError;
  9. use Twig\Sandbox\SecurityNotAllowedFilterError;
  10. use Twig\Sandbox\SecurityNotAllowedFunctionError;
  11. use Twig\Source;
  12. use Twig\Template;
  13. /* annuaire/_includes/diplome-list.html.twig */
  14. class __TwigTemplate_7e03ea881f84e96f3ed06c85e79f5cd8d821d2f9428c9e4ad209c3cce55047ce extends Template
  15. {
  16.     private $source;
  17.     private $macros = [];
  18.     public function __construct(Environment $env)
  19.     {
  20.         parent::__construct($env);
  21.         $this->source $this->getSourceContext();
  22.         $this->parent false;
  23.         $this->blocks = [
  24.         ];
  25.     }
  26.     protected function doDisplay(array $context, array $blocks = [])
  27.     {
  28.         $macros $this->macros;
  29.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  30.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""annuaire/_includes/diplome-list.html.twig"));
  31.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  32.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""annuaire/_includes/diplome-list.html.twig"));
  33.         // line 1
  34.         echo "    <div class=\"block-diplome-plus\">
  35.         <h2>Diplômes à la une</h2>
  36. \t\t<div class=\"position-relative\">
  37.             ";
  38.         // line 4
  39.         if ((=== twig_compare(twig_length_filter($this->env, (isset($context["itemsInsertions"]) || array_key_exists("itemsInsertions"$context) ? $context["itemsInsertions"] : (function () { throw new RuntimeError('Variable "itemsInsertions" does not exist.'4$this->source); })())), 3))) {
  40.             // line 5
  41.             echo "                <span class=\"next-slide-diplome next-rouge\"></span>
  42.                 <span class=\"prev-slide-diplome prev-rouge\"></span>
  43.             ";
  44.         }
  45.         // line 8
  46.         echo "\t\t\t<div class=\"diplome-une d-none d-md-block d-lg-block\">
  47. \t\t\t\t";
  48.         // line 9
  49.         $context['_parent'] = $context;
  50.         $context['_seq'] = twig_ensure_traversable((isset($context["itemsInsertions"]) || array_key_exists("itemsInsertions"$context) ? $context["itemsInsertions"] : (function () { throw new RuntimeError('Variable "itemsInsertions" does not exist.'9$this->source); })()));
  51.         $context['loop'] = [
  52.           'parent' => $context['_parent'],
  53.           'index0' => 0,
  54.           'index'  => 1,
  55.           'first'  => true,
  56.         ];
  57.         if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof \Countable)) {
  58.             $length count($context['_seq']);
  59.             $context['loop']['revindex0'] = $length 1;
  60.             $context['loop']['revindex'] = $length;
  61.             $context['loop']['length'] = $length;
  62.             $context['loop']['last'] = === $length;
  63.         }
  64.         foreach ($context['_seq'] as $context["_key"] => $context["ii"]) {
  65.             // line 10
  66.             echo "                    ";
  67.             $context["imgAlt"] = twig_trim_filter(twig_join_filter(twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["ii"], "etablissement", [], "any"falsefalsefalse10), "denomination", [], "any"falsefalsefalse10), " - "), " -");
  68.             // line 11
  69.             echo "                    ";
  70.             $context["urlFiche"] = twig_get_attribute($this->env$this->source, (isset($context["pathBuilder"]) || array_key_exists("pathBuilder"$context) ? $context["pathBuilder"] : (function () { throw new RuntimeError('Variable "pathBuilder" does not exist.'11$this->source); })()), "buildFiche", [=> twig_get_attribute($this->env$this->source$context["ii"], "etablissement", [], "any"falsefalsefalse11)], "method"falsefalsefalse11);
  71.             // line 12
  72.             echo "\t\t\t\t\t";
  73.             if ((((=== twig_compare(twig_get_attribute($this->env$this->source$context["loop"], "index", [], "any"falsefalsefalse12), 1)) || (=== twig_compare(twig_get_attribute($this->env$this->source$context["loop"], "index", [], "any"falsefalsefalse12), 4))) || (=== twig_compare(twig_get_attribute($this->env$this->source$context["loop"], "index", [], "any"falsefalsefalse12), 7)))) {
  74.                 // line 13
  75.                 echo "\t\t\t\t\t\t<div class=\"slide-diplome w-100\">
  76. \t\t\t\t\t";
  77.             }
  78.             // line 15
  79.             echo "                    ";
  80.             if (twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["ii"], "etablissement", [], "any"falsefalsefalse15), "isClient", [], "any"falsefalsefalse15)) {
  81.                 // line 16
  82.                 echo "                        <article class=\"diplome";
  83.                 if (twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["ii"], "etablissement", [], "any"falsefalsefalse16), "type", [], "any"falsefalsefalse16)) {
  84.                     echo " ";
  85.                     echo twig_escape_filter($this->env$this->extensions['App\Twig\SlugifyTwigExtension']->slugify($this->extensions['App\Twig\TypeOngletLibelleExtension']->typeNiveau(twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["ii"], "etablissement", [], "any"falsefalsefalse16), "type", [], "any"falsefalsefalse16))), "html"nulltrue);
  86.                     echo " ";
  87.                 }
  88.                 echo "\">
  89.                             <span class=\"diplome-plus\"></span>
  90.                             ";
  91.                 // line 18
  92.                 if ((((=== twig_compare(twig_get_attribute($this->env$this->source$context["ii"], "pere", [], "any"falsefalsefalse18), "LYC-FORMA2021")) || (=== twig_compare(twig_get_attribute($this->env$this->source$context["ii"], "pere", [], "any"falsefalsefalse18), "LYC-FORMA2021-SPEC"))) || (=== twig_compare(twig_get_attribute($this->env$this->source$context["ii"], "pere", [], "any"falsefalsefalse18), "LYC-FORMA2021-GFACU")))) {
  93.                     // line 19
  94.                     echo "                                <p class=\"libelle\">Bac Général</p>
  95.                             ";
  96.                 } else {
  97.                     // line 21
  98.                     echo "                                <p class=\"libelle\">";
  99.                     echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$this->extensions['Twig\Extra\String\StringExtension']->createUnicodeString(twig_striptags($this->extensions['App\Twig\ItemsInsertionExtension']->itemLibelle($context["ii"]))), "truncate", [=> 50=> "…"=> true], "method"falsefalsefalse21), "html"nulltrue);
  100.                     echo " ";
  101.                     if ( !twig_test_empty(twig_get_attribute($this->env$this->source$context["ii"], "options", [], "any"falsefalsefalse21))) {
  102.                         echo " - ";
  103.                         echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$this->extensions['Twig\Extra\String\StringExtension']->createUnicodeString(twig_get_attribute($this->env$this->source$context["ii"], "options", [], "any"falsefalsefalse21)), "truncate", [=> 20=> "…"=> true], "method"falsefalsefalse21), "html"nulltrue);
  104.                     }
  105.                     echo "</p>
  106.                             ";
  107.                 }
  108.                 // line 23
  109.                 echo "                            <div class=\"infos p-0\">
  110.                                 <figure class=\"resize\" data-href=\"";
  111.                 // line 24
  112.                 if (twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["ii"], "etablissement", [], "any"falsefalsefalse24), "videoPlus", [], "any"falsefalsefalse24)) {
  113.                     echo " ";
  114.                     echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["pathBuilder"]) || array_key_exists("pathBuilder"$context) ? $context["pathBuilder"] : (function () { throw new RuntimeError('Variable "pathBuilder" does not exist.'24$this->source); })()), "buildFiche", [=> twig_get_attribute($this->env$this->source$context["ii"], "etablissement", [], "any"falsefalsefalse24), => ["video-id" => "0"]], "method"falsefalsefalse24), "html"nulltrue);
  115.                     echo " ";
  116.                 } else {
  117.                     echo " ";
  118.                     echo twig_escape_filter($this->env, (isset($context["urlFiche"]) || array_key_exists("urlFiche"$context) ? $context["urlFiche"] : (function () { throw new RuntimeError('Variable "urlFiche" does not exist.'24$this->source); })()), "html"nulltrue);
  119.                     echo " ";
  120.                 }
  121.                 echo "\">
  122.                                     ";
  123.                 // line 25
  124.                 if ((isset($context["isForeignCityNear"]) || array_key_exists("isForeignCityNear"$context) ? $context["isForeignCityNear"] : (function () { throw new RuntimeError('Variable "isForeignCityNear" does not exist.'25$this->source); })())) {
  125.                     // line 26
  126.                     echo "                                        ";
  127.                     $context["distance"] = _twig_default_filter($this->extensions['App\Twig\GeoExtension']->lieuDistance((isset($context["lieu"]) || array_key_exists("lieu"$context) ? $context["lieu"] : (function () { throw new RuntimeError('Variable "lieu" does not exist.'26$this->source); })()), twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["ii"], "etablissement", [], "any"falsefalsefalse26), "latitude", [], "any"falsefalsefalse26), twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["ii"], "etablissement", [], "any"falsefalsefalse26), "longitude", [], "any"falsefalsefalse26)), "proximité");
  128.                     // line 27
  129.                     echo "                                        <span class=\"distance\">à ";
  130.                     echo twig_escape_filter($this->env, (isset($context["distance"]) || array_key_exists("distance"$context) ? $context["distance"] : (function () { throw new RuntimeError('Variable "distance" does not exist.'27$this->source); })()), "html"nulltrue);
  131.                     echo "</span>
  132.                                     ";
  133.                 }
  134.                 // line 29
  135.                 echo "                                    ";
  136.                 $context["imgSrc"] = $this->extensions['Vich\UploaderBundle\Twig\Extension\UploaderExtension']->asset(twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["ii"], "etablissement", [], "any"falsefalsefalse29), "logo", [], "any"falsefalsefalse29), "logoFile");
  137.                 // line 30
  138.                 echo "                                    ";
  139.                 if ((isset($context["imgSrc"]) || array_key_exists("imgSrc"$context) ? $context["imgSrc"] : (function () { throw new RuntimeError('Variable "imgSrc" does not exist.'30$this->source); })())) {
  140.                     // line 31
  141.                     echo "                                        <img loading=\"lazy\" src=\"";
  142.                     echo twig_escape_filter($this->env$this->extensions['Liip\ImagineBundle\Templating\FilterExtension']->filter($this->extensions['Vich\UploaderBundle\Twig\Extension\UploaderExtension']->asset(twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["ii"], "etablissement", [], "any"falsefalsefalse31), "logo", [], "any"falsefalsefalse31), "logoFile"), "etab_hp_logo"), "html"nulltrue);
  143.                     echo "\" alt=\"";
  144.                     echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["ii"], "etablissement", [], "any"falsefalsefalse31), "denomination", [], "any"falsefalsefalse31), "html"nulltrue);
  145.                     echo "\" title=\"";
  146.                     echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["ii"], "etablissement", [], "any"falsefalsefalse31), "denomination", [], "any"falsefalsefalse31), "html"nulltrue);
  147.                     echo "\">
  148.                                     ";
  149.                 }
  150.                 // line 33
  151.                 echo "                                    ";
  152.                 // line 44
  153.                 echo "                                </figure>
  154.                                 <p class=\"estab\">";
  155.                 // line 45
  156.                 echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$this->extensions['Twig\Extra\String\StringExtension']->createUnicodeString(twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["ii"], "etablissement", [], "any"falsefalsefalse45), "denomination", [], "any"falsefalsefalse45)), "truncate", [=> 50=> "…"=> true], "method"falsefalsefalse45), "html"nulltrue);
  157.                 echo "</p> 
  158. ";
  159.                 // line 47
  160.                 echo "                            </div>
  161.                             <a class=\"see-more\" href=\"";
  162.                 // line 48
  163.                 echo twig_escape_filter($this->env, (isset($context["urlFiche"]) || array_key_exists("urlFiche"$context) ? $context["urlFiche"] : (function () { throw new RuntimeError('Variable "urlFiche" does not exist.'48$this->source); })()), "html"nulltrue);
  164.                 echo "#";
  165.                 echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["ii"], "id", [], "any"falsefalsefalse48), "html"nulltrue);
  166.                 echo "\">Découvrir</a>
  167.                         </article>
  168.                     ";
  169.             }
  170.             // line 51
  171.             echo "\t\t\t\t\t";
  172.             if ((((=== twig_compare(twig_get_attribute($this->env$this->source$context["loop"], "index", [], "any"falsefalsefalse51), 3)) || (=== twig_compare(twig_get_attribute($this->env$this->source$context["loop"], "index", [], "any"falsefalsefalse51), 6))) || twig_get_attribute($this->env$this->source$context["loop"], "last", [], "any"falsefalsefalse51))) {
  173.                 // line 52
  174.                 echo "\t\t\t\t\t\t</div>
  175. \t\t\t\t\t";
  176.             }
  177.             // line 54
  178.             echo "\t\t\t\t";
  179.             ++$context['loop']['index0'];
  180.             ++$context['loop']['index'];
  181.             $context['loop']['first'] = false;
  182.             if (isset($context['loop']['length'])) {
  183.                 --$context['loop']['revindex0'];
  184.                 --$context['loop']['revindex'];
  185.                 $context['loop']['last'] = === $context['loop']['revindex0'];
  186.             }
  187.         }
  188.         $_parent $context['_parent'];
  189.         unset($context['_seq'], $context['_iterated'], $context['_key'], $context['ii'], $context['_parent'], $context['loop']);
  190.         $context array_intersect_key($context$_parent) + $_parent;
  191.         // line 55
  192.         echo "\t\t\t</div>
  193. \t\t\t<div class=\"diplome-une d-block d-md-none d-lg-none\">
  194. \t\t\t\t";
  195.         // line 57
  196.         $context['_parent'] = $context;
  197.         $context['_seq'] = twig_ensure_traversable((isset($context["itemsInsertions"]) || array_key_exists("itemsInsertions"$context) ? $context["itemsInsertions"] : (function () { throw new RuntimeError('Variable "itemsInsertions" does not exist.'57$this->source); })()));
  198.         foreach ($context['_seq'] as $context["_key"] => $context["ii"]) {
  199.             // line 58
  200.             echo "                    ";
  201.             $context["imgAlt"] = twig_trim_filter(twig_join_filter(twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["ii"], "etablissement", [], "any"falsefalsefalse58), "denomination", [], "any"falsefalsefalse58), " - "), " -");
  202.             // line 59
  203.             echo "                    ";
  204.             $context["urlFiche"] = twig_get_attribute($this->env$this->source, (isset($context["pathBuilder"]) || array_key_exists("pathBuilder"$context) ? $context["pathBuilder"] : (function () { throw new RuntimeError('Variable "pathBuilder" does not exist.'59$this->source); })()), "buildFiche", [=> twig_get_attribute($this->env$this->source$context["ii"], "etablissement", [], "any"falsefalsefalse59)], "method"falsefalsefalse59);
  205.             // line 60
  206.             echo "\t\t\t\t\t<div class=\"slide-diplome ";
  207.             echo "\">
  208.                     ";
  209.             // line 61
  210.             if (twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["ii"], "etablissement", [], "any"falsefalsefalse61), "isClient", [], "any"falsefalsefalse61)) {
  211.                 // line 62
  212.                 echo "                        <article class=\"diplome\">
  213.                             <span class=\"diplome-plus\"></span>
  214.                             ";
  215.                 // line 64
  216.                 if ((((=== twig_compare(twig_get_attribute($this->env$this->source$context["ii"], "pere", [], "any"falsefalsefalse64), "LYC-FORMA2021")) || (=== twig_compare(twig_get_attribute($this->env$this->source$context["ii"], "pere", [], "any"falsefalsefalse64), "LYC-FORMA2021-SPEC"))) || (=== twig_compare(twig_get_attribute($this->env$this->source$context["ii"], "pere", [], "any"falsefalsefalse64), "LYC-FORMA2021-GFACU")))) {
  217.                     // line 65
  218.                     echo "                                <p class=\"libelle\">Bac Général</p>
  219.                             ";
  220.                 } else {
  221.                     // line 67
  222.                     echo "                                <p class=\"libelle\">";
  223.                     echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$this->extensions['Twig\Extra\String\StringExtension']->createUnicodeString(twig_striptags($this->extensions['App\Twig\ItemsInsertionExtension']->itemLibelle($context["ii"]))), "truncate", [=> 50=> "…"=> true], "method"falsefalsefalse67), "html"nulltrue);
  224.                     echo " ";
  225.                     if ( !twig_test_empty(twig_get_attribute($this->env$this->source$context["ii"], "options", [], "any"falsefalsefalse67))) {
  226.                         echo " - ";
  227.                         echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$this->extensions['Twig\Extra\String\StringExtension']->createUnicodeString(twig_get_attribute($this->env$this->source$context["ii"], "options", [], "any"falsefalsefalse67)), "truncate", [=> 20=> "…"=> true], "method"falsefalsefalse67), "html"nulltrue);
  228.                     }
  229.                     echo "</p>
  230.                             ";
  231.                 }
  232.                 // line 69
  233.                 echo "                            <div class=\"infos p-0\">
  234.                                 <figure class=\"resize\" data-href=\"";
  235.                 // line 70
  236.                 if (twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["ii"], "etablissement", [], "any"falsefalsefalse70), "videoPlus", [], "any"falsefalsefalse70)) {
  237.                     echo " ";
  238.                     echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["pathBuilder"]) || array_key_exists("pathBuilder"$context) ? $context["pathBuilder"] : (function () { throw new RuntimeError('Variable "pathBuilder" does not exist.'70$this->source); })()), "buildFiche", [=> twig_get_attribute($this->env$this->source$context["ii"], "etablissement", [], "any"falsefalsefalse70), => ["video-id" => "0"]], "method"falsefalsefalse70), "html"nulltrue);
  239.                     echo " ";
  240.                 } else {
  241.                     echo " ";
  242.                     echo twig_escape_filter($this->env, (isset($context["urlFiche"]) || array_key_exists("urlFiche"$context) ? $context["urlFiche"] : (function () { throw new RuntimeError('Variable "urlFiche" does not exist.'70$this->source); })()), "html"nulltrue);
  243.                     echo " ";
  244.                 }
  245.                 echo "\">
  246.                                 ";
  247.                 // line 71
  248.                 if ((isset($context["isForeignCityNear"]) || array_key_exists("isForeignCityNear"$context) ? $context["isForeignCityNear"] : (function () { throw new RuntimeError('Variable "isForeignCityNear" does not exist.'71$this->source); })())) {
  249.                     // line 72
  250.                     echo "                                    ";
  251.                     $context["distance"] = _twig_default_filter($this->extensions['App\Twig\GeoExtension']->lieuDistance((isset($context["lieu"]) || array_key_exists("lieu"$context) ? $context["lieu"] : (function () { throw new RuntimeError('Variable "lieu" does not exist.'72$this->source); })()), twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["ii"], "etablissement", [], "any"falsefalsefalse72), "latitude", [], "any"falsefalsefalse72), twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["ii"], "etablissement", [], "any"falsefalsefalse72), "longitude", [], "any"falsefalsefalse72)), "proximité");
  252.                     // line 73
  253.                     echo "                                    <span class=\"distance\">à ";
  254.                     echo twig_escape_filter($this->env, (isset($context["distance"]) || array_key_exists("distance"$context) ? $context["distance"] : (function () { throw new RuntimeError('Variable "distance" does not exist.'73$this->source); })()), "html"nulltrue);
  255.                     echo "</span>
  256.                                 ";
  257.                 }
  258.                 // line 75
  259.                 echo "                                    ";
  260.                 $context["imgSrc"] = $this->extensions['Vich\UploaderBundle\Twig\Extension\UploaderExtension']->asset(twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["ii"], "etablissement", [], "any"falsefalsefalse75), "logo", [], "any"falsefalsefalse75), "logoFile");
  261.                 // line 76
  262.                 echo "                                    ";
  263.                 if ((isset($context["imgSrc"]) || array_key_exists("imgSrc"$context) ? $context["imgSrc"] : (function () { throw new RuntimeError('Variable "imgSrc" does not exist.'76$this->source); })())) {
  264.                     // line 77
  265.                     echo "                                        <img loading=\"lazy\" src=\"";
  266.                     echo twig_escape_filter($this->env$this->extensions['Liip\ImagineBundle\Templating\FilterExtension']->filter($this->extensions['Vich\UploaderBundle\Twig\Extension\UploaderExtension']->asset(twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["ii"], "etablissement", [], "any"falsefalsefalse77), "logo", [], "any"falsefalsefalse77), "logoFile"), "etab_hp_logo"), "html"nulltrue);
  267.                     echo "\" alt=\"";
  268.                     echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["ii"], "etablissement", [], "any"falsefalsefalse77), "denomination", [], "any"falsefalsefalse77), "html"nulltrue);
  269.                     echo "\" title=\"";
  270.                     echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["ii"], "etablissement", [], "any"falsefalsefalse77), "denomination", [], "any"falsefalsefalse77), "html"nulltrue);
  271.                     echo "\">
  272.                                     ";
  273.                 }
  274.                 // line 79
  275.                 echo "                                    ";
  276.                 // line 84
  277.                 echo "                                ";
  278.                 // line 89
  279.                 echo "                                </figure>
  280.                                 <p class=\"estab\">";
  281.                 // line 90
  282.                 echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$this->extensions['Twig\Extra\String\StringExtension']->createUnicodeString(twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["ii"], "etablissement", [], "any"falsefalsefalse90), "denomination", [], "any"falsefalsefalse90)), "truncate", [=> 50=> "…"=> true], "method"falsefalsefalse90), "html"nulltrue);
  283.                 echo "</p> 
  284. ";
  285.                 // line 92
  286.                 echo "                            </div>
  287.                             <a class=\"see-more\" href=\"";
  288.                 // line 93
  289.                 echo twig_escape_filter($this->env, (isset($context["urlFiche"]) || array_key_exists("urlFiche"$context) ? $context["urlFiche"] : (function () { throw new RuntimeError('Variable "urlFiche" does not exist.'93$this->source); })()), "html"nulltrue);
  290.                 echo "#";
  291.                 echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["ii"], "id", [], "any"falsefalsefalse93), "html"nulltrue);
  292.                 echo "\">Découvrir</a>
  293.                         </article>
  294.                     ";
  295.             }
  296.             // line 96
  297.             echo "\t\t\t\t\t</div>
  298. \t\t\t\t";
  299.         }
  300.         $_parent $context['_parent'];
  301.         unset($context['_seq'], $context['_iterated'], $context['_key'], $context['ii'], $context['_parent'], $context['loop']);
  302.         $context array_intersect_key($context$_parent) + $_parent;
  303.         // line 98
  304.         echo "\t\t\t</div>
  305. \t\t</div>
  306.     </div>
  307. ";
  308.         
  309.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  310.         
  311.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  312.     }
  313.     public function getTemplateName()
  314.     {
  315.         return "annuaire/_includes/diplome-list.html.twig";
  316.     }
  317.     public function isTraitable()
  318.     {
  319.         return false;
  320.     }
  321.     public function getDebugInfo()
  322.     {
  323.         return array (  313 => 98,  306 => 96,  298 => 93,  295 => 92,  291 => 90,  288 => 89,  286 => 84,  284 => 79,  274 => 77,  271 => 76,  268 => 75,  262 => 73,  259 => 72,  257 => 71,  245 => 70,  242 => 69,  231 => 67,  227 => 65,  225 => 64,  221 => 62,  219 => 61,  215 => 60,  212 => 59,  209 => 58,  205 => 57,  201 => 55,  187 => 54,  183 => 52,  180 => 51,  172 => 48,  169 => 47,  165 => 45,  162 => 44,  160 => 33,  150 => 31,  147 => 30,  144 => 29,  138 => 27,  135 => 26,  133 => 25,  121 => 24,  118 => 23,  107 => 21,  103 => 19,  101 => 18,  91 => 16,  88 => 15,  84 => 13,  81 => 12,  78 => 11,  75 => 10,  58 => 9,  55 => 8,  50 => 5,  48 => 4,  43 => 1,);
  324.     }
  325.     public function getSourceContext()
  326.     {
  327.         return new Source("    <div class=\"block-diplome-plus\">
  328.         <h2>Diplômes à la une</h2>
  329. \t\t<div class=\"position-relative\">
  330.             {% if itemsInsertions|length > 3 %}
  331.                 <span class=\"next-slide-diplome next-rouge\"></span>
  332.                 <span class=\"prev-slide-diplome prev-rouge\"></span>
  333.             {% endif %}
  334. \t\t\t<div class=\"diplome-une d-none d-md-block d-lg-block\">
  335. \t\t\t\t{% for ii in itemsInsertions %}
  336.                     {% set imgAlt = ii.etablissement.denomination|join(' - ')|trim(' -') %}
  337.                     {% set urlFiche = pathBuilder.buildFiche(ii.etablissement) %}
  338. \t\t\t\t\t{% if loop.index == 1 or loop.index == 4 or loop.index == 7  %}
  339. \t\t\t\t\t\t<div class=\"slide-diplome w-100\">
  340. \t\t\t\t\t{% endif %}
  341.                     {% if ii.etablissement.isClient %}
  342.                         <article class=\"diplome{% if ii.etablissement.type %} {{ ii.etablissement.type | typeNiveau | slugify }} {% endif %}\">
  343.                             <span class=\"diplome-plus\"></span>
  344.                             {% if ii.pere == 'LYC-FORMA2021' or ii.pere == 'LYC-FORMA2021-SPEC' or ii.pere == 'LYC-FORMA2021-GFACU' %}
  345.                                 <p class=\"libelle\">Bac Général</p>
  346.                             {% else %}
  347.                                 <p class=\"libelle\">{{ ii | itemLibelle | striptags | raw | u.truncate(50, '…', true) }} {% if ii.options is not empty %} - {{ ii.options | u.truncate(20, '…', true) }}{% endif %}</p>
  348.                             {% endif %}
  349.                             <div class=\"infos p-0\">
  350.                                 <figure class=\"resize\" data-href=\"{% if ii.etablissement.videoPlus %} {{ pathBuilder.buildFiche(ii.etablissement,{'video-id':'0'})}} {% else %} {{ urlFiche }} {% endif %}\">
  351.                                     {% if isForeignCityNear %}
  352.                                         {% set distance = lieu | lieuDistance(ii.etablissement.latitude, ii.etablissement.longitude) | default('proximité') %}
  353.                                         <span class=\"distance\">à {{ distance }}</span>
  354.                                     {% endif %}
  355.                                     {% set imgSrc = vich_uploader_asset(ii.etablissement.logo, 'logoFile') %}
  356.                                     {% if imgSrc %}
  357.                                         <img loading=\"lazy\" src=\"{{ vich_uploader_asset(ii.etablissement.logo, 'logoFile') | imagine_filter('etab_hp_logo') }}\" alt=\"{{ ii.etablissement.denomination }}\" title=\"{{ ii.etablissement.denomination }}\">
  358.                                     {% endif %}
  359.                                     {#
  360.                                     {% if ii.etablissement.imagesDiaporama is not empty %}
  361.                                         <img class=\"resp\" src=\"{{ asset('images/jouve/photo/' ~ ii.etablissement.imagesDiaporama | first) | imagine_filter('etab_liste')}}\" alt=\"{{ imgAlt }}\" title=\"{{ imgAlt }}\">
  362.                                     {% else %}
  363.                                         <span class=\"no-logo\"></span>
  364.                                     {% endif %}
  365.                                     {% if ii.etablissement.videos|length > 0 and ii.etablissement.videoPlus %}
  366.                                         <i class=\"i-video\"></i>
  367.                                     {% elseif ii.etablissement.diaporamas|length > 0 and ii.etablissement.diapoPlus %}
  368.                                         <i class=\"i-diapo\"></i>
  369.                                     {% endif %}#}
  370.                                 </figure>
  371.                                 <p class=\"estab\">{{ ii.etablissement.denomination | u.truncate(50, '…', true) }}</p> 
  372. {#                                <p class=\"city\">{{ ii.etablissement.ville.codePostal }} {{ ii.etablissement.ville.libelle }}</p>#}
  373.                             </div>
  374.                             <a class=\"see-more\" href=\"{{ urlFiche }}#{{ ii.id }}\">Découvrir</a>
  375.                         </article>
  376.                     {% endif %}
  377. \t\t\t\t\t{% if loop.index == 3 or loop.index == 6 or loop.last  %}
  378. \t\t\t\t\t\t</div>
  379. \t\t\t\t\t{% endif %}
  380. \t\t\t\t{% endfor %}
  381. \t\t\t</div>
  382. \t\t\t<div class=\"diplome-une d-block d-md-none d-lg-none\">
  383. \t\t\t\t{% for ii in itemsInsertions %}
  384.                     {% set imgAlt = ii.etablissement.denomination|join(' - ')|trim(' -') %}
  385.                     {% set urlFiche = pathBuilder.buildFiche(ii.etablissement) %}
  386. \t\t\t\t\t<div class=\"slide-diplome {#w-100#}\">
  387.                     {% if ii.etablissement.isClient %}
  388.                         <article class=\"diplome\">
  389.                             <span class=\"diplome-plus\"></span>
  390.                             {% if ii.pere == 'LYC-FORMA2021' or ii.pere == 'LYC-FORMA2021-SPEC' or ii.pere == 'LYC-FORMA2021-GFACU' %}
  391.                                 <p class=\"libelle\">Bac Général</p>
  392.                             {% else %}
  393.                                 <p class=\"libelle\">{{ ii | itemLibelle | striptags | raw | u.truncate(50, '…', true) }} {% if ii.options is not empty %} - {{ ii.options | u.truncate(20, '…', true) }}{% endif %}</p>
  394.                             {% endif %}
  395.                             <div class=\"infos p-0\">
  396.                                 <figure class=\"resize\" data-href=\"{% if ii.etablissement.videoPlus %} {{ pathBuilder.buildFiche(ii.etablissement,{'video-id':'0'})}} {% else %} {{ urlFiche }} {% endif %}\">
  397.                                 {% if isForeignCityNear %}
  398.                                     {% set distance = lieu | lieuDistance(ii.etablissement.latitude, ii.etablissement.longitude) | default('proximité') %}
  399.                                     <span class=\"distance\">à {{ distance }}</span>
  400.                                 {% endif %}
  401.                                     {% set imgSrc = vich_uploader_asset(ii.etablissement.logo, 'logoFile') %}
  402.                                     {% if imgSrc %}
  403.                                         <img loading=\"lazy\" src=\"{{ vich_uploader_asset(ii.etablissement.logo, 'logoFile') | imagine_filter('etab_hp_logo') }}\" alt=\"{{ ii.etablissement.denomination }}\" title=\"{{ ii.etablissement.denomination }}\">
  404.                                     {% endif %}
  405.                                     {#{% if ii.etablissement.imagesDiaporama is not empty %}
  406.                                     <img class=\"resp\" src=\"{{ asset('images/jouve/photo/' ~ ii.etablissement.imagesDiaporama | first) | imagine_filter('etab_liste')}}\" alt=\"{{ imgAlt }}\" title=\"{{ imgAlt }}\">
  407.                                 {% else %}
  408.                                     <span class=\"no-logo\"></span>
  409.                                 {% endif %}#}
  410.                                 {#{% if ii.etablissement.videos|length > 0 and ii.etablissement.videoPlus %}
  411.                                     <i class=\"i-video\"></i>
  412.                                 {% elseif ii.etablissement.diaporamas|length > 0 and ii.etablissement.diapoPlus %}
  413.                                     <i class=\"i-diapo\"></i>
  414.                                 {% endif %}#}
  415.                                 </figure>
  416.                                 <p class=\"estab\">{{ ii.etablissement.denomination | u.truncate(50, '…', true) }}</p> 
  417. {#                                <p class=\"city\">{{ ii.etablissement.ville.codePostal }} {{ ii.etablissement.ville.libelle }}</p>#}
  418.                             </div>
  419.                             <a class=\"see-more\" href=\"{{ urlFiche }}#{{ ii.id }}\">Découvrir</a>
  420.                         </article>
  421.                     {% endif %}
  422. \t\t\t\t\t</div>
  423. \t\t\t\t{% endfor %}
  424. \t\t\t</div>
  425. \t\t</div>
  426.     </div>
  427. ""annuaire/_includes/diplome-list.html.twig""/app/templates/annuaire/_includes/diplome-list.html.twig");
  428.     }
  429. }