spip_nursit/plugins-dist/dist/nursit/crayons/vues/vignette.html

18 lines
502 B
HTML
Raw Permalink Normal View History

2023-06-01 15:30:12 +00:00
[(#REM)
Vue pour le crayon 'vignette',
Ce crayons ne s'applique qu'aux documents
]
[(#SET{resize,[(#ENV{class}|match{\bresize-\d+\b}|replace{resize-})]})]
[(#SET{image,[(#LOGO_DOCUMENT||image_reduire{#GET{resize,0},#GET{resize,120}})]})]
[(#GET{image}|?{
[(#SET{url,[(#GET{image}|extraire_attribut{src}|replace{\?.*$})]})]
[(#SET{url,[(#GET{url}|parametre_url{s,#EVAL{time()}})]})]
[(#SET{width,[(#GET{image}|extraire_attribut{width})]})]
[(#GET{image}|inserer_attribut{src,#GET{url}})]
})]