var/cache/dev/twig/16/161b12dcdebb237e47577aa48c51243a64d874ddbf3600b5b59ece50fdd5ddce.php line 123

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. /* fiche/_includes/diaporama.html.twig */
  14. class __TwigTemplate_7223d5e6bd599aca54d8ff6d4a46e61c6abcecf164fbbddf0cdb3afb42583e41 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""fiche/_includes/diaporama.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""fiche/_includes/diaporama.html.twig"));
  33.         // line 3
  34.         $context["diapoPrincipal"] = false;
  35.         // line 4
  36.         echo "
  37. ";
  38.         // line 5
  39.         if (twig_get_attribute($this->env$this->source, (isset($context["etablissement"]) || array_key_exists("etablissement"$context) ? $context["etablissement"] : (function () { throw new RuntimeError('Variable "etablissement" does not exist.'5$this->source); })()), "isClient", [], "any"falsefalsefalse5)) {
  40.             // line 6
  41.             echo "    ";
  42.             if ((twig_get_attribute($this->env$this->source, (isset($context["etablissement"]) || array_key_exists("etablissement"$context) ? $context["etablissement"] : (function () { throw new RuntimeError('Variable "etablissement" does not exist.'6$this->source); })()), "diapoPlus", [], "any"falsefalsefalse6) && (=== twig_compare(twig_length_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["etablissement"]) || array_key_exists("etablissement"$context) ? $context["etablissement"] : (function () { throw new RuntimeError('Variable "etablissement" does not exist.'6$this->source); })()), "diaporamas", [], "any"falsefalsefalse6)), 0)))) {
  43.                 // line 7
  44.                 echo "        ";
  45.                 $context['_parent'] = $context;
  46.                 $context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env$this->source, (isset($context["etablissement"]) || array_key_exists("etablissement"$context) ? $context["etablissement"] : (function () { throw new RuntimeError('Variable "etablissement" does not exist.'7$this->source); })()), "diaporamas", [], "any"falsefalsefalse7));
  47.                 foreach ($context['_seq'] as $context["_key"] => $context["diapo"]) {
  48.                     // line 8
  49.                     echo "            ";
  50.                     if (twig_get_attribute($this->env$this->source$context["diapo"], "principal", [], "any"falsefalsefalse8)) {
  51.                         // line 9
  52.                         echo "                ";
  53.                         $context["diapoPrincipal"] = $context["diapo"];
  54.                         // line 10
  55.                         echo "            ";
  56.                     }
  57.                     // line 11
  58.                     echo "        ";
  59.                 }
  60.                 $_parent $context['_parent'];
  61.                 unset($context['_seq'], $context['_iterated'], $context['_key'], $context['diapo'], $context['_parent'], $context['loop']);
  62.                 $context array_intersect_key($context$_parent) + $_parent;
  63.                 // line 12
  64.                 echo "    ";
  65.             }
  66.             // line 13
  67.             echo "    ";
  68.             $context["diapoPrincipal"] = (((=== twig_compare((isset($context["diapoPrincipal"]) || array_key_exists("diapoPrincipal"$context) ? $context["diapoPrincipal"] : (function () { throw new RuntimeError('Variable "diapoPrincipal" does not exist.'13$this->source); })()), true))) ? ((isset($context["diapoPrincipal"]) || array_key_exists("diapoPrincipal"$context) ? $context["diapoPrincipal"] : (function () { throw new RuntimeError('Variable "diapoPrincipal" does not exist.'13$this->source); })())) : (twig_first($this->envtwig_get_attribute($this->env$this->source, (isset($context["etablissement"]) || array_key_exists("etablissement"$context) ? $context["etablissement"] : (function () { throw new RuntimeError('Variable "etablissement" does not exist.'13$this->source); })()), "diaporamas", [], "any"falsefalsefalse13))));
  69.             // line 14
  70.             echo "    ";
  71.             $context["diapoPrincipalPhotos"] = ((twig_get_attribute($this->env$this->source, (isset($context["etablissement"]) || array_key_exists("etablissement"$context) ? $context["etablissement"] : (function () { throw new RuntimeError('Variable "etablissement" does not exist.'14$this->source); })()), "diapoPlus", [], "any"falsefalsefalse14)) ? (twig_get_attribute($this->env$this->source, (isset($context["diapoPrincipal"]) || array_key_exists("diapoPrincipal"$context) ? $context["diapoPrincipal"] : (function () { throw new RuntimeError('Variable "diapoPrincipal" does not exist.'14$this->source); })()), "photo", [], "any"falsefalsefalse14)) : (twig_slice($this->envtwig_get_attribute($this->env$this->source, (isset($context["diapoPrincipal"]) || array_key_exists("diapoPrincipal"$context) ? $context["diapoPrincipal"] : (function () { throw new RuntimeError('Variable "diapoPrincipal" does not exist.'14$this->source); })()), "photo", [], "any"falsefalsefalse14), 0twig_get_attribute($this->env$this->source, (isset($context["etablissement"]) || array_key_exists("etablissement"$context) ? $context["etablissement"] : (function () { throw new RuntimeError('Variable "etablissement" does not exist.'14$this->source); })()), "nombrePhotosMax", [], "any"falsefalsefalse14))));
  72.         }
  73.         // line 16
  74.         echo "
  75. ";
  76.         // line 17
  77.         if ((twig_get_attribute($this->env$this->source, (isset($context["etablissement"]) || array_key_exists("etablissement"$context) ? $context["etablissement"] : (function () { throw new RuntimeError('Variable "etablissement" does not exist.'17$this->source); })()), "isClient", [], "any"falsefalsefalse17) && ((!== twig_compare((isset($context["diapoPrincipal"]) || array_key_exists("diapoPrincipal"$context) ? $context["diapoPrincipal"] : (function () { throw new RuntimeError('Variable "diapoPrincipal" does not exist.'17$this->source); })()), false)) ||  !twig_test_empty(twig_get_attribute($this->env$this->source, (isset($context["etablissement"]) || array_key_exists("etablissement"$context) ? $context["etablissement"] : (function () { throw new RuntimeError('Variable "etablissement" does not exist.'17$this->source); })()), "imagesDiaporama", [], "any"falsefalsefalse17))))) {
  78.             // line 19
  79.             echo "<div id=\"diapo\" class=\"carousel slide carousel-dark\" data-bs-ride=\"carousel\">
  80.   ";
  81.             // line 22
  82.             echo "  ";
  83.             // line 27
  84.             echo "  
  85.   ";
  86.             // line 29
  87.             echo "  <div class=\"carousel-inner\">
  88.     ";
  89.             // line 32
  90.             echo "    ";
  91.             if ((!== twig_compare((isset($context["diapoPrincipal"]) || array_key_exists("diapoPrincipal"$context) ? $context["diapoPrincipal"] : (function () { throw new RuntimeError('Variable "diapoPrincipal" does not exist.'32$this->source); })()), false))) {
  92.                 // line 33
  93.                 echo "        ";
  94.                 $context['_parent'] = $context;
  95.                 $context['_seq'] = twig_ensure_traversable((isset($context["diapoPrincipalPhotos"]) || array_key_exists("diapoPrincipalPhotos"$context) ? $context["diapoPrincipalPhotos"] : (function () { throw new RuntimeError('Variable "diapoPrincipalPhotos" does not exist.'33$this->source); })()));
  96.                 $context['loop'] = [
  97.                   'parent' => $context['_parent'],
  98.                   'index0' => 0,
  99.                   'index'  => 1,
  100.                   'first'  => true,
  101.                 ];
  102.                 if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof \Countable)) {
  103.                     $length count($context['_seq']);
  104.                     $context['loop']['revindex0'] = $length 1;
  105.                     $context['loop']['revindex'] = $length;
  106.                     $context['loop']['length'] = $length;
  107.                     $context['loop']['last'] = === $length;
  108.                 }
  109.                 foreach ($context['_seq'] as $context["_key"] => $context["item"]) {
  110.                     // line 34
  111.                     echo "            ";
  112.                     if ((-=== twig_compare(twig_get_attribute($this->env$this->source$context["loop"], "index0", [], "any"falsefalsefalse34), twig_get_attribute($this->env$this->source, (isset($context["etablissement"]) || array_key_exists("etablissement"$context) ? $context["etablissement"] : (function () { throw new RuntimeError('Variable "etablissement" does not exist.'34$this->source); })()), "getNombrePhotosMax", [], "any"falsefalsefalse34)))) {
  113.                         echo "  
  114.             <div class=\"carousel-item ";
  115.                         // line 35
  116.                         if ((=== twig_compare(twig_get_attribute($this->env$this->source$context["loop"], "index0", [], "any"falsefalsefalse35), 0))) {
  117.                             echo "active";
  118.                         }
  119.                         echo "\">
  120.                 <img src=\"";
  121.                         // line 36
  122.                         echo twig_escape_filter($this->env$this->extensions['Liip\ImagineBundle\Templating\FilterExtension']->filter($this->extensions['Vich\UploaderBundle\Twig\Extension\UploaderExtension']->asset($context["item"], "photoFile"), "diapo_une"), "html"nulltrue);
  123.                         echo "\" alt=\"";
  124.                         echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["item"], "legende", [], "any"falsefalsefalse36), "html"nulltrue);
  125.                         echo "\" class=\"d-block\" style=\"width:100%; cursor:pointer;\" data-bs-toggle=\"modal\" data-bs-target=\"#diapoModal";
  126.                         echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["loop"], "index", [], "any"falsefalsefalse36), "html"nulltrue);
  127.                         echo "\">
  128.                 <div class=\"carousel-caption\">
  129.                     <p>";
  130.                         // line 38
  131.                         echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["item"], "legende", [], "any"falsefalsefalse38), "html"nulltrue);
  132.                         echo "</p>
  133.                 </div>
  134.             </div>
  135.             ";
  136.                         // line 43
  137.                         echo "            <div class=\"modal fade\" id=\"diapoModal";
  138.                         echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["loop"], "index", [], "any"falsefalsefalse43), "html"nulltrue);
  139.                         echo "\" tabindex=\"-1\" aria-labelledby=\"diapoModalLabel";
  140.                         echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["loop"], "index", [], "any"falsefalsefalse43), "html"nulltrue);
  141.                         echo "\" aria-hidden=\"true\">
  142.                 <div class=\"modal-dialog modal-dialog-centered d-flex align-items-center justify-content-center\" style=\"min-height: 100vh;\">
  143.                     <div class=\"modal-content\" style=\"width: auto; display: inline-block; margin: auto;\">
  144.                         <div class=\"modal-body text-center\" style=\"padding:0;\">
  145.                             <img src=\"";
  146.                         // line 47
  147.                         echo twig_escape_filter($this->env$this->extensions['Vich\UploaderBundle\Twig\Extension\UploaderExtension']->asset($context["item"], "photoFile"), "html"nulltrue);
  148.                         echo "\" alt=\"";
  149.                         echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["item"], "legende", [], "any"falsefalsefalse47), "html"nulltrue);
  150.                         echo "\" class=\"img-fluid\" style=\"display:block; max-width:100%; height:auto;\">
  151.                         </div>
  152.                     </div>
  153.                 </div>
  154.             </div>
  155.             ";
  156.                     }
  157.                     // line 53
  158.                     echo "        ";
  159.                     ++$context['loop']['index0'];
  160.                     ++$context['loop']['index'];
  161.                     $context['loop']['first'] = false;
  162.                     if (isset($context['loop']['length'])) {
  163.                         --$context['loop']['revindex0'];
  164.                         --$context['loop']['revindex'];
  165.                         $context['loop']['last'] = === $context['loop']['revindex0'];
  166.                     }
  167.                 }
  168.                 $_parent $context['_parent'];
  169.                 unset($context['_seq'], $context['_iterated'], $context['_key'], $context['item'], $context['_parent'], $context['loop']);
  170.                 $context array_intersect_key($context$_parent) + $_parent;
  171.                 // line 54
  172.                 echo "    ";
  173.             } else {
  174.                 echo 
  175.         ";
  176.                 // line 56
  177.                 echo "        ";
  178.                 $context['_parent'] = $context;
  179.                 $context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env$this->source, (isset($context["etablissement"]) || array_key_exists("etablissement"$context) ? $context["etablissement"] : (function () { throw new RuntimeError('Variable "etablissement" does not exist.'56$this->source); })()), "imagesDiaporama", [], "any"falsefalsefalse56));
  180.                 $context['loop'] = [
  181.                   'parent' => $context['_parent'],
  182.                   'index0' => 0,
  183.                   'index'  => 1,
  184.                   'first'  => true,
  185.                 ];
  186.                 if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof \Countable)) {
  187.                     $length count($context['_seq']);
  188.                     $context['loop']['revindex0'] = $length 1;
  189.                     $context['loop']['revindex'] = $length;
  190.                     $context['loop']['length'] = $length;
  191.                     $context['loop']['last'] = === $length;
  192.                 }
  193.                 foreach ($context['_seq'] as $context["_key"] => $context["item"]) {
  194.                     // line 57
  195.                     echo "        <div class=\"carousel-item ";
  196.                     if ((=== twig_compare(twig_get_attribute($this->env$this->source$context["loop"], "index0", [], "any"falsefalsefalse57), 0))) {
  197.                         echo "active";
  198.                     }
  199.                     echo "\">
  200.             ";
  201.                     // line 58
  202.                     if ((-=== twig_compare(twig_get_attribute($this->env$this->source$context["loop"], "index0", [], "any"falsefalsefalse58), twig_get_attribute($this->env$this->source, (isset($context["etablissement"]) || array_key_exists("etablissement"$context) ? $context["etablissement"] : (function () { throw new RuntimeError('Variable "etablissement" does not exist.'58$this->source); })()), "getNombrePhotosMax", [], "any"falsefalsefalse58)))) {
  203.                         echo "  
  204.             <img src=\"";
  205.                         // line 59
  206.                         echo twig_escape_filter($this->env$this->extensions['Liip\ImagineBundle\Templating\FilterExtension']->filter($this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl(("images/jouve/photo/" $context["item"])), "etab_fiche"), "html"nulltrue);
  207.                         echo "\" class=\"d-block\" style=\"width:100%\">
  208.             ";
  209.                     }
  210.                     // line 61
  211.                     echo "        </div>
  212.         ";
  213.                     ++$context['loop']['index0'];
  214.                     ++$context['loop']['index'];
  215.                     $context['loop']['first'] = false;
  216.                     if (isset($context['loop']['length'])) {
  217.                         --$context['loop']['revindex0'];
  218.                         --$context['loop']['revindex'];
  219.                         $context['loop']['last'] = === $context['loop']['revindex0'];
  220.                     }
  221.                 }
  222.                 $_parent $context['_parent'];
  223.                 unset($context['_seq'], $context['_iterated'], $context['_key'], $context['item'], $context['_parent'], $context['loop']);
  224.                 $context array_intersect_key($context$_parent) + $_parent;
  225.                 // line 62
  226.                 echo "        
  227.     ";
  228.             }
  229.             // line 64
  230.             echo "    
  231.   </div>
  232.   
  233.   ";
  234.             // line 68
  235.             echo "  ";
  236.             if ((=== twig_compare(twig_get_attribute($this->env$this->source, (isset($context["etablissement"]) || array_key_exists("etablissement"$context) ? $context["etablissement"] : (function () { throw new RuntimeError('Variable "etablissement" does not exist.'68$this->source); })()), "getNombrePhotosMax", [], "any"falsefalsefalse68), 1))) {
  237.                 // line 69
  238.                 echo "  <button class=\"carousel-control-prev\" type=\"button\" data-bs-target=\"#diapo\" data-bs-slide=\"prev\">
  239.     <span class=\"carousel-control-prev-icon\"></span>
  240.   </button>
  241.   <button class=\"carousel-control-next\" type=\"button\" data-bs-target=\"#diapo\" data-bs-slide=\"next\">
  242.     <span class=\"carousel-control-next-icon\"></span>
  243.   </button>
  244.   ";
  245.             }
  246.             // line 76
  247.             echo "
  248. </div>
  249. ";
  250.         } else {
  251.             // line 79
  252.             echo "<div class=\"fiche-diapo\">
  253.     <div class=\"no-diapo\"><span class=\"no-logo\"></span></div>
  254. </div>
  255. ";
  256.         }
  257.         // line 83
  258.         echo "
  259. ";
  260.         
  261.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  262.         
  263.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  264.     }
  265.     public function getTemplateName()
  266.     {
  267.         return "fiche/_includes/diaporama.html.twig";
  268.     }
  269.     public function isTraitable()
  270.     {
  271.         return false;
  272.     }
  273.     public function getDebugInfo()
  274.     {
  275.         return array (  270 => 83,  264 => 79,  259 => 76,  250 => 69,  247 => 68,  242 => 64,  238 => 62,  223 => 61,  218 => 59,  214 => 58,  207 => 57,  189 => 56,  184 => 54,  170 => 53,  159 => 47,  149 => 43,  142 => 38,  133 => 36,  127 => 35,  122 => 34,  104 => 33,  101 => 32,  97 => 29,  94 => 27,  92 => 22,  88 => 19,  86 => 17,  83 => 16,  79 => 14,  76 => 13,  73 => 12,  67 => 11,  64 => 10,  61 => 9,  58 => 8,  53 => 7,  50 => 6,  48 => 5,  45 => 4,  43 => 3,);
  276.     }
  277.     public function getSourceContext()
  278.     {
  279.         return new Source("{# Retrouver la diapo principale, si aucune n'est définir on prend la 1ère #}
  280. {# On prend la diapo princiaple, sinon la 1ère trouvée sinon la diapo importée depuis le BO Jouve #}
  281. {% set diapoPrincipal = false %}
  282. {% if etablissement.isClient %}
  283.     {% if etablissement.diapoPlus and etablissement.diaporamas|length > 0  %}
  284.         {% for diapo in etablissement.diaporamas %}
  285.             {% if diapo.principal %}
  286.                 {% set diapoPrincipal = diapo %}
  287.             {% endif %}
  288.         {% endfor %}
  289.     {% endif %}
  290.     {% set diapoPrincipal = diapoPrincipal == true ? diapoPrincipal : etablissement.diaporamas | first %}
  291.     {% set diapoPrincipalPhotos = etablissement.diapoPlus ? diapoPrincipal.photo : diapoPrincipal.photo | slice(0, etablissement.nombrePhotosMax) %}
  292. {% endif %}
  293. {% if etablissement.isClient and (diapoPrincipal != false or etablissement.imagesDiaporama is not empty) %}
  294. {# <!-- BS5 Carousel --> #}
  295. <div id=\"diapo\" class=\"carousel slide carousel-dark\" data-bs-ride=\"carousel\">
  296.   {# <!-- Indicators/dots --> #}
  297.   {# <div class=\"carousel-indicators\">
  298.     <button type=\"button\" data-bs-target=\"#diapo\" data-bs-slide-to=\"0\" class=\"active\"></button>
  299.     <button type=\"button\" data-bs-target=\"#diapo\" data-bs-slide-to=\"1\"></button>
  300.     <button type=\"button\" data-bs-target=\"#diapo\" data-bs-slide-to=\"2\"></button>
  301.   </div> #}
  302.   
  303.   {# <!-- The slideshow/carousel --> #}
  304.   <div class=\"carousel-inner\">
  305.     {# On affiche les photos du diaporama principal s'il existe #}
  306.     {% if diapoPrincipal != false %}
  307.         {% for item in diapoPrincipalPhotos %}
  308.             {% if loop.index0 < etablissement.getNombrePhotosMax %}  
  309.             <div class=\"carousel-item {% if loop.index0 == 0 %}active{% endif %}\">
  310.                 <img src=\"{{ vich_uploader_asset(item, 'photoFile')| imagine_filter('diapo_une') }}\" alt=\"{{ item.legende }}\" class=\"d-block\" style=\"width:100%; cursor:pointer;\" data-bs-toggle=\"modal\" data-bs-target=\"#diapoModal{{ loop.index }}\">
  311.                 <div class=\"carousel-caption\">
  312.                     <p>{{ item.legende }}</p>
  313.                 </div>
  314.             </div>
  315.             {# Modal for image preview #}
  316.             <div class=\"modal fade\" id=\"diapoModal{{ loop.index }}\" tabindex=\"-1\" aria-labelledby=\"diapoModalLabel{{ loop.index }}\" aria-hidden=\"true\">
  317.                 <div class=\"modal-dialog modal-dialog-centered d-flex align-items-center justify-content-center\" style=\"min-height: 100vh;\">
  318.                     <div class=\"modal-content\" style=\"width: auto; display: inline-block; margin: auto;\">
  319.                         <div class=\"modal-body text-center\" style=\"padding:0;\">
  320.                             <img src=\"{{ vich_uploader_asset(item, 'photoFile') }}\" alt=\"{{ item.legende }}\" class=\"img-fluid\" style=\"display:block; max-width:100%; height:auto;\">
  321.                         </div>
  322.                     </div>
  323.                 </div>
  324.             </div>
  325.             {% endif %}
  326.         {% endfor %}
  327.     {% else %} 
  328.         {# On garde l'ancienne diapo au cas où la migration a foiré ...  #}
  329.         {% for item in etablissement.imagesDiaporama %}
  330.         <div class=\"carousel-item {% if loop.index0 == 0 %}active{% endif %}\">
  331.             {% if loop.index0 < etablissement.getNombrePhotosMax %}  
  332.             <img src=\"{{ asset('images/jouve/photo/' ~ item) | imagine_filter('etab_fiche')}}\" class=\"d-block\" style=\"width:100%\">
  333.             {% endif %}
  334.         </div>
  335.         {% endfor %}        
  336.     {% endif %}
  337.     
  338.   </div>
  339.   
  340.   {# <!-- Left and right controls/icons --> #}
  341.   {% if etablissement.getNombrePhotosMax > 1 %}
  342.   <button class=\"carousel-control-prev\" type=\"button\" data-bs-target=\"#diapo\" data-bs-slide=\"prev\">
  343.     <span class=\"carousel-control-prev-icon\"></span>
  344.   </button>
  345.   <button class=\"carousel-control-next\" type=\"button\" data-bs-target=\"#diapo\" data-bs-slide=\"next\">
  346.     <span class=\"carousel-control-next-icon\"></span>
  347.   </button>
  348.   {% endif %}
  349. </div>
  350. {% else %}
  351. <div class=\"fiche-diapo\">
  352.     <div class=\"no-diapo\"><span class=\"no-logo\"></span></div>
  353. </div>
  354. {% endif %}
  355. {# {% if etablissement.isClient and etablissement.typeClient in ['établissement', 'internat'] %}
  356.     {% set isFav = favoris.has(etablissement) %}
  357.     <span class=\"fav-toggle {{ isFav ? 'fav-added' }}\" data-id=\"{{ etablissement.id }}\" title=\"{{ isFav ? 'Supprimer du favoris' : 'Ajouter aux favoris' }}\"></span>
  358. {% endif %} #}""fiche/_includes/diaporama.html.twig""/app/templates/fiche/_includes/diaporama.html.twig");
  359.     }
  360. }