var/cache/dev/twig/ed/ed19cdac13c40c72dcf9d171afdcd640d68a665345fe1df267dc144e6ffecd4d.php line 64

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. /* Default/article.html.twig */
  14. class __TwigTemplate_fda73fe560e98eed2992f20f43062561d2b03fb5c879152c052c702e8dec6970 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.             'titlebox' => [$this'block_titlebox'],
  24.             'title' => [$this'block_title'],
  25.             'content' => [$this'block_content'],
  26.         ];
  27.     }
  28.     protected function doGetParent(array $context)
  29.     {
  30.         // line 8
  31.         return "Default/base.html.twig";
  32.     }
  33.     protected function doDisplay(array $context, array $blocks = [])
  34.     {
  35.         $macros $this->macros;
  36.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  37.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""Default/article.html.twig"));
  38.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  39.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""Default/article.html.twig"));
  40.         // line 1
  41.         $context["title"] = twig_get_attribute($this->env$this->source, (isset($context["article"]) || array_key_exists("article"$context) ? $context["article"] : (function () { throw new RuntimeError('Variable "article" does not exist.'1$this->source); })()), "title", [], "any"falsefalsefalse1);
  42.         // line 2
  43.         $context["desc"] = twig_get_attribute($this->env$this->source, (isset($context["article"]) || array_key_exists("article"$context) ? $context["article"] : (function () { throw new RuntimeError('Variable "article" does not exist.'2$this->source); })()), "description", [], "any"falsefalsefalse2);
  44.         // line 3
  45.         $context["menu"] = "articles";
  46.         // line 4
  47.         if (twig_get_attribute($this->env$this->source, (isset($context["article"]) || array_key_exists("article"$context) ? $context["article"] : (function () { throw new RuntimeError('Variable "article" does not exist.'4$this->source); })()), "banner", [], "any"falsefalsefalse4)) {
  48.             // line 5
  49.             $context["thumbnail"] = twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["article"]) || array_key_exists("article"$context) ? $context["article"] : (function () { throw new RuntimeError('Variable "article" does not exist.'5$this->source); })()), "banner", [], "any"falsefalsefalse5), "thumbnail", [], "any"falsefalsefalse5);
  50.             // line 6
  51.             $context["banner"] = $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl(twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["article"]) || array_key_exists("article"$context) ? $context["article"] : (function () { throw new RuntimeError('Variable "article" does not exist.'6$this->source); })()), "banner", [], "any"falsefalsefalse6), "file", [], "any"falsefalsefalse6));
  52.         }
  53.         // line 8
  54.         $this->parent $this->loadTemplate("Default/base.html.twig""Default/article.html.twig"8);
  55.         $this->parent->display($contextarray_merge($this->blocks$blocks));
  56.         
  57.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  58.         
  59.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  60.     }
  61.     // line 10
  62.     public function block_titlebox($context, array $blocks = [])
  63.     {
  64.         $macros $this->macros;
  65.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  66.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""titlebox"));
  67.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  68.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""titlebox"));
  69.         // line 11
  70.         echo "<div class='relative white ";
  71.         echo twig_escape_filter($this->envcall_user_func_array($this->env->getFunction('desktop')->getCallable(), ["vt-40-in"]), "html"nulltrue);
  72.         echo " ";
  73.         echo twig_escape_filter($this->envcall_user_func_array($this->env->getFunction('mobile')->getCallable(), [""]), "html"nulltrue);
  74.         echo "'>
  75.     ";
  76.         // line 12
  77.         $this->displayBlock('title'$context$blocks);
  78.         // line 15
  79.         echo "</div>
  80. ";
  81.         
  82.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  83.         
  84.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  85.     }
  86.     // line 12
  87.     public function block_title($context, array $blocks = [])
  88.     {
  89.         $macros $this->macros;
  90.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  91.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""title"));
  92.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  93.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""title"));
  94.         // line 13
  95.         echo "    <h1 class='h3 upper lh-1 text-center'>";
  96.         ((array_key_exists("title"$context)) ? (print (twig_escape_filter($this->env, (isset($context["title"]) || array_key_exists("title"$context) ? $context["title"] : (function () { throw new RuntimeError('Variable "title" does not exist.'13$this->source); })()), "html"nulltrue))) : (print ("")));
  97.         echo "</h1>
  98.     ";
  99.         
  100.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  101.         
  102.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  103.     }
  104.     // line 18
  105.     public function block_content($context, array $blocks = [])
  106.     {
  107.         $macros $this->macros;
  108.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  109.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""content"));
  110.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  111.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""content"));
  112.         // line 19
  113.         echo "<div class='";
  114.         echo twig_escape_filter($this->envcall_user_func_array($this->env->getFunction('desktop')->getCallable(), ["gpadding vt-40-in"]), "html"nulltrue);
  115.         echo " ";
  116.         echo twig_escape_filter($this->envcall_user_func_array($this->env->getFunction('mobile')->getCallable(), ["gpadding vt-30-in"]), "html"nulltrue);
  117.         echo " '>
  118.     <div class='";
  119.         // line 20
  120.         echo twig_escape_filter($this->envcall_user_func_array($this->env->getFunction('desktop')->getCallable(), ["gpadding flex row center top"]), "html"nulltrue);
  121.         echo " ";
  122.         echo twig_escape_filter($this->envcall_user_func_array($this->env->getFunction('mobile')->getCallable(), [""]), "html"nulltrue);
  123.         echo "'>
  124.         <div id='article' class='w100 ";
  125.         // line 21
  126.         echo twig_escape_filter($this->envcall_user_func_array($this->env->getFunction('desktop')->getCallable(), [""]), "html"nulltrue);
  127.         echo " ";
  128.         echo twig_escape_filter($this->envcall_user_func_array($this->env->getFunction('mobile')->getCallable(), ["vt-20-in"]), "html"nulltrue);
  129.         echo "'>
  130.             <figure class=\"w100 ";
  131.         // line 22
  132.         echo twig_escape_filter($this->envcall_user_func_array($this->env->getFunction('desktop')->getCallable(), [""]), "html"nulltrue);
  133.         echo "\">
  134.                 <img src=\"";
  135.         // line 23
  136.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl(twig_get_attribute($this->env$this->source, (isset($context["article"]) || array_key_exists("article"$context) ? $context["article"] : (function () { throw new RuntimeError('Variable "article" does not exist.'23$this->source); })()), "banner", [], "any"falsefalsefalse23)), "html"nulltrue);
  137.         echo "\" class=\"block w100\"/>
  138.             </figure>
  139.             <article  class='p article black ";
  140.         // line 25
  141.         echo twig_escape_filter($this->envcall_user_func_array($this->env->getFunction('desktop')->getCallable(), ["top-30"]), "html"nulltrue);
  142.         echo "'>
  143.             ";
  144.         // line 26
  145.         echo twig_get_attribute($this->env$this->source, (isset($context["article"]) || array_key_exists("article"$context) ? $context["article"] : (function () { throw new RuntimeError('Variable "article" does not exist.'26$this->source); })()), "content", [], "any"falsefalsefalse26);
  146.         echo "
  147.             </article>
  148.             ";
  149.         // line 29
  150.         if ((twig_get_attribute($this->env$this->source, (isset($context["article"]) || array_key_exists("article"$context) ? $context["article"] : (function () { throw new RuntimeError('Variable "article" does not exist.'29$this->source); })()), "biblio", [], "any"falsefalsefalse29) && twig_length_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["article"]) || array_key_exists("article"$context) ? $context["article"] : (function () { throw new RuntimeError('Variable "article" does not exist.'29$this->source); })()), "biblio", [], "any"falsefalsefalse29), "files", [], "any"falsefalsefalse29)))) {
  151.             // line 30
  152.             echo "            <h2 class='h3 adapt top-40 adapt'>Document(s) joint(s)</h2>
  153.             <div class='flex row space wrap ";
  154.             // line 31
  155.             echo twig_escape_filter($this->envcall_user_func_array($this->env->getFunction('desktop')->getCallable(), ["top-40"]), "html"nulltrue);
  156.             echo twig_escape_filter($this->envcall_user_func_array($this->env->getFunction('mobile')->getCallable(), ["top-20"]), "html"nulltrue);
  157.             echo "'>
  158.                 ";
  159.             // line 32
  160.             $context['_parent'] = $context;
  161.             $context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["article"]) || array_key_exists("article"$context) ? $context["article"] : (function () { throw new RuntimeError('Variable "article" does not exist.'32$this->source); })()), "biblio", [], "any"falsefalsefalse32), "files", [], "any"falsefalsefalse32));
  162.             foreach ($context['_seq'] as $context["_key"] => $context["o"]) {
  163.                 // line 33
  164.                 echo "                <div class='doc flex row top ";
  165.                 echo twig_escape_filter($this->envcall_user_func_array($this->env->getFunction('desktop')->getCallable(), ["half-20"]), "html"nulltrue);
  166.                 echo " relative bg-black bottom-20 hz-25-in vt-20-in hoverflow ";
  167.                 echo twig_escape_filter($this->envcall_user_func_array($this->env->getFunction('desktop')->getCallable(), [""]), "html"nulltrue);
  168.                 echo " ";
  169.                 echo twig_escape_filter($this->envcall_user_func_array($this->env->getFunction('mobile')->getCallable(), [""]), "html"nulltrue);
  170.                 echo "'>
  171.                     ";
  172.                 // line 34
  173.                 $context["doc"] = $context["o"];
  174.                 // line 35
  175.                 echo "                    <span class=\"\">
  176.                         <i class=\"fa fa-file gray fa-3x\"></i>
  177.                     </span>
  178.                     <div class='text-left flex col space relative left-20 right-40-in'>
  179.                         <h3 class='h6 medium white p text-left nomargin lh-1x'>";
  180.                 // line 39
  181.                 echo twig_escape_filter($this->env, ((twig_get_attribute($this->env$this->source, (isset($context["doc"]) || array_key_exists("doc"$context) ? $context["doc"] : (function () { throw new RuntimeError('Variable "doc" does not exist.'39$this->source); })()), "name", [], "any"falsefalsefalse39)) ? (twig_get_attribute($this->env$this->source, (isset($context["doc"]) || array_key_exists("doc"$context) ? $context["doc"] : (function () { throw new RuntimeError('Variable "doc" does not exist.'39$this->source); })()), "name", [], "any"falsefalsefalse39)) : (twig_get_attribute($this->env$this->source, (isset($context["doc"]) || array_key_exists("doc"$context) ? $context["doc"] : (function () { throw new RuntimeError('Variable "doc" does not exist.'39$this->source); })()), "source", [], "any"falsefalsefalse39))), "html"nulltrue);
  182.                 echo "</h3>
  183.                         <div class=\"flex col middle space top-10\">
  184.                             <div class='gray text-left p-alt'>
  185.                                 <span class=''>";
  186.                 // line 42
  187.                 echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["doc"]) || array_key_exists("doc"$context) ? $context["doc"] : (function () { throw new RuntimeError('Variable "doc" does not exist.'42$this->source); })()), "formatSize", [], "any"falsefalsefalse42), "html"nulltrue);
  188.                 echo "</span> |
  189.                                 <span class=''>";
  190.                 // line 43
  191.                 echo twig_escape_filter($this->envtwig_number_format_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["doc"]) || array_key_exists("doc"$context) ? $context["doc"] : (function () { throw new RuntimeError('Variable "doc" does not exist.'43$this->source); })()), "reading", [], "any"falsefalsefalse43)), "html"nulltrue);
  192.                 echo " lect.</span> |
  193.                                 <span>";
  194.                 // line 44
  195.                 echo twig_escape_filter($this->envtwig_number_format_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["doc"]) || array_key_exists("doc"$context) ? $context["doc"] : (function () { throw new RuntimeError('Variable "doc" does not exist.'44$this->source); })()), "downloads", [], "any"falsefalsefalse44)), "html"nulltrue);
  196.                 echo " téléch.</span>
  197.                             </div>
  198.                             <div class='flex row middle p upper medium top-20 nowrap'>
  199.                                 <i class=\"w100 top-2-in bg-gray right-40\"></i>
  200.                                 <span class='os-read white' data-url=\"";
  201.                 // line 48
  202.                 echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("file-read", ["id" => twig_get_attribute($this->env$this->source, (isset($context["doc"]) || array_key_exists("doc"$context) ? $context["doc"] : (function () { throw new RuntimeError('Variable "doc" does not exist.'48$this->source); })()), "id", [], "any"falsefalsefalse48), "name" => ((twig_get_attribute($this->env$this->source, (isset($context["doc"]) || array_key_exists("doc"$context) ? $context["doc"] : (function () { throw new RuntimeError('Variable "doc" does not exist.'48$this->source); })()), "name", [], "any"falsefalsefalse48)) ? (call_user_func_array($this->env->getFilter('slug')->getCallable(), [twig_get_attribute($this->env$this->source, (isset($context["doc"]) || array_key_exists("doc"$context) ? $context["doc"] : (function () { throw new RuntimeError('Variable "doc" does not exist.'48$this->source); })()), "name", [], "any"falsefalsefalse48)])) : (call_user_func_array($this->env->getFilter('slug')->getCallable(), [twig_get_attribute($this->env$this->source, (isset($context["doc"]) || array_key_exists("doc"$context) ? $context["doc"] : (function () { throw new RuntimeError('Variable "doc" does not exist.'48$this->source); })()), "source", [], "any"falsefalsefalse48)])))]), "html"nulltrue);
  203.                 echo "\">Lire</span>
  204.                                 <a class='left-30 warning' href=\"";
  205.                 // line 49
  206.                 echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("file-download", ["id" => twig_get_attribute($this->env$this->source, (isset($context["doc"]) || array_key_exists("doc"$context) ? $context["doc"] : (function () { throw new RuntimeError('Variable "doc" does not exist.'49$this->source); })()), "id", [], "any"falsefalsefalse49), "name" => ((twig_get_attribute($this->env$this->source, (isset($context["doc"]) || array_key_exists("doc"$context) ? $context["doc"] : (function () { throw new RuntimeError('Variable "doc" does not exist.'49$this->source); })()), "name", [], "any"falsefalsefalse49)) ? (call_user_func_array($this->env->getFilter('slug')->getCallable(), [twig_get_attribute($this->env$this->source, (isset($context["doc"]) || array_key_exists("doc"$context) ? $context["doc"] : (function () { throw new RuntimeError('Variable "doc" does not exist.'49$this->source); })()), "name", [], "any"falsefalsefalse49)])) : (call_user_func_array($this->env->getFilter('slug')->getCallable(), [twig_get_attribute($this->env$this->source, (isset($context["doc"]) || array_key_exists("doc"$context) ? $context["doc"] : (function () { throw new RuntimeError('Variable "doc" does not exist.'49$this->source); })()), "source", [], "any"falsefalsefalse49)])))]), "html"nulltrue);
  207.                 echo "\" target='_blank' download>Télécharger</a>
  208.                             </div>
  209.                         </div>
  210.                     </div>
  211.                     <i class=\"triangle gradient-bannerm bg-white\"></i>
  212.                 </div>
  213.                 ";
  214.             }
  215.             $_parent $context['_parent'];
  216.             unset($context['_seq'], $context['_iterated'], $context['_key'], $context['o'], $context['_parent'], $context['loop']);
  217.             $context array_intersect_key($context$_parent) + $_parent;
  218.             // line 56
  219.             echo "            </div>
  220.             ";
  221.         }
  222.         // line 58
  223.         echo "
  224.             ";
  225.         // line 59
  226.         if (twig_get_attribute($this->env$this->source, (isset($context["article"]) || array_key_exists("article"$context) ? $context["article"] : (function () { throw new RuntimeError('Variable "article" does not exist.'59$this->source); })()), "youtube", [], "any"falsefalsefalse59)) {
  227.             // line 60
  228.             echo "            <h2 class='h3 adapt top-40 adapt'>Suivez la vidéo</h2>
  229.             <div class='bg-gray w100'>
  230.                 <iframe class='block block-center w100 youtube-frame' src='";
  231.             // line 62
  232.             echo twig_escape_filter($this->envcall_user_func_array($this->env->getFilter('youtubeEmbed')->getCallable(), [call_user_func_array($this->env->getFilter('youtubeId')->getCallable(), [twig_get_attribute($this->env$this->source, (isset($context["article"]) || array_key_exists("article"$context) ? $context["article"] : (function () { throw new RuntimeError('Variable "article" does not exist.'62$this->source); })()), "youtube", [], "any"falsefalsefalse62)])]), "html"nulltrue);
  233.             echo "' frameborder='0' allow='accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture' allowfullscreen></iframe>
  234.             </div>
  235.             ";
  236.         }
  237.         // line 65
  238.         echo "
  239.             ";
  240.         // line 66
  241.         if ((twig_get_attribute($this->env$this->source, (isset($context["article"]) || array_key_exists("article"$context) ? $context["article"] : (function () { throw new RuntimeError('Variable "article" does not exist.'66$this->source); })()), "album", [], "any"falsefalsefalse66) && twig_length_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["article"]) || array_key_exists("article"$context) ? $context["article"] : (function () { throw new RuntimeError('Variable "article" does not exist.'66$this->source); })()), "album", [], "any"falsefalsefalse66), "pictures", [], "any"falsefalsefalse66)))) {
  242.             // line 67
  243.             echo "            <h2 class='h3 top-40'>";
  244.             ((twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["article"]) || array_key_exists("article"$context) ? $context["article"] : (function () { throw new RuntimeError('Variable "article" does not exist.'67$this->source); })()), "album", [], "any"falsefalsefalse67), "title", [], "any"falsefalsefalse67)) ? (print (twig_escape_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["article"]) || array_key_exists("article"$context) ? $context["article"] : (function () { throw new RuntimeError('Variable "article" does not exist.'67$this->source); })()), "album", [], "any"falsefalsefalse67), "title", [], "any"falsefalsefalse67), "html"nulltrue))) : (print ("Album photos")));
  245.             echo "</h2>
  246.             <figure class=\"bg-white slide-box mrect slide-container fill nohover relative top-40\" tabindex=\"1\">
  247.                 <div class=\"fill slides radius-10 adapt\">
  248.                 ";
  249.             // line 70
  250.             $context['_parent'] = $context;
  251.             $context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["article"]) || array_key_exists("article"$context) ? $context["article"] : (function () { throw new RuntimeError('Variable "article" does not exist.'70$this->source); })()), "album", [], "any"falsefalsefalse70), "pictures", [], "any"falsefalsefalse70));
  252.             $context['loop'] = [
  253.               'parent' => $context['_parent'],
  254.               'index0' => 0,
  255.               'index'  => 1,
  256.               'first'  => true,
  257.             ];
  258.             if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof \Countable)) {
  259.                 $length count($context['_seq']);
  260.                 $context['loop']['revindex0'] = $length 1;
  261.                 $context['loop']['revindex'] = $length;
  262.                 $context['loop']['length'] = $length;
  263.                 $context['loop']['last'] = === $length;
  264.             }
  265.             foreach ($context['_seq'] as $context["_key"] => $context["o"]) {
  266.                 // line 71
  267.                 echo "                <div class='relative slide ";
  268.                 echo (((=== twig_compare(twig_get_attribute($this->env$this->source$context["loop"], "index", [], "any"falsefalsefalse71), 1))) ? ("active") : (""));
  269.                 echo "'>
  270.                     <img src='";
  271.                 // line 72
  272.                 echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl($context["o"]), "html"nulltrue);
  273.                 echo "' class='contain'/>
  274.                 </div>
  275.                 ";
  276.                 ++$context['loop']['index0'];
  277.                 ++$context['loop']['index'];
  278.                 $context['loop']['first'] = false;
  279.                 if (isset($context['loop']['length'])) {
  280.                     --$context['loop']['revindex0'];
  281.                     --$context['loop']['revindex'];
  282.                     $context['loop']['last'] = === $context['loop']['revindex0'];
  283.                 }
  284.             }
  285.             $_parent $context['_parent'];
  286.             unset($context['_seq'], $context['_iterated'], $context['_key'], $context['o'], $context['_parent'], $context['loop']);
  287.             $context array_intersect_key($context$_parent) + $_parent;
  288.             // line 75
  289.             echo "                </div>
  290.                 <span class=\"slide-prev radius-50 h100 padding-30 absolute top left pointer\" data-target=\"#article .slide-box\">
  291.                     <span class=\"fill flex col middle\"><i class=\"flex col middle fa fa-chevron-left h1 black\"></i></span>
  292.                 </span>
  293.                 <span class=\"slide-next radius-50 h100 padding-30 absolute top right pointer\"  data-target=\"#article .slide-box\">
  294.                     <span class=\"fill flex col middle\"><i class=\"flex col middle fa fa-chevron-right h1 black\"></i></span>
  295.                 </span>
  296.             </figure>
  297.             ";
  298.         }
  299.         // line 84
  300.         echo "
  301.             ";
  302.         // line 85
  303.         if (twig_get_attribute($this->env$this->source, (isset($context["article"]) || array_key_exists("article"$context) ? $context["article"] : (function () { throw new RuntimeError('Variable "article" does not exist.'85$this->source); })()), "flickr", [], "any"falsefalsefalse85)) {
  304.             // line 86
  305.             echo "            <h2 class='h3 adapt top-40 adapt'>Album photos</h2>
  306.             <div class='bg-gray w100'>
  307.                 <iframe class='block-center w100 flickr-frame' src='";
  308.             // line 88
  309.             echo twig_escape_filter($this->envtwig_replace_filter(twig_get_attribute($this->env$this->source, (isset($context["article"]) || array_key_exists("article"$context) ? $context["article"] : (function () { throw new RuntimeError('Variable "article" does not exist.'88$this->source); })()), "flickr", [], "any"falsefalsefalse88), ["albums" => "sets"]), "html"nulltrue);
  310.             echo "/player' scrolling='no' align='middle' frameborder='0'></iframe>
  311.             </div>
  312.             ";
  313.         }
  314.         // line 91
  315.         echo "        </div>
  316. \t</div>
  317. </div>
  318. ";
  319.         
  320.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  321.         
  322.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  323.     }
  324.     public function getTemplateName()
  325.     {
  326.         return "Default/article.html.twig";
  327.     }
  328.     public function isTraitable()
  329.     {
  330.         return false;
  331.     }
  332.     public function getDebugInfo()
  333.     {
  334.         return array (  340 => 91,  334 => 88,  330 => 86,  328 => 85,  325 => 84,  314 => 75,  297 => 72,  292 => 71,  275 => 70,  268 => 67,  266 => 66,  263 => 65,  257 => 62,  253 => 60,  251 => 59,  248 => 58,  244 => 56,  231 => 49,  227 => 48,  220 => 44,  216 => 43,  212 => 42,  206 => 39,  200 => 35,  198 => 34,  189 => 33,  185 => 32,  180 => 31,  177 => 30,  175 => 29,  169 => 26,  165 => 25,  160 => 23,  156 => 22,  150 => 21,  144 => 20,  137 => 19,  127 => 18,  114 => 13,  104 => 12,  93 => 15,  91 => 12,  84 => 11,  74 => 10,  63 => 8,  60 => 6,  58 => 5,  56 => 4,  54 => 3,  52 => 2,  50 => 1,  37 => 8,);
  335.     }
  336.     public function getSourceContext()
  337.     {
  338.         return new Source("{% set title = article.title %}
  339. {% set desc = article.description %}
  340. {% set menu = 'articles' %}
  341. {% if article.banner %}
  342. {% set thumbnail = article.banner.thumbnail %}
  343. {% set banner = asset(article.banner.file) %}
  344. {% endif %}
  345. {% extends 'Default/base.html.twig' %}
  346. {% block titlebox %}
  347. <div class='relative white {{desktop(\"vt-40-in\")}} {{mobile(\"\")}}'>
  348.     {% block title %}
  349.     <h1 class='h3 upper lh-1 text-center'>{{title is defined ? title}}</h1>
  350.     {% endblock title %}
  351. </div>
  352. {% endblock titlebox %}
  353. {% block content %}
  354. <div class='{{desktop(\"gpadding vt-40-in\")}} {{mobile(\"gpadding vt-30-in\")}} '>
  355.     <div class='{{desktop(\"gpadding flex row center top\")}} {{mobile(\"\")}}'>
  356.         <div id='article' class='w100 {{desktop(\"\")}} {{mobile(\"vt-20-in\")}}'>
  357.             <figure class=\"w100 {{desktop('')}}\">
  358.                 <img src=\"{{asset(article.banner)}}\" class=\"block w100\"/>
  359.             </figure>
  360.             <article  class='p article black {{desktop(\"top-30\")}}'>
  361.             {{ article.content|raw }}
  362.             </article>
  363.             {% if article.biblio and article.biblio.files|length %}
  364.             <h2 class='h3 adapt top-40 adapt'>Document(s) joint(s)</h2>
  365.             <div class='flex row space wrap {{desktop(\"top-40\")}}{{mobile(\"top-20\")}}'>
  366.                 {% for o in article.biblio.files %}
  367.                 <div class='doc flex row top {{desktop(\"half-20\")}} relative bg-black bottom-20 hz-25-in vt-20-in hoverflow {{desktop(\"\")}} {{mobile(\"\")}}'>
  368.                     {% set doc = o %}
  369.                     <span class=\"\">
  370.                         <i class=\"fa fa-file gray fa-3x\"></i>
  371.                     </span>
  372.                     <div class='text-left flex col space relative left-20 right-40-in'>
  373.                         <h3 class='h6 medium white p text-left nomargin lh-1x'>{{doc.name ? doc.name : doc.source}}</h3>
  374.                         <div class=\"flex col middle space top-10\">
  375.                             <div class='gray text-left p-alt'>
  376.                                 <span class=''>{{doc.formatSize}}</span> |
  377.                                 <span class=''>{{doc.reading|number_format}} lect.</span> |
  378.                                 <span>{{doc.downloads|number_format}} téléch.</span>
  379.                             </div>
  380.                             <div class='flex row middle p upper medium top-20 nowrap'>
  381.                                 <i class=\"w100 top-2-in bg-gray right-40\"></i>
  382.                                 <span class='os-read white' data-url=\"{{url('file-read',{id:doc.id,name:doc.name ? doc.name|slug : doc.source|slug})}}\">Lire</span>
  383.                                 <a class='left-30 warning' href=\"{{path('file-download',{id:doc.id,name:doc.name ? doc.name|slug : doc.source|slug})}}\" target='_blank' download>Télécharger</a>
  384.                             </div>
  385.                         </div>
  386.                     </div>
  387.                     <i class=\"triangle gradient-bannerm bg-white\"></i>
  388.                 </div>
  389.                 {% endfor %}
  390.             </div>
  391.             {% endif %}
  392.             {% if article.youtube %}
  393.             <h2 class='h3 adapt top-40 adapt'>Suivez la vidéo</h2>
  394.             <div class='bg-gray w100'>
  395.                 <iframe class='block block-center w100 youtube-frame' src='{{article.youtube|youtubeId|youtubeEmbed}}' frameborder='0' allow='accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture' allowfullscreen></iframe>
  396.             </div>
  397.             {% endif %}
  398.             {% if article.album and article.album.pictures|length %}
  399.             <h2 class='h3 top-40'>{{article.album.title ? article.album.title : \"Album photos\"}}</h2>
  400.             <figure class=\"bg-white slide-box mrect slide-container fill nohover relative top-40\" tabindex=\"1\">
  401.                 <div class=\"fill slides radius-10 adapt\">
  402.                 {% for o in article.album.pictures %}
  403.                 <div class='relative slide {{loop.index == 1 ? \"active\"}}'>
  404.                     <img src='{{asset(o)}}' class='contain'/>
  405.                 </div>
  406.                 {% endfor %}
  407.                 </div>
  408.                 <span class=\"slide-prev radius-50 h100 padding-30 absolute top left pointer\" data-target=\"#article .slide-box\">
  409.                     <span class=\"fill flex col middle\"><i class=\"flex col middle fa fa-chevron-left h1 black\"></i></span>
  410.                 </span>
  411.                 <span class=\"slide-next radius-50 h100 padding-30 absolute top right pointer\"  data-target=\"#article .slide-box\">
  412.                     <span class=\"fill flex col middle\"><i class=\"flex col middle fa fa-chevron-right h1 black\"></i></span>
  413.                 </span>
  414.             </figure>
  415.             {% endif %}
  416.             {% if article.flickr %}
  417.             <h2 class='h3 adapt top-40 adapt'>Album photos</h2>
  418.             <div class='bg-gray w100'>
  419.                 <iframe class='block-center w100 flickr-frame' src='{{article.flickr|replace({\"albums\":\"sets\"})}}/player' scrolling='no' align='middle' frameborder='0'></iframe>
  420.             </div>
  421.             {% endif %}
  422.         </div>
  423. \t</div>
  424. </div>
  425. {% endblock %}
  426. ""Default/article.html.twig""/home/adminroot/www/templates/Default/article.html.twig");
  427.     }
  428. }