var/cache/dev/twig/12/1298f5b5c98386fc61e5beebe90b312ce682364d4a4c3d40e178a5e9965df427.php line 72

Open in your IDE?
  1. <?php
  2. use Twig\Environment;
  3. use Twig\Error\LoaderError;
  4. use Twig\Error\RuntimeError;
  5. use Twig\Extension\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. /* partial/video-une.html.twig */
  14. class __TwigTemplate_9a93f0f8c960ec83fa615f04932b703ec7724b3fdda89873d16b048b1d6d520b 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""partial/video-une.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""partial/video-une.html.twig"));
  33.         // line 1
  34.         if ((array_key_exists("videos"$context) && (<= twig_compare(twig_length_filter($this->env, (isset($context["videos"]) || array_key_exists("videos"$context) ? $context["videos"] : (function () { throw new RuntimeError('Variable "videos" does not exist.'1$this->source); })())), 5)))) {
  35.             // line 2
  36.             echo "<div class=\"block-video-une\">
  37. \t";
  38.             // line 3
  39.             if ((=== twig_compare((isset($context["type"]) || array_key_exists("type"$context) ? $context["type"] : (function () { throw new RuntimeError('Variable "type" does not exist.'3$this->source); })()), "home"))) {
  40.                 // line 4
  41.                 echo "\t\t";
  42.                 // line 5
  43.                 echo "\t";
  44.             } else {
  45.                 // line 6
  46.                 echo "\t\t<h2>À la une</h2>
  47. \t";
  48.             }
  49.             // line 8
  50.             echo "\t<div class=\"cycle-video\">
  51. \t\t<span id=\"video-next\" class=\"next-slide\"></span>
  52. \t\t<span id=\"video-prev\" class=\"prev-slide\"></span>
  53. \t\t";
  54.             // line 11
  55.             $context['_parent'] = $context;
  56.             $context['_seq'] = twig_ensure_traversable((isset($context["videos"]) || array_key_exists("videos"$context) ? $context["videos"] : (function () { throw new RuntimeError('Variable "videos" does not exist.'11$this->source); })()));
  57.             foreach ($context['_seq'] as $context["_key"] => $context["video"]) {
  58.                 // line 12
  59.                 echo "\t\t\t<div class=\"card-video home\">
  60. \t\t\t\t<div class=\"position-relative\">
  61. \t\t\t\t\t<a href=\"";
  62.                 // line 14
  63.                 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.'14$this->source); })()), "buildFiche", [=> twig_get_attribute($this->env$this->source$context["video"], "etablissement", [], "any"falsefalsefalse14), => ["video-id" => twig_get_attribute($this->env$this->source$context["video"], "id", [], "any"falsefalsefalse14)]], "method"falsefalsefalse14), "html"nulltrue);
  64.                 echo "\" data-trace-etab=\"";
  65.                 echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["video"], "etablissement", [], "any"falsefalsefalse14), "id", [], "any"falsefalsefalse14), "html_attr");
  66.                 echo "\" class=\"\">
  67. \t\t\t\t\t\t<i class=\"i-video-small\"></i>
  68. \t\t\t\t\t\t<span class=\"badge-plus\"></span>
  69. \t\t\t\t\t\t<img src='";
  70.                 // line 17
  71.                 echo twig_escape_filter($this->env$this->extensions['Liip\ImagineBundle\Templating\FilterExtension']->filter($this->extensions['App\Twig\TextExtension']->getDefaultImage($this->extensions['Vich\UploaderBundle\Twig\Extension\UploaderExtension']->asset($context["video"], "videoFile")), "diapo_small"), "html"nulltrue);
  72.                 echo "' class=\"\"/>
  73. \t\t\t\t\t</a>
  74. \t\t\t\t</div>
  75. \t\t\t</div>
  76. \t\t";
  77.             }
  78.             $_parent $context['_parent'];
  79.             unset($context['_seq'], $context['_iterated'], $context['_key'], $context['video'], $context['_parent'], $context['loop']);
  80.             $context array_intersect_key($context$_parent) + $_parent;
  81.             // line 23
  82.             echo "\t</div>
  83. </div>
  84. ";
  85.         }
  86.         
  87.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  88.         
  89.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  90.     }
  91.     public function getTemplateName()
  92.     {
  93.         return "partial/video-une.html.twig";
  94.     }
  95.     public function isTraitable()
  96.     {
  97.         return false;
  98.     }
  99.     public function getDebugInfo()
  100.     {
  101.         return array (  92 => 23,  80 => 17,  72 => 14,  68 => 12,  64 => 11,  59 => 8,  55 => 6,  52 => 5,  50 => 4,  48 => 3,  45 => 2,  43 => 1,);
  102.     }
  103.     public function getSourceContext()
  104.     {
  105.         return new Source("{% if videos is defined and videos|length >= 5 %}
  106. <div class=\"block-video-une\">
  107. \t{% if type == 'home' %}
  108. \t\t{#<h2>VIDÉOS</h2>#}
  109. \t{% else %}
  110. \t\t<h2>À la une</h2>
  111. \t{% endif %}
  112. \t<div class=\"cycle-video\">
  113. \t\t<span id=\"video-next\" class=\"next-slide\"></span>
  114. \t\t<span id=\"video-prev\" class=\"prev-slide\"></span>
  115. \t\t{% for video in videos  %}
  116. \t\t\t<div class=\"card-video home\">
  117. \t\t\t\t<div class=\"position-relative\">
  118. \t\t\t\t\t<a href=\"{{ pathBuilder.buildFiche(video.etablissement,{'video-id': video.id}) }}\" data-trace-etab=\"{{ video.etablissement.id | e('html_attr') }}\" class=\"\">
  119. \t\t\t\t\t\t<i class=\"i-video-small\"></i>
  120. \t\t\t\t\t\t<span class=\"badge-plus\"></span>
  121. \t\t\t\t\t\t<img src='{{ (vich_uploader_asset(video, 'videoFile') | default_image ) | imagine_filter('diapo_small')}}' class=\"\"/>
  122. \t\t\t\t\t</a>
  123. \t\t\t\t</div>
  124. \t\t\t</div>
  125. \t\t{% endfor %}
  126. \t</div>
  127. </div>
  128. {% endif %}
  129. ""partial/video-une.html.twig""/app/templates/partial/video-une.html.twig");
  130.     }
  131. }