<?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/event.html.twig */
class __TwigTemplate_2c2012a09de742ebfa62730eb8249ea62a86dcc0b38e74a5a89a4013c8f97863 extends Template
{
private $source;
private $macros = [];
public function __construct(Environment $env)
{
parent::__construct($env);
$this->source = $this->getSourceContext();
$this->blocks = [
'titlebox' => [$this, 'block_titlebox'],
'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/event.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/event.html.twig"));
// line 1
$context["title"] = twig_get_attribute($this->env, $this->source, (isset($context["item"]) || array_key_exists("item", $context) ? $context["item"] : (function () { throw new RuntimeError('Variable "item" does not exist.', 1, $this->source); })()), "name", [], "any", false, false, false, 1);
// line 2
$context["desc"] = twig_get_attribute($this->env, $this->source, (isset($context["item"]) || array_key_exists("item", $context) ? $context["item"] : (function () { throw new RuntimeError('Variable "item" does not exist.', 2, $this->source); })()), "description", [], "any", false, false, false, 2);
// line 3
$context["menu"] = "events";
// line 4
if (twig_get_attribute($this->env, $this->source, (isset($context["item"]) || array_key_exists("item", $context) ? $context["item"] : (function () { throw new RuntimeError('Variable "item" 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["item"]) || array_key_exists("item", $context) ? $context["item"] : (function () { throw new RuntimeError('Variable "item" 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["item"]) || array_key_exists("item", $context) ? $context["item"] : (function () { throw new RuntimeError('Variable "item" 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/event.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 white w100 ";
echo twig_escape_filter($this->env, call_user_func_array($this->env->getFunction('desktop')->getCallable(), ["vt-30-in"]), "html", null, true);
echo " ";
echo twig_escape_filter($this->env, call_user_func_array($this->env->getFunction('mobile')->getCallable(), [""]), "html", null, true);
echo "'>
<h1 class='h2 extrabold lh-1 text-center'>";
// line 12
((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.', 12, $this->source); })()), "html", null, true))) : (print ("")));
echo "</h1>
</div>
";
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
// line 16
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 17
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 18
echo twig_escape_filter($this->env, call_user_func_array($this->env->getFunction('desktop')->getCallable(), ["gpadding flex row center 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 19
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 "'>
";
// line 20
if (twig_get_attribute($this->env, $this->source, (isset($context["item"]) || array_key_exists("item", $context) ? $context["item"] : (function () { throw new RuntimeError('Variable "item" does not exist.', 20, $this->source); })()), "banner", [], "any", false, false, false, 20)) {
// line 21
echo " <figure class=\"w100 ";
echo twig_escape_filter($this->env, call_user_func_array($this->env->getFunction('desktop')->getCallable(), [""]), "html", null, true);
echo "\">
<img src=\"";
// line 22
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl(twig_get_attribute($this->env, $this->source, (isset($context["item"]) || array_key_exists("item", $context) ? $context["item"] : (function () { throw new RuntimeError('Variable "item" does not exist.', 22, $this->source); })()), "banner", [], "any", false, false, false, 22)), "html", null, true);
echo "\" class=\"block w100\"/>
</figure>
";
}
// line 25
echo " <div class=\"bg-warning-alt flex col ";
echo twig_escape_filter($this->env, call_user_func_array($this->env->getFunction('desktop')->getCallable(), ["hz-60-in vt-40-in"]), "html", null, true);
echo "\">
<time class=\"white bold\">
<i class=\"fa fa-calendar gray icon min\"></i>
";
// line 28
if (twig_get_attribute($this->env, $this->source, (isset($context["item"]) || array_key_exists("item", $context) ? $context["item"] : (function () { throw new RuntimeError('Variable "item" does not exist.', 28, $this->source); })()), "startDate", [], "any", false, false, false, 28)) {
// line 29
echo " <span>";
echo twig_escape_filter($this->env, call_user_func_array($this->env->getFilter('frdate')->getCallable(), [twig_get_attribute($this->env, $this->source, (isset($context["item"]) || array_key_exists("item", $context) ? $context["item"] : (function () { throw new RuntimeError('Variable "item" does not exist.', 29, $this->source); })()), "startDate", [], "any", false, false, false, 29)]), "html", null, true);
((twig_get_attribute($this->env, $this->source, (isset($context["item"]) || array_key_exists("item", $context) ? $context["item"] : (function () { throw new RuntimeError('Variable "item" does not exist.', 29, $this->source); })()), "startTime", [], "any", false, false, false, 29)) ? (print (twig_escape_filter($this->env, twig_date_format_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["item"]) || array_key_exists("item", $context) ? $context["item"] : (function () { throw new RuntimeError('Variable "item" does not exist.', 29, $this->source); })()), "startTime", [], "any", false, false, false, 29), " à H:i"), "html", null, true))) : (print ("")));
echo "</span>
";
}
// line 31
echo " <span class=\"hz-10\">/</span>
";
// line 32
if (twig_get_attribute($this->env, $this->source, (isset($context["item"]) || array_key_exists("item", $context) ? $context["item"] : (function () { throw new RuntimeError('Variable "item" does not exist.', 32, $this->source); })()), "endDate", [], "any", false, false, false, 32)) {
// line 33
echo " <span>";
echo twig_escape_filter($this->env, call_user_func_array($this->env->getFilter('frdate')->getCallable(), [twig_get_attribute($this->env, $this->source, (isset($context["item"]) || array_key_exists("item", $context) ? $context["item"] : (function () { throw new RuntimeError('Variable "item" does not exist.', 33, $this->source); })()), "endDate", [], "any", false, false, false, 33)]), "html", null, true);
((twig_get_attribute($this->env, $this->source, (isset($context["item"]) || array_key_exists("item", $context) ? $context["item"] : (function () { throw new RuntimeError('Variable "item" does not exist.', 33, $this->source); })()), "endTime", [], "any", false, false, false, 33)) ? (print (twig_escape_filter($this->env, twig_date_format_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["item"]) || array_key_exists("item", $context) ? $context["item"] : (function () { throw new RuntimeError('Variable "item" does not exist.', 33, $this->source); })()), "endTime", [], "any", false, false, false, 33), " à H:i"), "html", null, true))) : (print ("")));
echo "</span>
";
}
// line 35
echo " </time>
";
// line 36
if (twig_get_attribute($this->env, $this->source, (isset($context["item"]) || array_key_exists("item", $context) ? $context["item"] : (function () { throw new RuntimeError('Variable "item" does not exist.', 36, $this->source); })()), "place", [], "any", false, false, false, 36)) {
// line 37
echo " <span class=\"white bold\">
<i class=\"fa fa-map-marker gray icon min\"></i>
<i>";
// line 39
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["item"]) || array_key_exists("item", $context) ? $context["item"] : (function () { throw new RuntimeError('Variable "item" does not exist.', 39, $this->source); })()), "place", [], "any", false, false, false, 39), "html", null, true);
echo "</i>
</span>
";
}
// line 42
echo " </div>
<article class='p article black ";
// line 44
echo twig_escape_filter($this->env, call_user_func_array($this->env->getFunction('desktop')->getCallable(), ["top-30"]), "html", null, true);
echo "'>
";
// line 45
echo twig_get_attribute($this->env, $this->source, (isset($context["item"]) || array_key_exists("item", $context) ? $context["item"] : (function () { throw new RuntimeError('Variable "item" does not exist.', 45, $this->source); })()), "details", [], "any", false, false, false, 45);
echo "
</article>
";
// line 48
if ((twig_get_attribute($this->env, $this->source, (isset($context["item"]) || array_key_exists("item", $context) ? $context["item"] : (function () { throw new RuntimeError('Variable "item" does not exist.', 48, $this->source); })()), "biblio", [], "any", false, false, false, 48) && twig_length_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["item"]) || array_key_exists("item", $context) ? $context["item"] : (function () { throw new RuntimeError('Variable "item" does not exist.', 48, $this->source); })()), "biblio", [], "any", false, false, false, 48), "files", [], "any", false, false, false, 48)))) {
// line 49
echo " <h2 class='h3 adapt top-40 adapt'>Document(s) joint(s)</h2>
<div class='flex row space wrap ";
// line 50
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 51
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["item"]) || array_key_exists("item", $context) ? $context["item"] : (function () { throw new RuntimeError('Variable "item" does not exist.', 51, $this->source); })()), "biblio", [], "any", false, false, false, 51), "files", [], "any", false, false, false, 51));
foreach ($context['_seq'] as $context["_key"] => $context["o"]) {
// line 52
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 bg-black 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 53
$context["doc"] = $context["o"];
// line 54
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 58
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.', 58, $this->source); })()), "name", [], "any", false, false, false, 58)) ? (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.', 58, $this->source); })()), "name", [], "any", false, false, false, 58)) : (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.', 58, $this->source); })()), "source", [], "any", false, false, false, 58))), "html", null, true);
echo "</h3>
<div class=\"flex col middle space top-10\">
<div class='gray text-left p-alt'>
<span class=''>";
// line 61
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.', 61, $this->source); })()), "formatSize", [], "any", false, false, false, 61), "html", null, true);
echo "</span> |
<span class=''>";
// line 62
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.', 62, $this->source); })()), "reading", [], "any", false, false, false, 62)), "html", null, true);
echo " lect.</span> |
<span>";
// line 63
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.', 63, $this->source); })()), "downloads", [], "any", false, false, false, 63)), "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 67
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.', 67, $this->source); })()), "id", [], "any", false, false, false, 67), "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.', 67, $this->source); })()), "name", [], "any", false, false, false, 67)) ? (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.', 67, $this->source); })()), "name", [], "any", false, false, false, 67)])) : (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.', 67, $this->source); })()), "source", [], "any", false, false, false, 67)])))]), "html", null, true);
echo "\">Lire</span>
<a class='left-30 warning' href=\"";
// line 68
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.', 68, $this->source); })()), "id", [], "any", false, false, false, 68), "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.', 68, $this->source); })()), "name", [], "any", false, false, false, 68)) ? (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.', 68, $this->source); })()), "name", [], "any", false, false, false, 68)])) : (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.', 68, $this->source); })()), "source", [], "any", false, false, false, 68)])))]), "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 75
echo " </div>
";
}
// line 77
echo "
";
// line 78
if ((twig_get_attribute($this->env, $this->source, (isset($context["item"]) || array_key_exists("item", $context) ? $context["item"] : (function () { throw new RuntimeError('Variable "item" does not exist.', 78, $this->source); })()), "album", [], "any", false, false, false, 78) && twig_length_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["item"]) || array_key_exists("item", $context) ? $context["item"] : (function () { throw new RuntimeError('Variable "item" does not exist.', 78, $this->source); })()), "album", [], "any", false, false, false, 78), "pictures", [], "any", false, false, false, 78)))) {
// line 79
echo " <h2 class='h3 top-40'>";
((twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["item"]) || array_key_exists("item", $context) ? $context["item"] : (function () { throw new RuntimeError('Variable "item" does not exist.', 79, $this->source); })()), "album", [], "any", false, false, false, 79), "title", [], "any", false, false, false, 79)) ? (print (twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["item"]) || array_key_exists("item", $context) ? $context["item"] : (function () { throw new RuntimeError('Variable "item" does not exist.', 79, $this->source); })()), "album", [], "any", false, false, false, 79), "title", [], "any", false, false, false, 79), "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 82
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["item"]) || array_key_exists("item", $context) ? $context["item"] : (function () { throw new RuntimeError('Variable "item" does not exist.', 82, $this->source); })()), "album", [], "any", false, false, false, 82), "pictures", [], "any", false, false, false, 82));
$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 83
echo " <div class='relative slide ";
echo (((0 === twig_compare(twig_get_attribute($this->env, $this->source, $context["loop"], "index", [], "any", false, false, false, 83), 1))) ? ("active") : (""));
echo "'>
<img src='";
// line 84
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 87
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 96
echo " </div>
\t</div>
</div>
";
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
public function getTemplateName()
{
return "Default/event.html.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
return array ( 337 => 96, 326 => 87, 309 => 84, 304 => 83, 287 => 82, 280 => 79, 278 => 78, 275 => 77, 271 => 75, 258 => 68, 254 => 67, 247 => 63, 243 => 62, 239 => 61, 233 => 58, 227 => 54, 225 => 53, 216 => 52, 212 => 51, 207 => 50, 204 => 49, 202 => 48, 196 => 45, 192 => 44, 188 => 42, 182 => 39, 178 => 37, 176 => 36, 173 => 35, 166 => 33, 164 => 32, 161 => 31, 154 => 29, 152 => 28, 145 => 25, 139 => 22, 134 => 21, 132 => 20, 126 => 19, 120 => 18, 113 => 17, 103 => 16, 90 => 12, 83 => 11, 73 => 10, 62 => 8, 59 => 6, 57 => 5, 55 => 4, 53 => 3, 51 => 2, 49 => 1, 36 => 8,);
}
public function getSourceContext()
{
return new Source("{% set title = item.name %}
{% set desc = item.description %}
{% set menu = 'events' %}
{% if item.banner %}
{% set thumbnail = item.banner.thumbnail %}
{% set banner = asset(item.banner.file) %}
{% endif %}
{% extends 'Default/base.html.twig' %}
{% block titlebox %}
<div class='relative white w100 {{desktop(\"vt-30-in\")}} {{mobile(\"\")}}'>
<h1 class='h2 extrabold lh-1 text-center'>{{title is defined ? title}}</h1>
</div>
{% endblock titlebox %}
{% block content %}
<div class='{{desktop(\"gpadding vt-40-in\")}} {{mobile(\"gpadding vt-30-in\")}} '>
<div class='{{desktop(\"gpadding flex row center top\")}} {{mobile(\"\")}}'>
<div id='article' class='w100 {{desktop(\"\")}} {{mobile(\"vt-20-in\")}}'>
{% if item.banner %}
<figure class=\"w100 {{desktop('')}}\">
<img src=\"{{asset(item.banner)}}\" class=\"block w100\"/>
</figure>
{% endif %}
<div class=\"bg-warning-alt flex col {{desktop('hz-60-in vt-40-in')}}\">
<time class=\"white bold\">
<i class=\"fa fa-calendar gray icon min\"></i>
{% if item.startDate %}
<span>{{item.startDate|frdate}}{{item.startTime ? item.startTime|date(' à H:i')}}</span>
{% endif %}
<span class=\"hz-10\">/</span>
{% if item.endDate %}
<span>{{item.endDate|frdate}}{{item.endTime ? item.endTime|date(' à H:i')}}</span>
{% endif %}
</time>
{% if item.place %}
<span class=\"white bold\">
<i class=\"fa fa-map-marker gray icon min\"></i>
<i>{{item.place}}</i>
</span>
{% endif %}
</div>
<article class='p article black {{desktop(\"top-30\")}}'>
{{ item.details|raw }}
</article>
{% if item.biblio and item.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 item.biblio.files %}
<div class='doc flex row top {{desktop(\"half-20\")}} relative bg-black 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 item.album and item.album.pictures|length %}
<h2 class='h3 top-40'>{{item.album.title ? item.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 item.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 %}
</div>
\t</div>
</div>
{% endblock %}
", "Default/event.html.twig", "/home/adminroot/www/templates/Default/event.html.twig");
}
}