Browse Source

Insertion de l'icone de fieldset : simplification de code (tests inutiles, raccourcis divers)

pull/187/head
Maïeul 6 months ago
parent
commit
ae4b7fcd32
  1. 10
      inclure/fieldset_legend.html

10
inclure/fieldset_legend.html

@ -1,7 +1,3 @@
[(#ENV{icone}|oui)
[(#REM) en SPIP 3 on cherche avant tout dans le chemin des images
]#SET{icone,''}[(#SPIP_VERSION|version_compare{2.9, >}|oui)#SET{icone,#CHEMIN_IMAGE{#ENV{icone}}]
[(#GET{icone}
|sinon{#CHEMIN{#ENV{icone}}}
|balise_img{#ENV*{label}, #ENV{taille_icone}|sinon{16}})]
]<span>#ENV*{label}</span>
#SET{icone,#CHEMIN_IMAGE{#ENV{icone}|sinon{#CHEMIN{#ENV{icone}}}}
[(#GET{icone}|balise_img{#ENV*{label},#ENV{taille_icone,16}})]
<span>#ENV*{label}</span>

Loading…
Cancel
Save