var/cache/dev/twig/c5/c5a7b2615cef63a89a1c4dee47b5991c2541ce94ab184d44e0d4142e1b0f98bf.php line 63

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