var/cache/dev/twig/9b/9bf2568faa20cc6fdfb0cd99a7d9048e.php line 66
<?phpuse 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/project.html.twig */class __TwigTemplate_d9d4668c7ffae86102f07ca01716b000 extends Template{private $source;private $macros = [];public function __construct(Environment $env){parent::__construct($env);$this->source = $this->getSourceContext();$this->blocks = ['content' => [$this, 'block_content'],];}protected function doGetParent(array $context){// line 9return "Default/base.html.twig";}protected function doDisplay(array $context, array $blocks = []){$macros = $this->macros;$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "Default/project.html.twig"));$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "Default/project.html.twig"));// line 1$context["iconColor"] = "#1F4878";// line 2$context["titleColor"] = "#ffffff";// line 3$context["bgColor"] = "#81B0B1";// line 4$context["title"] = twig_get_attribute($this->env, $this->source, (isset($context["project"]) || array_key_exists("project", $context) ? $context["project"] : (function () { throw new RuntimeError('Variable "project" does not exist.', 4, $this->source); })()), "name", [], "any", false, false, false, 4);// line 5if (twig_get_attribute($this->env, $this->source, (isset($context["project"]) || array_key_exists("project", $context) ? $context["project"] : (function () { throw new RuntimeError('Variable "project" does not exist.', 5, $this->source); })()), "banner", [], "any", false, false, false, 5)) {// line 6$context["thumbnail"] = twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["project"]) || array_key_exists("project", $context) ? $context["project"] : (function () { throw new RuntimeError('Variable "project" does not exist.', 6, $this->source); })()), "banner", [], "any", false, false, false, 6), "thumbnail", [], "any", false, false, false, 6);// line 7$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["project"]) || array_key_exists("project", $context) ? $context["project"] : (function () { throw new RuntimeError('Variable "project" does not exist.', 7, $this->source); })()), "banner", [], "any", false, false, false, 7), "file", [], "any", false, false, false, 7));}// line 10$macros["macros"] = $this->macros["macros"] = $this->loadTemplate("Default/macros.html.twig", "Default/project.html.twig", 10)->unwrap();// line 9$this->parent = $this->loadTemplate("Default/base.html.twig", "Default/project.html.twig", 9);$this->parent->display($context, array_merge($this->blocks, $blocks));$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);}// line 12public function block_content($context, array $blocks = []){$macros = $this->macros;$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "content"));$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "content"));// line 13echo "<div class='";echo twig_escape_filter($this->env, $this->env->getFunction('desktop')->getCallable()("gpadding top-60-in bottom-30-in"), "html", null, true);echo " ";echo twig_escape_filter($this->env, $this->env->getFunction('mobile')->getCallable()("hz-20-in"), "html", null, true);echo "'>\t<div class='";// line 14echo twig_escape_filter($this->env, $this->env->getFunction('desktop')->getCallable()(""), "html", null, true);echo "'>\t\t<div id='article' class='w100'>\t\t\t<div class='h4 ";// line 16echo twig_escape_filter($this->env, $this->env->getFunction('desktop')->getCallable()("flex row middle space bottom-60"), "html", null, true);echo " ";echo twig_escape_filter($this->env, $this->env->getFunction('mobile')->getCallable()("vt-15"), "html", null, true);echo "'>\t\t\t\t";// line 20echo "\t\t\t\t<div class=\"article w100 w100 h4 ";echo twig_escape_filter($this->env, $this->env->getFunction('desktop')->getCallable()(""), "html", null, true);echo " ";echo twig_escape_filter($this->env, $this->env->getFunction('mobile')->getCallable()("top-20"), "html", null, true);echo "\">";echo twig_get_attribute($this->env, $this->source, (isset($context["project"]) || array_key_exists("project", $context) ? $context["project"] : (function () { throw new RuntimeError('Variable "project" does not exist.', 20, $this->source); })()), "details", [], "any", false, false, false, 20);echo "</div>\t\t\t</div>\t\t\t\t\t\t";// line 23if (twig_get_attribute($this->env, $this->source, (isset($context["project"]) || array_key_exists("project", $context) ? $context["project"] : (function () { throw new RuntimeError('Variable "project" does not exist.', 23, $this->source); })()), "document", [], "any", false, false, false, 23)) {// line 24echo " <div class='bg-success ";echo twig_escape_filter($this->env, $this->env->getFunction('desktop')->getCallable()("top-40 padding-40"), "html", null, true);echo twig_escape_filter($this->env, $this->env->getFunction('mobile')->getCallable()("top-20 padding-20"), "html", null, true);echo "'><h2 class=\"h3 warning-alt\">Fiche de présentation du projet</h2><div class='doc flex row top ";// line 26echo twig_escape_filter($this->env, $this->env->getFunction('desktop')->getCallable()("half-20"), "html", null, true);echo " relative bottom-20 hz-25-in vt-20-in ";echo twig_escape_filter($this->env, $this->env->getFunction('desktop')->getCallable()(""), "html", null, true);echo " ";echo twig_escape_filter($this->env, $this->env->getFunction('mobile')->getCallable()(""), "html", null, true);echo "'>";// line 27$context["doc"] = twig_get_attribute($this->env, $this->source, (isset($context["project"]) || array_key_exists("project", $context) ? $context["project"] : (function () { throw new RuntimeError('Variable "project" does not exist.', 27, $this->source); })()), "document", [], "any", false, false, false, 27);// line 28echo " <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='medium white p text-left nomargin lh-1x'>";// line 32echo 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.', 32, $this->source); })()), "name", [], "any", false, false, false, 32)) ? (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.', 32, $this->source); })()), "name", [], "any", false, false, false, 32)) : (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.', 32, $this->source); })()), "source", [], "any", false, false, false, 32))), "html", null, true);echo "</h3><div class=\"flex col middle space top-10\"><div class='gray text-left p-alt'><span class=''>";// line 35echo 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.', 35, $this->source); })()), "formatSize", [], "any", false, false, false, 35), "html", null, true);echo "</span> |<span class=''>";// line 36echo 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.', 36, $this->source); })()), "reading", [], "any", false, false, false, 36)), "html", null, true);echo " lect.</span> |<span>";// line 37echo 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.', 37, $this->source); })()), "downloads", [], "any", false, false, false, 37)), "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 warning-alt' data-target=\"";// line 41echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("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.', 41, $this->source); })()), "id", [], "any", false, false, false, 41)]), "html", null, true);echo "\">Lire</span><a class='left-30 warning-alt' href=\"";// line 42echo 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.', 42, $this->source); })()), "id", [], "any", false, false, false, 42)]), "html", null, true);echo "\" target='_blank' download>Télécharger</a></div></div></div><i class=\"triangle gradient-bannerm bg-white\"></i></div></div>";}// line 50echo "\t\t\t\t\t\t";// line 51if ((twig_get_attribute($this->env, $this->source, (isset($context["project"]) || array_key_exists("project", $context) ? $context["project"] : (function () { throw new RuntimeError('Variable "project" does not exist.', 51, $this->source); })()), "album", [], "any", false, false, false, 51) && twig_length_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["project"]) || array_key_exists("project", $context) ? $context["project"] : (function () { throw new RuntimeError('Variable "project" does not exist.', 51, $this->source); })()), "album", [], "any", false, false, false, 51), "pictures", [], "any", false, false, false, 51)))) {// line 52echo " <h2 class='h3 top-40 adapt'>";((twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["project"]) || array_key_exists("project", $context) ? $context["project"] : (function () { throw new RuntimeError('Variable "project" does not exist.', 52, $this->source); })()), "album", [], "any", false, false, false, 52), "title", [], "any", false, false, false, 52)) ? (print (twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["project"]) || array_key_exists("project", $context) ? $context["project"] : (function () { throw new RuntimeError('Variable "project" does not exist.', 52, $this->source); })()), "album", [], "any", false, false, false, 52), "title", [], "any", false, false, false, 52), "html", null, true))) : (print ("Album photos")));echo "</h2><figure class=\"bg-white slide-box mrect slide-container fill nohover relative vt-40 shadow-alt\" tabindex=\"1\"><div class=\"fill slides radius-10 adapt\">";// line 55$context['_parent'] = $context;$context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["project"]) || array_key_exists("project", $context) ? $context["project"] : (function () { throw new RuntimeError('Variable "project" does not exist.', 55, $this->source); })()), "album", [], "any", false, false, false, 55), "pictures", [], "any", false, false, false, 55));$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 56echo " <div class='relative slide ";echo (((twig_get_attribute($this->env, $this->source, $context["loop"], "index", [], "any", false, false, false, 56) == 1)) ? ("active") : (""));echo "'><img src='";// line 57echo 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 60echo " </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 69echo "\t\t</div>\t\t";// line 78echo "\t</div></div>";$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);}public function getTemplateName(){return "Default/project.html.twig";}public function isTraitable(){return false;}public function getDebugInfo(){return array ( 241 => 78, 238 => 69, 227 => 60, 210 => 57, 205 => 56, 188 => 55, 181 => 52, 179 => 51, 176 => 50, 165 => 42, 161 => 41, 154 => 37, 150 => 36, 146 => 35, 140 => 32, 134 => 28, 132 => 27, 124 => 26, 117 => 24, 115 => 23, 104 => 20, 98 => 16, 93 => 14, 86 => 13, 76 => 12, 65 => 9, 63 => 10, 60 => 7, 58 => 6, 56 => 5, 54 => 4, 52 => 3, 50 => 2, 48 => 1, 35 => 9,);}public function getSourceContext(){return new Source("{% set iconColor = \"#1F4878\" %}{% set titleColor = \"#ffffff\" %}{% set bgColor = \"#81B0B1\" %}{% set title = project.name %}{% if project.banner %}{% set thumbnail = project.banner.thumbnail %}{% set banner = asset(project.banner.file) %}{% endif %}{% extends 'Default/base.html.twig' %}{% import \"Default/macros.html.twig\" as macros %}\t\t\t\t\t{% block content %}<div class='{{desktop(\"gpadding top-60-in bottom-30-in\")}} {{mobile(\"hz-20-in\")}}'>\t<div class='{{desktop(\"\")}}'>\t\t<div id='article' class='w100'>\t\t\t<div class='h4 {{desktop(\"flex row middle space bottom-60\")}} {{mobile(\"vt-15\")}}'>\t\t\t\t{#<figure class=\"oeuvre-fig flex row center mrect {{desktop('third-40')}} {{mobile('w100')}}\" >\t\t\t\t\t<img src=\"{{asset(project.banner ? project.banner.thumbnail ? project.banner.thumbnail : project.banner.file ? 'oeuvre1.jpg')}}\" class=\"h100\">\t\t\t\t</figure>#}\t\t\t\t<div class=\"article w100 w100 h4 {{desktop('')}} {{mobile('top-20')}}\">{{project.details|raw}}</div>\t\t\t</div>\t\t\t\t\t\t{% if project.document %}<div class='bg-success {{desktop(\"top-40 padding-40\")}}{{mobile(\"top-20 padding-20\")}}'><h2 class=\"h3 warning-alt\">Fiche de présentation du projet</h2><div class='doc flex row top {{desktop(\"half-20\")}} relative bottom-20 hz-25-in vt-20-in {{desktop(\"\")}} {{mobile(\"\")}}'>{% set doc = project.document %}<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='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 warning-alt' data-target=\"{{path('file-read',{id:doc.id})}}\">Lire</span><a class='left-30 warning-alt' href=\"{{path('file-download',{id:doc.id})}}\" target='_blank' download>Télécharger</a></div></div></div><i class=\"triangle gradient-bannerm bg-white\"></i></div></div>{% endif %}\t\t\t\t\t\t{% if project.album and project.album.pictures|length %}<h2 class='h3 top-40 adapt'>{{project.album.title ? project.album.title : \"Album photos\"}}</h2><figure class=\"bg-white slide-box mrect slide-container fill nohover relative vt-40 shadow-alt\" tabindex=\"1\"><div class=\"fill slides radius-10 adapt\">{% for o in project.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 %}\t\t</div>\t\t{#<div class='{{desktop(\"top-60 adapt\")}} {{mobile(\"w100 top-20\")}}'>\t\t\t<h3 class='h4 warning-alt {{desktop(\"bottom-20\")}} {{mobile(\"bottom-10\")}}'>Autres Oeuvres</h3>\t\t\t<div class='{{desktop(\"flex row space\")}}'>\t\t\t{% for o in list %}\t\t\t{{ macros.projectAlt(o) }}\t\t\t{% endfor %}\t\t\t</div>\t\t</div>#}\t</div></div>{% endblock %}", "Default/project.html.twig", "/home/olasoftnka/asin/templates/Default/project.html.twig");}}