var/cache/dev/twig/9a/9a29db8338783bae8fc1c5f634d31040a24c381470e6222ccfd3e8edb375f369.php line 217

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. /* video/list.html.twig */
  14. class __TwigTemplate_951f271afa7d90ff25dd6be0dc2dd451abfec4233b29fd8325a0e10bd51215e4 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->blocks = [
  23.             'title' => [$this'block_title'],
  24.             'description' => [$this'block_description'],
  25.             'body' => [$this'block_body'],
  26.             'h1' => [$this'block_h1'],
  27.         ];
  28.     }
  29.     protected function doGetParent(array $context)
  30.     {
  31.         // line 1
  32.         return "base.html.twig";
  33.     }
  34.     protected function doDisplay(array $context, array $blocks = [])
  35.     {
  36.         $macros $this->macros;
  37.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  38.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""video/list.html.twig"));
  39.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  40.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""video/list.html.twig"));
  41.         $this->parent $this->loadTemplate("base.html.twig""video/list.html.twig"1);
  42.         $this->parent->display($contextarray_merge($this->blocks$blocks));
  43.         
  44.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  45.         
  46.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  47.     }
  48.     // line 3
  49.     public function block_title($context, array $blocks = [])
  50.     {
  51.         $macros $this->macros;
  52.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  53.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""title"));
  54.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  55.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""title"));
  56.         $this->displayBlock("h1"$context$blocks);
  57.         
  58.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  59.         
  60.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  61.     }
  62.     // line 5
  63.     public function block_description($context, array $blocks = [])
  64.     {
  65.         $macros $this->macros;
  66.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  67.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""description"));
  68.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  69.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""description"));
  70.         // line 6
  71.         if ((array_key_exists("lieu"$context) && (!== twig_compare(twig_get_attribute($this->env$this->source, (isset($context["lieu"]) || array_key_exists("lieu"$context) ? $context["lieu"] : (function () { throw new RuntimeError('Variable "lieu" does not exist.'6$this->source); })()), "libelle", [], "any"falsefalsefalse6), "DEFAULT")))) {
  72.             // line 7
  73.             echo "Découvrez les différentes vidéos de l'Annuaire Enseignement Privé pour la zone ";
  74.             echo twig_get_attribute($this->env$this->source, (isset($context["lieu"]) || array_key_exists("lieu"$context) ? $context["lieu"] : (function () { throw new RuntimeError('Variable "lieu" does not exist.'7$this->source); })()), "libelle", [], "any"falsefalsefalse7);
  75.         } else {
  76.             // line 9
  77.             echo "Découvrez les différentes vidéos de l'Annuaire Enseignement Privé";
  78.         }
  79.         // line 11
  80.         if ((=== twig_compare(twig_get_attribute($this->env$this->source, (isset($context["videos"]) || array_key_exists("videos"$context) ? $context["videos"] : (function () { throw new RuntimeError('Variable "videos" does not exist.'11$this->source); })()), "currentPageNumber", [], "any"falsefalsefalse11), 1))) {
  81.             echo " - Page ";
  82.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["videos"]) || array_key_exists("videos"$context) ? $context["videos"] : (function () { throw new RuntimeError('Variable "videos" does not exist.'11$this->source); })()), "currentPageNumber", [], "any"falsefalsefalse11), "html"nulltrue);
  83.         }
  84.         
  85.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  86.         
  87.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  88.     }
  89.     // line 14
  90.     public function block_body($context, array $blocks = [])
  91.     {
  92.         $macros $this->macros;
  93.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  94.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""body"));
  95.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  96.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""body"));
  97.         // line 15
  98.         echo "    <section class=\"container page-video\">
  99.         <div id=\"breadcrumb\">
  100.             ";
  101.         // line 17
  102.         $this->loadTemplate("video/_includes/breadcrumb.html.twig""video/list.html.twig"17)->display(twig_to_array(["lieu" =>         // line 18
  103. (isset($context["lieu"]) || array_key_exists("lieu"$context) ? $context["lieu"] : (function () { throw new RuntimeError('Variable "lieu" does not exist.'18$this->source); })())]));
  104.         // line 21
  105.         echo "        </div>
  106.         <div class=\"title mb-4\">";
  107.         // line 23
  108.         ob_start();
  109.         // line 24
  110.         echo "<h1>";
  111.         // line 25
  112.         $this->displayBlock('h1'$context$blocks);
  113.         // line 33
  114.         if ((=== twig_compare(twig_get_attribute($this->env$this->source, (isset($context["videos"]) || array_key_exists("videos"$context) ? $context["videos"] : (function () { throw new RuntimeError('Variable "videos" does not exist.'33$this->source); })()), "currentPageNumber", [], "any"falsefalsefalse33), 1))) {
  115.             echo " - Page ";
  116.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["videos"]) || array_key_exists("videos"$context) ? $context["videos"] : (function () { throw new RuntimeError('Variable "videos" does not exist.'33$this->source); })()), "currentPageNumber", [], "any"falsefalsefalse33), "html"nulltrue);
  117.         }
  118.         // line 34
  119.         echo "</h1>
  120.             <div class=\"triangle-defaut\"></div>";
  121.         $___internal_parse_17_ = ('' === $tmp ob_get_clean()) ? '' : new Markup($tmp$this->env->getCharset());
  122.         // line 23
  123.         echo twig_spaceless($___internal_parse_17_);
  124.         // line 37
  125.         echo "</div>
  126.         <div class=\"wrap\">
  127.             <section>
  128.                 <div class=\"video-list-tri\">
  129.                     ";
  130.         // line 41
  131.         echo $this->env->getRuntime('Symfony\Bridge\Twig\Extension\HttpKernelRuntime')->renderFragment(Symfony\Bridge\Twig\Extension\HttpKernelExtension::controller("App\\Controller\\VideoController::blocVideosALaUne", ["type" => "liste"]));
  132.         // line 44
  133.         echo "
  134.                     <div>
  135.                         <div class=\"w-100 d-md-block d-lg-none pb-4\">
  136.                             ";
  137.         // line 47
  138.         $this->loadTemplate("actualite-etablissement/_includes/search-options.html.twig""video/list.html.twig"47)->display(twig_array_merge($context, ["type" => "mobile"]));
  139.         // line 48
  140.         echo "                        </div>
  141.                         <div>
  142.                     ";
  143.         // line 50
  144.         $context['_parent'] = $context;
  145.         $context['_seq'] = twig_ensure_traversable((isset($context["videos"]) || array_key_exists("videos"$context) ? $context["videos"] : (function () { throw new RuntimeError('Variable "videos" does not exist.'50$this->source); })()));
  146.         foreach ($context['_seq'] as $context["_key"] => $context["video"]) {
  147.             // line 51
  148.             echo "
  149.                     <article class=\"p-0 ";
  150.             // line 52
  151.             if (twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["video"], "etablissement", [], "any"falsefalsefalse52), "videoPlus", [], "any"falsefalsefalse52)) {
  152.                 echo "bckgrnd-plus";
  153.             } else {
  154.                 echo "bckgrnd-plus";
  155.             }
  156.             echo " card-video\">
  157.                         ";
  158.             // line 53
  159.             $context["imgSrc"] = $this->extensions['App\Twig\TextExtension']->getDefaultImage($this->extensions['Vich\UploaderBundle\Twig\Extension\UploaderExtension']->asset($context["video"], "videoFile"));
  160.             // line 54
  161.             echo "                        ";
  162.             if ((=== twig_compare((isset($context["imgSrc"]) || array_key_exists("imgSrc"$context) ? $context["imgSrc"] : (function () { throw new RuntimeError('Variable "imgSrc" does not exist.'54$this->source); })()), "/black.jpg"))) {
  163.                 echo " ";
  164.                 // line 55
  165.                 echo "                            ";
  166.                 $context["imgSrc"] = $this->extensions['App\Twig\YoutubeExtension']->youtubeThumbnail(twig_get_attribute($this->env$this->source$context["video"], "url", [], "any"falsefalsefalse55));
  167.                 echo " ";
  168.                 // line 56
  169.                 echo "                        ";
  170.             }
  171.             // line 57
  172.             echo "                        ";
  173.             $context["imgSrc"] = $this->extensions['Liip\ImagineBundle\Templating\FilterExtension']->filter((isset($context["imgSrc"]) || array_key_exists("imgSrc"$context) ? $context["imgSrc"] : (function () { throw new RuntimeError('Variable "imgSrc" does not exist.'57$this->source); })()), "video_une");
  174.             // line 58
  175.             echo "
  176.                             <div class=\"position-relative pt-0\">
  177.                                 <i class=\"i-video\"></i>
  178.                                 ";
  179.             // line 61
  180.             if (twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["video"], "etablissement", [], "any"falsefalsefalse61), "videoPlus", [], "any"falsefalsefalse61)) {
  181.                 // line 62
  182.                 echo "                                    <span class=\"badge-plus\"></span>
  183.                                 ";
  184.             }
  185.             // line 64
  186.             echo "                                <img class=\"w-100 img-video\" src='";
  187.             echo twig_escape_filter($this->env, (isset($context["imgSrc"]) || array_key_exists("imgSrc"$context) ? $context["imgSrc"] : (function () { throw new RuntimeError('Variable "imgSrc" does not exist.'64$this->source); })()), "html"nulltrue);
  188.             echo "'/>
  189.                             </div>
  190.                         <div class=\"content text-center\">
  191.                             <a href=\"";
  192.             // line 67
  193.             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.'67$this->source); })()), "buildFiche", [=> twig_get_attribute($this->env$this->source$context["video"], "etablissement", [], "any"falsefalsefalse67), => ["video-id" => twig_get_attribute($this->env$this->source$context["video"], "id", [], "any"falsefalsefalse67)]], "method"falsefalsefalse67), "html"nulltrue);
  194.             echo "\" data-trace-etab=\"";
  195.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["video"], "etablissement", [], "any"falsefalsefalse67), "id", [], "any"falsefalsefalse67), "html_attr");
  196.             echo "\" class=\"date\">";
  197.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["video"], "titre", [], "any"falsefalsefalse67), "html"nulltrue);
  198.             echo "</a>
  199.                             <p class=\"estab\">";
  200.             // line 68
  201.             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["video"], "etablissement", [], "any"falsefalsefalse68), "denomination", [], "any"falsefalsefalse68)), "truncate", [=> 50=> "…"=> true], "method"falsefalsefalse68), "html"nulltrue);
  202.             echo "
  203.                             <br/>
  204.                             <small>";
  205.             // line 70
  206.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["video"], "etablissement", [], "any"falsefalsefalse70), "ville", [], "any"falsefalsefalse70), "libelle", [], "any"falsefalsefalse70), "html"nulltrue);
  207.             echo " ";
  208.             if (twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["video"], "etablissement", [], "any"falsefalsefalse70), "ville", [], "any"falsefalsefalse70), "departement", [], "any"falsefalsefalse70)) {
  209.                 echo " (";
  210.                 echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["video"], "etablissement", [], "any"falsefalsefalse70), "ville", [], "any"falsefalsefalse70), "departement", [], "any"falsefalsefalse70), "id", [], "any"falsefalsefalse70), "html"nulltrue);
  211.                 echo ") ";
  212.             }
  213.             echo "</small>
  214.                             </p>
  215.                             <span class=\"see-more\">Découvrir</span>
  216.                         </div>
  217.                     </article>
  218.                     ";
  219.         }
  220.         $_parent $context['_parent'];
  221.         unset($context['_seq'], $context['_iterated'], $context['_key'], $context['video'], $context['_parent'], $context['loop']);
  222.         $context array_intersect_key($context$_parent) + $_parent;
  223.         // line 76
  224.         echo "
  225.                     <div class=\"navigation justify-content-center align-items-center mb-4\" style=\"width: 100%\">
  226.                         ";
  227.         // line 78
  228.         echo $this->extensions['Knp\Bundle\PaginatorBundle\Twig\Extension\PaginationExtension']->render($this->env, (isset($context["videos"]) || array_key_exists("videos"$context) ? $context["videos"] : (function () { throw new RuntimeError('Variable "videos" does not exist.'78$this->source); })()), "partial/pagination.html.twig");
  229.         echo "
  230.                     </div>
  231.                     
  232.                     </div>
  233.                     </div>
  234.                 </div>
  235.             </section>
  236.             <aside>
  237.                 ";
  238.         // line 86
  239.         $this->loadTemplate("actualite-etablissement/_includes/search-options.html.twig""video/list.html.twig"86)->display(twig_array_merge($context, ["type" => "aside"]));
  240.         // line 87
  241.         echo "            </aside>
  242.         </div>
  243.     </section>
  244. ";
  245.         
  246.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  247.         
  248.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  249.     }
  250.     // line 25
  251.     public function block_h1($context, array $blocks = [])
  252.     {
  253.         $macros $this->macros;
  254.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  255.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""h1"));
  256.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  257.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""h1"));
  258.         // line 26
  259.         if (array_key_exists("videos"$context)) {
  260.             // line 27
  261.             (((=== twig_compare(twig_get_attribute($this->env$this->source, (isset($context["videos"]) || array_key_exists("videos"$context) ? $context["videos"] : (function () { throw new RuntimeError('Variable "videos" does not exist.'27$this->source); })()), "getTotalItemCount", [], "any"falsefalsefalse27), 1))) ? (print (twig_escape_filter($this->env, (twig_get_attribute($this->env$this->source, (isset($context["videos"]) || array_key_exists("videos"$context) ? $context["videos"] : (function () { throw new RuntimeError('Variable "videos" does not exist.'27$this->source); })()), "getTotalItemCount", [], "any"falsefalsefalse27) . " vidéos"), "html"nulltrue))) : (print ("Vidéos")));
  262.         } else {
  263.             // line 29
  264.             echo "Vidéos";
  265.         }
  266.         // line 30
  267.         echo " de l'enseignement privé";
  268.         // line 31
  269.         if ((array_key_exists("lieu"$context) && (!== twig_compare(twig_get_attribute($this->env$this->source, (isset($context["lieu"]) || array_key_exists("lieu"$context) ? $context["lieu"] : (function () { throw new RuntimeError('Variable "lieu" does not exist.'31$this->source); })()), "libelle", [], "any"falsefalsefalse31), "DEFAULT")))) {
  270.             echo " - ";
  271.             echo (isset($context["lieuLibelle"]) || array_key_exists("lieuLibelle"$context) ? $context["lieuLibelle"] : (function () { throw new RuntimeError('Variable "lieuLibelle" does not exist.'31$this->source); })());
  272.         }
  273.         
  274.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  275.         
  276.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  277.     }
  278.     public function getTemplateName()
  279.     {
  280.         return "video/list.html.twig";
  281.     }
  282.     public function isTraitable()
  283.     {
  284.         return false;
  285.     }
  286.     public function getDebugInfo()
  287.     {
  288.         return array (  298 => 31,  296 => 30,  293 => 29,  290 => 27,  288 => 26,  278 => 25,  265 => 87,  263 => 86,  252 => 78,  248 => 76,  230 => 70,  225 => 68,  217 => 67,  210 => 64,  206 => 62,  204 => 61,  199 => 58,  196 => 57,  193 => 56,  189 => 55,  185 => 54,  183 => 53,  175 => 52,  172 => 51,  168 => 50,  164 => 48,  162 => 47,  157 => 44,  155 => 41,  149 => 37,  147 => 23,  143 => 34,  138 => 33,  136 => 25,  134 => 24,  132 => 23,  129 => 21,  127 => 18,  126 => 17,  122 => 15,  112 => 14,  99 => 11,  96 => 9,  92 => 7,  90 => 6,  80 => 5,  61 => 3,  38 => 1,);
  289.     }
  290.     public function getSourceContext()
  291.     {
  292.         return new Source("{% extends 'base.html.twig' %}
  293. {% block title %}{{ block('h1') }}{% endblock %}
  294. {%- block description -%}
  295. {%- if lieu is defined and lieu.libelle != 'DEFAULT' -%}
  296.     Découvrez les différentes vidéos de l'Annuaire Enseignement Privé pour la zone {% autoescape false %}{{lieu.libelle}}{% endautoescape %} 
  297. {%- else -%}
  298.     Découvrez les différentes vidéos de l'Annuaire Enseignement Privé
  299. {%- endif -%}
  300. {%- if videos.currentPageNumber > 1 %} - Page {{ videos.currentPageNumber -}}{%- endif -%}
  301. {%- endblock -%}
  302. {% block body %}
  303.     <section class=\"container page-video\">
  304.         <div id=\"breadcrumb\">
  305.             {% include 'video/_includes/breadcrumb.html.twig' with {
  306.                 'lieu' : lieu,
  307.             }
  308.                 only %}
  309.         </div>
  310.         <div class=\"title mb-4\">
  311.             {%- apply spaceless -%}
  312.             <h1>
  313.             {%- block h1 -%}
  314.             {%- if videos is defined -%}
  315.                 {{- videos.getTotalItemCount > 1 ? videos.getTotalItemCount ~ ' vidéos' : 'Vidéos' -}}
  316.             {%- else -%}
  317.             Vidéos
  318.             {%- endif %} de l'enseignement privé
  319.             {%- if lieu is defined and lieu.libelle != 'DEFAULT' %} - {% autoescape false %}{{lieuLibelle}}{% endautoescape %}{%- endif -%}
  320.             {%- endblock -%}
  321.             {%- if videos.currentPageNumber > 1 %} - Page {{ videos.currentPageNumber -}}{%- endif -%}
  322.             </h1>
  323.             <div class=\"triangle-defaut\"></div>
  324.             {%- endapply -%}
  325.         </div>
  326.         <div class=\"wrap\">
  327.             <section>
  328.                 <div class=\"video-list-tri\">
  329.                     {{ render(controller(
  330.                         'App\\\\Controller\\\\VideoController::blocVideosALaUne',
  331.                         {type:'liste'}
  332.                     )) }}
  333.                     <div>
  334.                         <div class=\"w-100 d-md-block d-lg-none pb-4\">
  335.                             {% include 'actualite-etablissement/_includes/search-options.html.twig' with { type: 'mobile'} %}
  336.                         </div>
  337.                         <div>
  338.                     {% for video in videos %}
  339.                     <article class=\"p-0 {% if video.etablissement.videoPlus %}bckgrnd-plus{% else %}bckgrnd-plus{% endif%} card-video\">
  340.                         {% set imgSrc = (vich_uploader_asset(video, 'videoFile') | default_image) %}
  341.                         {% if imgSrc == '/black.jpg' %} {# si pas de thumb chargé par le client #}
  342.                             {% set imgSrc = youtube_thumbnail(video.url) %} {# on génère une vignette depuis la vidéo #}
  343.                         {% endif %}
  344.                         {% set imgSrc = imgSrc | imagine_filter('video_une') %}
  345.                             <div class=\"position-relative pt-0\">
  346.                                 <i class=\"i-video\"></i>
  347.                                 {% if video.etablissement.videoPlus %}
  348.                                     <span class=\"badge-plus\"></span>
  349.                                 {% endif %}
  350.                                 <img class=\"w-100 img-video\" src='{{imgSrc}}'/>
  351.                             </div>
  352.                         <div class=\"content text-center\">
  353.                             <a href=\"{{ pathBuilder.buildFiche(video.etablissement,{'video-id': video.id}) }}\" data-trace-etab=\"{{ video.etablissement.id | e('html_attr') }}\" class=\"date\">{{video.titre }}</a>
  354.                             <p class=\"estab\">{{ video.etablissement.denomination | u.truncate(50, '…', true)}}
  355.                             <br/>
  356.                             <small>{{ video.etablissement.ville.libelle }} {% if video.etablissement.ville.departement %} ({{ video.etablissement.ville.departement.id }}) {% endif %}</small>
  357.                             </p>
  358.                             <span class=\"see-more\">Découvrir</span>
  359.                         </div>
  360.                     </article>
  361.                     {% endfor %}
  362.                     <div class=\"navigation justify-content-center align-items-center mb-4\" style=\"width: 100%\">
  363.                         {{ knp_pagination_render(videos, 'partial/pagination.html.twig') }}
  364.                     </div>
  365.                     
  366.                     </div>
  367.                     </div>
  368.                 </div>
  369.             </section>
  370.             <aside>
  371.                 {% include 'actualite-etablissement/_includes/search-options.html.twig' with { type: 'aside'} %}
  372.             </aside>
  373.         </div>
  374.     </section>
  375. {% endblock %}
  376. ""video/list.html.twig""/app/templates/video/list.html.twig");
  377.     }
  378. }