X-Git-Url: http://git.cyclocoop.org/?a=blobdiff_plain;f=www%2Fprive%2Fmodeles%2Fimg.html;fp=www%2Fprive%2Fmodeles%2Fimg.html;h=79001b04f0e3303bce471ee8a47203c3a6dc08e6;hb=80b4d3e85f78d402ed2e73f8f5d1bf4c19962eed;hp=0000000000000000000000000000000000000000;hpb=aaf970bf4cdaf76689ecc10609048e18d073820c;p=velocampus%2Fweb%2Fwww.git diff --git a/www/prive/modeles/img.html b/www/prive/modeles/img.html new file mode 100644 index 0000000..79001b0 --- /dev/null +++ b/www/prive/modeles/img.html @@ -0,0 +1,34 @@ + +[(#REM) + + Modele pour + + Si on est en mode "image" ou "vignette", ou appele avec embed=oui, + on affiche l'image complete ; sinon le logo + + Si un lien est passe #ENV{lien} on ajoute le a href + ou on truque le #URL_DOCUMENT + +] +[(#SET{ + image, + #MODE|match{'image|vignette'} + |sinon{#ENV{embed}} + |?{' '} +})][ + + (#REM) image complete ? + +][(#GET{image}|oui) + +[][(#TITRE|texte_backend)][(#ENV{lien}|?{})] +][ + + (#REM) sinon logo document + lien + alt + title etc + +][(#GET{image}|non) + [(#SET{fichier,[(#LOGO_DOCUMENT|extraire_attribut{src})]})] + [(#SET{width,[(#LOGO_DOCUMENT|extraire_attribut{width})]})] + [(#SET{height,[(#LOGO_DOCUMENT|extraire_attribut{height})]})] +[(#TITRE|strlen|?{#TITRE {#TYPE_DOCUMENT},#TYPE_DOCUMENT}|attribut_html)] +]