From 690d828227e57c6173378af1eb3507c4d4144824 Mon Sep 17 00:00:00 2001 From: =?utf8?q?St=C3=A9phane=20Jacob?= Date: Mon, 28 Nov 2011 14:28:40 +0100 Subject: [PATCH] Displays mail icon if an adress can receive snail mail. MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Stéphane Jacob --- htdocs/images/icons/email_open.gif | Bin 0 -> 1044 bytes plugins/function.display_address.php | 9 +++++++-- 2 files changed, 7 insertions(+), 2 deletions(-) create mode 100644 htdocs/images/icons/email_open.gif diff --git a/htdocs/images/icons/email_open.gif b/htdocs/images/icons/email_open.gif new file mode 100644 index 0000000000000000000000000000000000000000..2b72ce7dc2bdb6f31d81c74bcb6d3591c9c9b9ee GIT binary patch literal 1044 zcmeIx>q}E{90u?s8EQl>Q?ihnvC^~)GYKQ3o28c07QLwmG9}0tDk5rH=4H(^6D?ds zQ!H&2D=^LOdD+yQ+jL%Xt$CSE=XQ47&e?H0=jS;)YyJoQ0X=+pUOlhA@J&oU9d{^= z1+gHa5sK#5a<8;-)7#>+yW(=b#us#*$d{fhkRHo>b2?vktho0?iHv_o#=G60T=D%> zsVuQvo-CA~5z5b2%2O)ky!$^c3l+SYLEeKwUX9{P)!_A7RpujAmPnobSe>(KIJ03q zN2JMnswrsH zRY|9-r8D(XZA1H%;Pss7y;0O@6n$7|_=dK0FE)2untD;uq^G3^mdGs9KFjNV_+7uT zZOGc8ggb_;ACz#X66sVfeI7x+jM%?vkaudVU4?zr(tST|DjhsAYgbR&ikA&kL{8?E>};xr*Hv(06(69x-uvH=7mOenpG(ujjx!pS8Eu;HX_wSgT6$TDeP z2Iw-toGYl4!U)RYqHr&Q!kn~&U~qz2CMlfsI05YfG~u;EI{`zkxJk+lC~q^si}p~o zhhaS4K>za(7YGNwJ`mId?OENf{siQYK}Q0@%!))-xxe37=(WY+psfLZLrLvPk0fW# zXCzGU7e-s+Z${p5w694E4C3(WBC)cH>cH)SPiSj;^0r`cF02A+{7qp8qxMGi2HfMb z_g~6^4X*}$g72lU)+U4mhDC`(1%`)n6_N-}T=))-zec=I9E-9pq@8@hJ(pz&7x>p- z+;a4JTPIJke#@@tt37o->319U6h+6Hshx_=F&P6jAjVfIIvx^qAxNH)@`PKb5a_P? zD%tCOqqw`}!qlg+Z^xT;xtt9`sPGRvw@<&3lk|9Bs_Z~N1o^C47hH%!GC@E{SW*PU IW\"Google"; + if ($adr->flags->hasflag('mail')) { + $mail = ' Adresse courier'; + } else { + $mail = ''; + } $comment = ""; if ($adr->comment != "") { @@ -89,9 +94,9 @@ function smarty_function_display_address($param, $smarty) if ($param['titre']) { if ($param['titre_div']) - $txthtml .= "
".pl_entity_decode($param['titre'])." ".$map.$comment."
\n"; + $txthtml .= '
' . pl_entity_decode($param['titre']) . ' ' . $map . $mail . $comment . "
\n"; else - $txthtml .= "".pl_entity_decode($param['titre'])." ".$map.$comment."
\n"; + $txthtml .= '' . pl_entity_decode($param['titre']) . ' ' . $map . $mail . $comment . "
\n"; } foreach ($lines as $line) { -- 2.1.4