Last change
on this file since 47975 was
47975,
checked in by jean-marc.viglino@…, 10 years ago
|
[BUG] Compatibilite avec mediaBox
|
File size:
1.6 KB
|
Line | |
---|
1 | #CACHE{0} |
---|
2 | <BOUCLE_doc (DOCUMENTS) {id_document} {tout}> |
---|
3 | [(#REM) |
---|
4 | |
---|
5 | Modele pour <doc> en dl/dt/dd |
---|
6 | cf. http://pompage.net/pompe/listesdefinitions/ |
---|
7 | |
---|
8 | La largeur de la legende est egale a la largeur de l'image |
---|
9 | avec un minimum de 120px, et un maximum de 350px. |
---|
10 | |
---|
11 | Dans le cas d'une simple image (mode=image), on affiche |
---|
12 | le document lui-meme, sans lien de telechargement |
---|
13 | ] |
---|
14 | [(#MODE|=={image}|oui) |
---|
15 | #SET{fichier,#URL_DOCUMENT} |
---|
16 | #SET{width,#LARGEUR} |
---|
17 | #SET{height,#HAUTEUR} |
---|
18 | ] |
---|
19 | [(#MODE|=={image}|non) |
---|
20 | [(#SET{fichier,[(#LOGO_DOCUMENT|extraire_attribut{src})]})] |
---|
21 | [(#SET{width,[(#LOGO_DOCUMENT|extraire_attribut{width})]})] |
---|
22 | [(#SET{height,[(#LOGO_DOCUMENT|extraire_attribut{height})]})] |
---|
23 | ] |
---|
24 | [(#REM) Faire croire a media box qu'on a une image : rajoute le mimetype sous forme de fichier ] |
---|
25 | [(#SET{url,#URL_DOC_COMPTEUR&type=[(#MIME_TYPE|replace{/,.})]})] |
---|
26 | |
---|
27 | <dl class='spip_document_#ID_DOCUMENT spip_documents[ spip_documents_(#ENV{align})][ (#ENV{class})] spip_lien_ok'[ style='float:(#ENV{align}|match{left|right});[width:(#GET{width}|min{350}|max{120})]px;']> |
---|
28 | <dt>[<a href="(#GET{url})"[ class="(#ENV{lien_class})"] title='#TYPE_DOCUMENT - [(#TAILLE|taille_en_octets|texte_backend)]'[ (#ENV{lien}|?{'',type="#MIME_TYPE"})]>]<img src='#GET{fichier}' width='#GET{width}' height='#GET{height}' alt='#TYPE_DOCUMENT - [(#TAILLE|taille_en_octets|texte_backend)]' />[(#GET{url}|?{</a>})]</dt>[ |
---|
29 | <dt class='#EDIT{titre} spip_doc_titre'[ style='width:(#GET{width}|min{350}|max{120})px;']><strong>(#TITRE)</strong></dt>][ |
---|
30 | <dd class='#EDIT{descriptif} spip_doc_descriptif'[ style='width:(#GET{width}|min{350}|max{120})px;']>(#DESCRIPTIF|PtoBR)[(#NOTES|PtoBR)]</dd>] |
---|
31 | </dl> |
---|
32 | </BOUCLE_doc> |
---|
Note: See
TracBrowser
for help on using the repository browser.