Skip to content
Extraits de code Groupes Projets
document_legende.html 868 octets
Newer Older
Maïeul's avatar
Maïeul a validé
[(#REM)
	Legende pour les documents
]#SET{masquer,#ENV{masquer}|explode{','}}
<BOUCLE_legendaire (DOCUMENTS) {id_document=#ENV{id,#ENV{id_document}}} {tout} {si #GET{masquer}|find{legende}|non}>
[(#ENV*{titre,#TITRE}|trim|sinon{#ENV*{descriptif,#DESCRIPTIF}|trim}|sinon{#ENV*{credits,#CREDITS}|trim}|oui)
<figcaption class='spip_doc_legende'>
	[(#GET{masquer}|find{titre}|non)[<div class='spip_doc_titre [(#ENV{titre}|non)#EDIT{titre}]'><strong>(#ENV*{titre,#TITRE*}|propre|ptobr)</strong></div>]]
	[(#GET{masquer}|find{descriptif}|non)[<div class='spip_doc_descriptif [(#ENV{descriptif}|non)#EDIT{descriptif}]'>(#ENV*{descriptif,#DESCRIPTIF*}|propre|PtoBR)[(#NOTES|PtoBR)]</div>]]
	[(#GET{masquer}|find{credits}|non)[<div class='spip_doc_credits [(#ENV{credits}|non)#EDIT{credits}]'>(#ENV*{credits,#CREDITS*}|propre|PtoBR)</div>]]
</BOUCLE_legendaire>