From ff874621dbb2c403dbdd7b5bc5e8040db6ede96a Mon Sep 17 00:00:00 2001 From: x2000habouzit Date: Sun, 23 Jul 2006 13:19:40 +0000 Subject: [PATCH] add a new compilation plugin named 'icon' replace retirer.gif with famfamfam cross.png as a proof of concept git-svn-id: svn+ssh://murphy/home/svn/platal/trunk@590 839d8a87-29fc-0310-9880-83ba4fa771e5 --- htdocs/css/openweb.css | 2 +- htdocs/images/icons/cross.gif | Bin 0 -> 545 bytes htdocs/images/retirer.gif | Bin 1013 -> 0 bytes plugins/compiler.icon.php | 37 +++++++++++++++++++++++++++++++++++++ templates/carnet/notifs.tpl | 2 +- templates/fiche.tpl | 2 +- templates/include/minifiche.tpl | 2 +- templates/listes/admin.tpl | 6 +++--- templates/listes/index.tpl | 2 +- templates/listes/listes.inc.tpl | 2 +- templates/listes/members.tpl | 2 +- templates/listes/options.tpl | 2 +- templates/listes/trombi.tpl | 2 +- templates/login.tpl | 2 +- 14 files changed, 50 insertions(+), 13 deletions(-) create mode 100644 htdocs/images/icons/cross.gif delete mode 100644 htdocs/images/retirer.gif create mode 100644 plugins/compiler.icon.php diff --git a/htdocs/css/openweb.css b/htdocs/css/openweb.css index 269f730..65e6eb4 100644 --- a/htdocs/css/openweb.css +++ b/htdocs/css/openweb.css @@ -35,7 +35,7 @@ body { a:link, a:visited { color: #f60; background: transparent; } a:active, a:hover { color: #369; background: transparent; } -img { vertical-align: middle; } +img { vertical-align: text-top; } a img { border: 0px; } td { vertical-align: top; } li { padding: 0em 1em; text-align: justify; } diff --git a/htdocs/images/icons/cross.gif b/htdocs/images/icons/cross.gif new file mode 100644 index 0000000000000000000000000000000000000000..7008fdc1b4319d2b5fba4073bdaa1ac25c0d90bd GIT binary patch literal 545 zcmZ?wbhEHb6krfwI2Ot9L`mhDmd;CE{a5;iFO5uJo0z?^v3qB0|JKgot-a$r2d9rf z($V?7v)g+Y_xG+IpIqHPxOseV^ZerB_07xYlaK!w-+-@v0iOdyzJ*474-Nks7V#}C z@>@jI|B&!+5z*fwqrXMP{0E9e#eR>D{T~tiJtppZY{HMY#Q)K8-{TX1#3%hoO!<|V z{39vlS5oTF~=T}zlubjL;*?GTn^MB_S{LjhzpI7j| zpzwb|(f@+tzlA0L3QPVMmi#F$`(IS@x1{`kN!h=$%Kt!A4n$RdD{KB&R{sZ)wg0MW z{{vBV-T#`pe|3%j>l*$8$)>jd?Op!|0x14uVdP?{XV75)0#KYVu-7%zH#N7kwzao= zd$j48NVIr|g*dioTLo*kI0Z!bm^Eow1ZoMjTDpb1=&76gs`IxSSceArd8zSr)GPaI zs=D*;s#oz;lCu}wrD*KxU~41A-mYNiEX%_tW-89wDz9%R!_~whU?j}cBCRXQ*}}*z T!rUs#(Z=xk(68V1jSSWRn>;oL literal 0 HcmV?d00001 diff --git a/htdocs/images/retirer.gif b/htdocs/images/retirer.gif deleted file mode 100644 index e368a3af5913a00928de92e34d3364ce38596387..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 1013 zcmeH`+fPz)0Dymr96%2UdQdJp@s`*!HJDPppi9$c&g!K#A5y4%=s{99mpNr#hE}sp zGq0p<3Z~hb)Udm0JjqE?@59oXPp1pbPYGiiw#g0$FUVg27xM0R@w_ z2m>93YzzjAWUxdALoD`m2tgZ4GKS)pXkaM>7!iUQ0cJWC4TsTivJC<4$;tKU>8lJF zWy19W!JCxSw@FDTBdjm!;#mB-u>>v}MO}*`JJ}G%hAf=G9Tu=~$cHTOiO1iKhIXTg zeZq{sjLet$`QF4}Z(_JcB+`h)lOmBp^gt<*7{w2jWo7CoW$N;BS53ucZN*k^=a#%1 z>z8ASx7+>Q+x&ppk2)qN?Nd{ZDXm>QW6|qRK9B5u z9rtS9TW04ly}_k7?rAlc!RRu~dh~{$+Ap^GdEeyduW8N3!s3x`VrOo_zP#*MG1<*# zr`fz|GPzewo@JB!%u&>XuDLCiqgC_KI=XGOx}DBLtM$NUbz|7R6WeuR`EkmdMDHx zpFn81b|rQoI3@`H9h{)<+riSiX<4^s#QE~Hs>f|+XUTJ6*wYh!MzMIgmz5xVk*de~ znzAI#HbJJ?0429%r<^AEwRFYtisy*Do$2)&$UevPk8KFz*ZAl4-hX7G(39^Ks0tci z)zvX9$LL2Fu7gjba5*@oRCvC#M7Fa(K#k%N0Wqg7i$lFpSRgBElh$%Bk>2IGB>TAo b+0B{6LZOEm$Gsyd(P&GxuOkRJe{l5=GJ|yD diff --git a/plugins/compiler.icon.php b/plugins/compiler.icon.php new file mode 100644 index 0000000..f7478c6 --- /dev/null +++ b/plugins/compiler.icon.php @@ -0,0 +1,37 @@ +_parse_attrs($tag_attrs)); + + if (isset($title)) { + $title = 'title="'.htmlentities(trim($title, '\'"'), ENT_QUOTES).'" '; + } + + $name = htmlentities(trim($name, '\'"'), ENT_QUOTES); + + return "?> diff --git a/templates/carnet/notifs.tpl b/templates/carnet/notifs.tpl index 38c7dbb..c34b4c5 100644 --- a/templates/carnet/notifs.tpl +++ b/templates/carnet/notifs.tpl @@ -115,7 +115,7 @@ et cliquer sur les icones Ajouter pour le diff --git a/templates/fiche.tpl b/templates/fiche.tpl index 4659747..0f3fa2f 100644 --- a/templates/fiche.tpl +++ b/templates/fiche.tpl @@ -53,7 +53,7 @@ function chgMainWinLoc( strPage ) { {else} - Retirer de mes contacts + {icon name=cross title="Retirer de mes contacts"} {/if} {if $smarty.session.perms eq admin} diff --git a/templates/include/minifiche.tpl b/templates/include/minifiche.tpl index b16f168..19f4b3a 100644 --- a/templates/include/minifiche.tpl +++ b/templates/include/minifiche.tpl @@ -53,7 +53,7 @@ *}Ajouter à la liste de mes surveillances {else} {* - *}Retirer de la liste de mes surveillances + *}{icon name=cross title="Retirer de la liste de mes surveillances"} {/if} {elseif $c.wasinscrit} {* diff --git a/templates/listes/admin.tpl b/templates/listes/admin.tpl index ec10594..34d73bf 100644 --- a/templates/listes/admin.tpl +++ b/templates/listes/admin.tpl @@ -32,7 +32,7 @@ Tu n'es pas administrateur de la liste, mais du site.

Pour inscrire un utilisateur, il faut remplir les champs prévus à cet effet en saisissant un de ses identifiants, de la forme "prenom.nom", ou "prenom.nom.promo" en cas d'homonymie. Pour inscrire plusieurs utilisateurs, les séparer par des espaces. -L'icône retirer membre permet de désinscrire de la liste quelqu'un +L'icône {icon name=cross title='retirer membre'} permet de désinscrire de la liste quelqu'un qui y était abonné.

@@ -52,7 +52,7 @@ qui y {else} {$x.l} {/if} -
retirer modérateur + {icon name=cross title='retirer modérateur'}
{/foreach} @@ -86,7 +86,7 @@ qui y {else} {$x.l} {/if} - retirer membre + {icon name=cross title='retirer membre'}
{/foreach} diff --git a/templates/listes/index.tpl b/templates/listes/index.tpl index 3e44d3a..504f828 100644 --- a/templates/listes/index.tpl +++ b/templates/listes/index.tpl @@ -40,7 +40,7 @@ imm

Pour se désinscrire, il suffit de la même manière de cliquer sur l'icone -[ désinscription ]. +{icon name=cross title="désinscription"}.

La diffusion sur une liste de diffusion

diff --git a/templates/listes/listes.inc.tpl b/templates/listes/listes.inc.tpl index 0ed3a57..14a4302 100644 --- a/templates/listes/listes.inc.tpl +++ b/templates/listes/listes.inc.tpl @@ -46,7 +46,7 @@ {if $liste.sub eq 2} - [ désinscription ] + {icon name=cross title="me désinscrire"} {elseif $liste.sub eq 1} [ en cours ] diff --git a/templates/listes/members.tpl b/templates/listes/members.tpl index c88b2ae..cef859c 100644 --- a/templates/listes/members.tpl +++ b/templates/listes/members.tpl @@ -58,7 +58,7 @@ {if $details.sub>1} Tu es inscrit sur la liste.
Te désinscrire : - [me désinsiscrire] + {icon name=cross title="me désinsiscrire"} {elseif $details.sub eq 1} Ta demande d'inscription est en cours de validation. {else} diff --git a/templates/listes/options.tpl b/templates/listes/options.tpl index 7c4a4a5..32a4ea9 100644 --- a/templates/listes/options.tpl +++ b/templates/listes/options.tpl @@ -167,7 +167,7 @@ redirection en mode 'inactif'. le logiciel de mailing list saura se d {if $options.accept_these_nonmembers|@count} {foreach from=$options.accept_these_nonmembers item=addr} {$addr} - retirer de la whitelist + {icon name=cross title="retirer de la whitelist"}
{/foreach} {else} diff --git a/templates/listes/trombi.tpl b/templates/listes/trombi.tpl index 08adcab..694fe60 100644 --- a/templates/listes/trombi.tpl +++ b/templates/listes/trombi.tpl @@ -54,7 +54,7 @@ {if $details.sub>1} Tu es inscrit sur la liste.
Te désinscrire : - [me désinsiscrire] + {icon name=cross title="me désinscrire"} {elseif $details.sub eq 1} Ta demande d'inscription est en cours de validation. {else} diff --git a/templates/login.tpl b/templates/login.tpl index d68ad8e..39c2567 100644 --- a/templates/login.tpl +++ b/templates/login.tpl @@ -83,7 +83,7 @@ Bienvenue {$smarty.session.prenom}
- Cacher + {icon name=cross title="Cacher cet article"} {assign var="previd" value=$ev.id} {tidy} -- 2.1.4