3 Modele pour
<doc> en
<figure>
5 Dans le cas d'une simple image -mode=image-, on affiche
6 le document lui-meme, sans lien de telechargement
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}}
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>
22 [(#SET{caption,[(#CAPTION
26 |sinon{#GET{captionspip}}
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>]