var/cache/dev/twig/0b/0b57235023a2ba41343d884b8b19b53ed781b9165786862117c5de5209edc76a.php line 40

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