templates/Default/article.html.twig line 28
{% 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' %}{% import "Default/macros.html.twig" as macros %}{% block banner %}<div id="banner-article" class=" w100 htop-in {{desktop('gpadding top-80')}} {{mobile('hz-20-in top-20-in bottom-30')}}"><div class="flex row w100 {{desktop('bottom-80-in')}} {{mobile('bottom-30-in')}}"><div class="{{desktop('')}} {{mobile('')}}" ><figure class="relative w100 hoverflow mrect {{desktop('')}} {{mobile('')}}" ><img src='{{asset(article.banner ? article.banner.file : "images/armoiries.jpg")}}' class="cover"></figure><div class="flex row space"><i class="third"></i><div class="w100 right bg-success top-10-in {{desktop("")}} {{mobile("")}}"><span class="top-2-in {{desktop("")}} {{mobile("")}}"></span></div></div></div><div class="w100 {{desktop('top-40-in left-70 left-2-in')}} {{mobile('')}}"><div class="{{desktop('bottom-50 bottom-2-in')}} {{mobile('bottom-20-in')}}"><div class="flex row middle {{desktop('bottom-25')}} {{mobile('bottom-15')}}"><div class="p-alt flex row middle upper {{desktop('right-30 right-5-in')}} {{mobile('right-20')}}"><i class="circle bg-warning {{desktop('padding-4 right-10')}}{{mobile('padding-3 right-5')}}"></i><time class="warning">{{article.date ? article.date|frdate}}</time></div><div class="p-alt flex row middle "><i class="circle bg-warning {{desktop('padding-4 right-10')}}{{mobile('padding-3 right-5')}}"></i><span class="upper warning">{{article.category.name}}</span></div></div><h3 class="success bold flex row {{desktop('h2 lh-10x bottom-15 right-40-in')}} {{mobile('lh-5x bottom-8')}}">{{article.title}}</h3></div><div class="flex row w100"><a href="{{url('articles')}}" class='border border-success flex row middle extrabold {{desktop("padding-30")}} {{mobile("padding-15")}}'><span class='{{desktop("padding-6")}} {{mobile("")}}'><i class="fa fa-arrow-left success right-10"></i><span class='p success upper '>Retour vers les publications</span></span></a><a href="" class='bg-success flex row middle extrabold {{desktop("left-20 padding-30")}} {{mobile("padding-15")}}'><span class='{{desktop("padding-6")}} {{mobile("")}}'><i class="fa fa-external-link white right-10"></i><span class='p white upper '>Partager</span></span></a></div></div></div><div class="w100 bg-gray top-1-in {{desktop('')}}"></div></div>{% endblock banner %}{% block content %}<div class='{{desktop("gpadding bottom-80 bottom-80-in ")}} {{mobile("hz-20-in vt-30-in")}} '><div class='{{desktop("flex row space top bottom-6")}} {{mobile("")}}'><div id='article' class='w100 {{desktop("border noborder border-1x border-right border-gray right-60-in")}} {{mobile("vt-20-in")}}'><div class="w100 {{desktop('top-80')}} {{mobile('top-30-in')}}"></div>{%if article.description|nl2br %}<article class='h4 article success semibold bg-gray-alt padding-20 {{desktop("top-30")}} {{mobile("top-10")}}'>{{ article.description|nl2br }}</article>{%endif%}<article class='h4 article black {{desktop("top-30")}} {{mobile("top-10")}}'>{{ 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 bg-success {{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 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>{% 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 shadow-alt" 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-gray-alt {{desktop('third-60 left-60 vt-20-in hz-20-in')}} {{mobile(' vt-20-in hz-15-in')}}"><h2 class="h2 aquawax light success {{desktop(' vt-20-in')}} {{mobile('vt-15')}}">Autres articles similaires</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 white regular">{{o.title}}</h3><div class="flex row middle top-10"><i class="fa fa-eye warning-alt left-10"></i><a class='p-alt lspacing upper medium warning-alt {{desktop("left-10")}} {{mobile("left-5")}}'href='{{path("article",{id:o.id, slug:o.slug})}}'>Lire l'article</a></div></div></figure></div>#}{% endfor %}</aside></div></div>{% endblock %}