[PLUGINS] +clavettes et dependances
[lhc/web/clavette_www.git] / www / plugins / ressource / modeles / ressource.html
1 [(#REM)
2
3 Modele pour <doc> en <figure>
4
5 Dans le cas d'une simple image -mode=image-, on affiche
6 le document lui-meme, sans lien de telechargement
7 ]
8
9 [(#SET{logo,#LOGODOCUMENT})]
10 [(#SET{fichier,[(#GET{logo}||extraire_attribut{src})]})]
11 [(#SET{width,[(#GET{logo}||extraire_attribut{width})]})]
12 [(#SET{height,[(#GET{logo}||extraire_attribut{height})]})]
13 #SET{url,#ENV{lien,#HREF}}
14
15 [(#SET{captionspip,[
16 <div class='#EDIT_TITRE spip_doc_titre'[ style='width:(#GET{width}|min{350}|max{120})px;']><strong>(#TITRE|sinon{[(#DESCRIPTIF*|oui)]})</strong></div>[
17 <div class='#EDIT_DESCRIPTIF spip_doc_descriptif quiet'[ style='width:(#GET{width}|min{350}|max{120})px;']>(#DESCRIPTIF|PtoBR)[(#NOTES|PtoBR)]</div>
18 ]
19 ]
20 })]
21
22 [(#SET{caption,[(#CAPTION
23 |sinon{#LEGEND}
24 |sinon{#LEGENDE}
25 |propre|PtoBR
26 |sinon{#GET{captionspip}}
27 )]})]
28
29 <figure class='[spip_document_(#ID_DOCUMENT) ]spip_documents[ spip_documents_(#ENV{align})][ (#ENV{class})] spip_lien_ok'>
30 [<span class="(#IMGCLASS)">][<a href="(#GET{NONfichier})"[ class="(#ENV{lien_class}|concat{" display_box"})"][ (#ENV{lien}|?{'',type="image/jpeg"})]>]<img src='#GET{fichier}' width='#GET{width}' height='#GET{height}'[
31 alt='(#ENV{alt,#TYPE_DOCUMENT[ - (#TAILLE|taille_en_octets)]}|texte_backend)']
32 style="max-width:100%;height:auto;"[ title='(#TITLE|texte_backend)'] />[(#GET{url}|?{</a>})][(#IMGCLASS|?{</span>})][
33 <figcaption>(#GET{caption})</figcaption>]
34 </figure>