<?php
use Twig\Environment;
use Twig\Error\LoaderError;
use Twig\Error\RuntimeError;
use Twig\Extension\SandboxExtension;
use Twig\Markup;
use Twig\Sandbox\SecurityError;
use Twig\Sandbox\SecurityNotAllowedTagError;
use Twig\Sandbox\SecurityNotAllowedFilterError;
use Twig\Sandbox\SecurityNotAllowedFunctionError;
use Twig\Source;
use Twig\Template;
/* Default/article.html.twig */
class __TwigTemplate_2dc5dbdcde5b5e4b45fe48611a6cc5d46517538787c8ca6f68f5c649c4762ce5 extends Template
{
private $source;
private $macros = [];
public function __construct(Environment $env)
{
parent::__construct($env);
$this->source = $this->getSourceContext();
$this->blocks = [
'titlebox' => [$this, 'block_titlebox'],
'title' => [$this, 'block_title'],
'content' => [$this, 'block_content'],
];
}
protected function doGetParent(array $context)
{
// line 8
return "Default/base.html.twig";
}
protected function doDisplay(array $context, array $blocks = [])
{
$macros = $this->macros;
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "Default/article.html.twig"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "Default/article.html.twig"));
// line 1
$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", false, false, false, 1);
// line 2
$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", false, false, false, 2);
// line 3
$context["menu"] = "articles";
// line 4
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", false, false, false, 4)) {
// line 5
$context["thumbnail"] = twig_get_attribute($this->env, $this->source, 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.', 5, $this->source); })()), "banner", [], "any", false, false, false, 5), "thumbnail", [], "any", false, false, false, 5);
// line 6
$context["banner"] = $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl(twig_get_attribute($this->env, $this->source, 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.', 6, $this->source); })()), "banner", [], "any", false, false, false, 6), "file", [], "any", false, false, false, 6));
}
// line 8
$this->parent = $this->loadTemplate("Default/base.html.twig", "Default/article.html.twig", 8);
$this->parent->display($context, array_merge($this->blocks, $blocks));
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
}
// line 10
public function block_titlebox($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "titlebox"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "titlebox"));
// line 11
echo "<div class='relative success flex row ";
echo twig_escape_filter($this->env, call_user_func_array($this->env->getFunction('desktop')->getCallable(), ["w100 gpadding"]), "html", null, true);
echo " ";
echo twig_escape_filter($this->env, call_user_func_array($this->env->getFunction('mobile')->getCallable(), [""]), "html", null, true);
echo "'>
";
// line 12
$this->displayBlock('title', $context, $blocks);
// line 15
echo " <i class=\"third\"></i>
</div>
";
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
// line 12
public function block_title($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "title"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "title"));
// line 13
echo " <h1 class='h2 upper lh-1'>";
((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", null, true))) : (print ("")));
echo "</h1>
";
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
// line 19
public function block_content($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "content"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "content"));
// line 20
echo "<div class='";
echo twig_escape_filter($this->env, call_user_func_array($this->env->getFunction('desktop')->getCallable(), ["gpadding vt-40-in"]), "html", null, true);
echo " ";
echo twig_escape_filter($this->env, call_user_func_array($this->env->getFunction('mobile')->getCallable(), ["gpadding vt-30-in"]), "html", null, true);
echo " '>
<div class='";
// line 21
echo twig_escape_filter($this->env, call_user_func_array($this->env->getFunction('desktop')->getCallable(), ["flex row space top"]), "html", null, true);
echo " ";
echo twig_escape_filter($this->env, call_user_func_array($this->env->getFunction('mobile')->getCallable(), [""]), "html", null, true);
echo "'>
<div id='article' class='w100 ";
// line 22
echo twig_escape_filter($this->env, call_user_func_array($this->env->getFunction('desktop')->getCallable(), [""]), "html", null, true);
echo " ";
echo twig_escape_filter($this->env, call_user_func_array($this->env->getFunction('mobile')->getCallable(), ["vt-20-in"]), "html", null, true);
echo "'>
<article class='h6 article lh-4x black-alt text-justify ";
// line 23
echo twig_escape_filter($this->env, call_user_func_array($this->env->getFunction('desktop')->getCallable(), [""]), "html", null, true);
echo "'>
";
// line 24
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", false, false, false, 24);
echo "
</article>
";
// line 27
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", false, false, false, 27) && twig_length_filter($this->env, twig_get_attribute($this->env, $this->source, 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", false, false, false, 27), "files", [], "any", false, false, false, 27)))) {
// line 28
echo " <h2 class='h3 adapt top-40 adapt'>Document(s) joint(s)</h2>
<div class='flex row space wrap ";
// line 29
echo twig_escape_filter($this->env, call_user_func_array($this->env->getFunction('desktop')->getCallable(), ["top-40"]), "html", null, true);
echo twig_escape_filter($this->env, call_user_func_array($this->env->getFunction('mobile')->getCallable(), ["top-20"]), "html", null, true);
echo "'>
";
// line 30
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env, $this->source, 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.', 30, $this->source); })()), "biblio", [], "any", false, false, false, 30), "files", [], "any", false, false, false, 30));
foreach ($context['_seq'] as $context["_key"] => $context["o"]) {
// line 31
echo " <div class='doc flex row top ";
echo twig_escape_filter($this->env, call_user_func_array($this->env->getFunction('desktop')->getCallable(), ["half-20"]), "html", null, true);
echo " relative gradient-banner bottom-20 hz-25-in vt-20-in hoverflow ";
echo twig_escape_filter($this->env, call_user_func_array($this->env->getFunction('desktop')->getCallable(), [""]), "html", null, true);
echo " ";
echo twig_escape_filter($this->env, call_user_func_array($this->env->getFunction('mobile')->getCallable(), [""]), "html", null, true);
echo "'>
";
// line 32
$context["doc"] = $context["o"];
// line 33
echo " <span class=\"\">
<i class=\"fa fa-file gray fa-3x\"></i>
</span>
<div class='text-left flex col space relative left-20 right-40-in'>
<h3 class='h6 medium white p text-left nomargin lh-1x'>";
// line 37
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", false, false, false, 37)) ? (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", false, false, false, 37)) : (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", false, false, false, 37))), "html", null, true);
echo "</h3>
<div class=\"flex col middle space top-10\">
<div class='gray text-left p-alt'>
<span class=''>";
// line 40
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.', 40, $this->source); })()), "formatSize", [], "any", false, false, false, 40), "html", null, true);
echo "</span> |
<span class=''>";
// line 41
echo twig_escape_filter($this->env, twig_number_format_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.', 41, $this->source); })()), "reading", [], "any", false, false, false, 41)), "html", null, true);
echo " lect.</span> |
<span>";
// line 42
echo twig_escape_filter($this->env, twig_number_format_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.', 42, $this->source); })()), "downloads", [], "any", false, false, false, 42)), "html", null, true);
echo " téléch.</span>
</div>
<div class='flex row middle p upper medium top-20 nowrap'>
<i class=\"w100 top-2-in bg-gray right-40\"></i>
<span class='os-read white' data-url=\"";
// line 46
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", false, false, false, 46), "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", false, false, false, 46)) ? (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", false, false, false, 46)])) : (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", false, false, false, 46)])))]), "html", null, true);
echo "\">Lire</span>
<a class='left-30 warning' href=\"";
// line 47
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", false, false, false, 47), "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", false, false, false, 47)) ? (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", false, false, false, 47)])) : (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", false, false, false, 47)])))]), "html", null, true);
echo "\" target='_blank' download>Télécharger</a>
</div>
</div>
</div>
<i class=\"triangle gradient-bannerm bg-white\"></i>
</div>
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['o'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 54
echo " </div>
";
}
// line 56
echo "
";
// line 57
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", false, false, false, 57)) {
// line 58
echo " <h2 class='h3 adapt top-40 adapt'>Suivez la vidéo</h2>
<div class='bg-gray w100'>
<iframe class='block block-center w100 youtube-frame' src='";
// line 60
echo twig_escape_filter($this->env, call_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", false, false, false, 60)])]), "html", null, true);
echo "' frameborder='0' allow='accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture' allowfullscreen></iframe>
</div>
";
}
// line 63
echo "
";
// line 64
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", false, false, false, 64) && twig_length_filter($this->env, twig_get_attribute($this->env, $this->source, 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", false, false, false, 64), "pictures", [], "any", false, false, false, 64)))) {
// line 65
echo " <h2 class='h3 top-40'>";
((twig_get_attribute($this->env, $this->source, 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.', 65, $this->source); })()), "album", [], "any", false, false, false, 65), "title", [], "any", false, false, false, 65)) ? (print (twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, 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.', 65, $this->source); })()), "album", [], "any", false, false, false, 65), "title", [], "any", false, false, false, 65), "html", null, true))) : (print ("Album photos")));
echo "</h2>
<figure class=\"bg-white slide-box mrect slide-container fill nohover relative top-40\" tabindex=\"1\">
<div class=\"fill slides radius-10 adapt\">
";
// line 68
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env, $this->source, 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.', 68, $this->source); })()), "album", [], "any", false, false, false, 68), "pictures", [], "any", false, false, false, 68));
$context['loop'] = [
'parent' => $context['_parent'],
'index0' => 0,
'index' => 1,
'first' => true,
];
if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof \Countable)) {
$length = count($context['_seq']);
$context['loop']['revindex0'] = $length - 1;
$context['loop']['revindex'] = $length;
$context['loop']['length'] = $length;
$context['loop']['last'] = 1 === $length;
}
foreach ($context['_seq'] as $context["_key"] => $context["o"]) {
// line 69
echo " <div class='relative slide ";
echo (((0 === twig_compare(twig_get_attribute($this->env, $this->source, $context["loop"], "index", [], "any", false, false, false, 69), 1))) ? ("active") : (""));
echo "'>
<img src='";
// line 70
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl($context["o"]), "html", null, true);
echo "' class='contain'/>
</div>
";
++$context['loop']['index0'];
++$context['loop']['index'];
$context['loop']['first'] = false;
if (isset($context['loop']['length'])) {
--$context['loop']['revindex0'];
--$context['loop']['revindex'];
$context['loop']['last'] = 0 === $context['loop']['revindex0'];
}
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['o'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 73
echo " </div>
<span class=\"slide-prev radius-50 h100 padding-30 absolute top left pointer\" data-target=\"#article .slide-box\">
<span class=\"fill flex col middle\"><i class=\"flex col middle fa fa-chevron-left h1 black\"></i></span>
</span>
<span class=\"slide-next radius-50 h100 padding-30 absolute top right pointer\" data-target=\"#article .slide-box\">
<span class=\"fill flex col middle\"><i class=\"flex col middle fa fa-chevron-right h1 black\"></i></span>
</span>
</figure>
";
}
// line 82
echo "
";
// line 83
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", false, false, false, 83)) {
// line 84
echo " <h2 class='h3 adapt top-40 adapt'>Album photos</h2>
<div class='bg-gray w100'>
<iframe class='block-center w100 flickr-frame' src='";
// line 86
echo twig_escape_filter($this->env, twig_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", false, false, false, 86), ["albums" => "sets"]), "html", null, true);
echo "/player' scrolling='no' align='middle' frameborder='0'></iframe>
</div>
";
}
// line 89
echo " </div>
<aside class=\"bg-success ";
// line 90
echo twig_escape_filter($this->env, call_user_func_array($this->env->getFunction('desktop')->getCallable(), ["third-80 left-80 vt-20-in hz-20-in"]), "html", null, true);
echo " ";
echo twig_escape_filter($this->env, call_user_func_array($this->env->getFunction('mobile')->getCallable(), ["vt-20-in hz-15-in"]), "html", null, true);
echo "\">
<h2 class=\"h4 success-alt upper underline\">Plus d'articles</h2>
";
// line 92
$context['_parent'] = $context;
$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); })()));
foreach ($context['_seq'] as $context["_key"] => $context["o"]) {
// line 93
echo " <div class=\"w100 ";
echo twig_escape_filter($this->env, call_user_func_array($this->env->getFunction('desktop')->getCallable(), [" vt-20-in"]), "html", null, true);
echo " ";
echo twig_escape_filter($this->env, call_user_func_array($this->env->getFunction('mobile')->getCallable(), ["vt-15"]), "html", null, true);
echo "\">
<figure class=\"w100 flex row top\">
<img src=\"";
// line 95
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", false, false, false, 95)) ? (twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["o"], "banner", [], "any", false, false, false, 95), "thumbnail", [], "any", false, false, false, 95)) : ("images/logo.svg"))), "html", null, true);
echo "\" class=\"block third ";
echo twig_escape_filter($this->env, call_user_func_array($this->env->getFunction('desktop')->getCallable(), [((twig_get_attribute($this->env, $this->source, $context["o"], "banner", [], "any", false, false, false, 95)) ? ("") : ("hz-25-in"))]), "html", null, true);
echo "\">
<div class=\"flex col ";
// line 96
echo twig_escape_filter($this->env, call_user_func_array($this->env->getFunction('desktop')->getCallable(), ["left-15"]), "html", null, true);
echo " ";
echo twig_escape_filter($this->env, call_user_func_array($this->env->getFunction('mobile')->getCallable(), ["left-10"]), "html", null, true);
echo "\">
<h3 class=\"p-alt regular white\">";
// line 98
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["o"], "title", [], "any", false, false, false, 98), "html", null, true);
echo "</h3>
</div>
</figure>
</div>
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['o'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 104
echo " </aside>
\t</div>
</div>
";
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
public function getTemplateName()
{
return "Default/article.html.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
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,);
}
public function getSourceContext()
{
return new Source("{% set title = article.title %}
{% set desc = article.description %}
{% set menu = 'articles' %}
{% if article.banner %}
{% set thumbnail = article.banner.thumbnail %}
{% set banner = asset(article.banner.file) %}
{% endif %}
{% extends 'Default/base.html.twig' %}
{% block titlebox %}
<div class='relative success flex row {{desktop(\"w100 gpadding\")}} {{mobile(\"\")}}'>
{% block title %}
<h1 class='h2 upper lh-1'>{{title is defined ? title}}</h1>
{% endblock title %}
<i class=\"third\"></i>
</div>
{% endblock titlebox %}
{% block content %}
<div class='{{desktop(\"gpadding vt-40-in\")}} {{mobile(\"gpadding vt-30-in\")}} '>
<div class='{{desktop(\"flex row space top\")}} {{mobile(\"\")}}'>
<div id='article' class='w100 {{desktop(\"\")}} {{mobile(\"vt-20-in\")}}'>
<article class='h6 article lh-4x black-alt text-justify {{desktop(\"\")}}'>
{{ article.content|raw }}
</article>
{% if article.biblio and article.biblio.files|length %}
<h2 class='h3 adapt top-40 adapt'>Document(s) joint(s)</h2>
<div class='flex row space wrap {{desktop(\"top-40\")}}{{mobile(\"top-20\")}}'>
{% for o in article.biblio.files %}
<div class='doc flex row top {{desktop(\"half-20\")}} relative gradient-banner bottom-20 hz-25-in vt-20-in hoverflow {{desktop(\"\")}} {{mobile(\"\")}}'>
{% set doc = o %}
<span class=\"\">
<i class=\"fa fa-file gray fa-3x\"></i>
</span>
<div class='text-left flex col space relative left-20 right-40-in'>
<h3 class='h6 medium white p text-left nomargin lh-1x'>{{doc.name ? doc.name : doc.source}}</h3>
<div class=\"flex col middle space top-10\">
<div class='gray text-left p-alt'>
<span class=''>{{doc.formatSize}}</span> |
<span class=''>{{doc.reading|number_format}} lect.</span> |
<span>{{doc.downloads|number_format}} téléch.</span>
</div>
<div class='flex row middle p upper medium top-20 nowrap'>
<i class=\"w100 top-2-in bg-gray right-40\"></i>
<span class='os-read white' data-url=\"{{url('file-read',{id:doc.id,name:doc.name ? doc.name|slug : doc.source|slug})}}\">Lire</span>
<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>
</div>
</div>
</div>
<i class=\"triangle gradient-bannerm bg-white\"></i>
</div>
{% endfor %}
</div>
{% endif %}
{% if article.youtube %}
<h2 class='h3 adapt top-40 adapt'>Suivez la vidéo</h2>
<div class='bg-gray w100'>
<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>
</div>
{% endif %}
{% if article.album and article.album.pictures|length %}
<h2 class='h3 top-40'>{{article.album.title ? article.album.title : \"Album photos\"}}</h2>
<figure class=\"bg-white slide-box mrect slide-container fill nohover relative top-40\" tabindex=\"1\">
<div class=\"fill slides radius-10 adapt\">
{% for o in article.album.pictures %}
<div class='relative slide {{loop.index == 1 ? \"active\"}}'>
<img src='{{asset(o)}}' class='contain'/>
</div>
{% endfor %}
</div>
<span class=\"slide-prev radius-50 h100 padding-30 absolute top left pointer\" data-target=\"#article .slide-box\">
<span class=\"fill flex col middle\"><i class=\"flex col middle fa fa-chevron-left h1 black\"></i></span>
</span>
<span class=\"slide-next radius-50 h100 padding-30 absolute top right pointer\" data-target=\"#article .slide-box\">
<span class=\"fill flex col middle\"><i class=\"flex col middle fa fa-chevron-right h1 black\"></i></span>
</span>
</figure>
{% endif %}
{% if article.flickr %}
<h2 class='h3 adapt top-40 adapt'>Album photos</h2>
<div class='bg-gray w100'>
<iframe class='block-center w100 flickr-frame' src='{{article.flickr|replace({\"albums\":\"sets\"})}}/player' scrolling='no' align='middle' frameborder='0'></iframe>
</div>
{% endif %}
</div>
<aside class=\"bg-success {{desktop('third-80 left-80 vt-20-in hz-20-in')}} {{mobile('vt-20-in hz-15-in')}}\">
<h2 class=\"h4 success-alt upper underline\">Plus d'articles</h2>
{% for o in list %}
<div class=\"w100 {{desktop(' vt-20-in')}} {{mobile('vt-15')}}\">
<figure class=\"w100 flex row top\">
<img src=\"{{asset(o.banner ? o.banner.thumbnail : 'images/logo.svg')}}\" class=\"block third {{desktop(o.banner ? '' : 'hz-25-in')}}\">
<div class=\"flex col {{desktop('left-15')}} {{mobile('left-10')}}\">
<h3 class=\"p-alt regular white\">{{o.title}}</h3>
</div>
</figure>
</div>
{% endfor %}
</aside>
\t</div>
</div>
{% endblock %}
", "Default/article.html.twig", "/home/olasoftnka/cefal/templates/Default/article.html.twig");
}
}