Add a fourth antispam level for mailing lists
[platal.git] / plugins / function.display_address.php
index 05268b5..2b1d1a2 100644 (file)
@@ -29,9 +29,9 @@ function smarty_function_display_address($param, &$smarty) {
         !$param['adr']['fax'] &&
         !$param['adr']['mobile']) return "";
 
-    $lines = explode("\n",$txtad);
+    $lines = explode("\n", $txtad);
     $txthtml = "";
-    $map = "<a href=\"http://maps.google.com/?q=".urlencode(implode(", ", $lines))."\"><img src=\"images/icons/user_suit.gif\" title=\"Carte\"/></a>";
+    $map = "<a href=\"http://maps.google.fr/?q=".urlencode(str_replace('États-Unis d\'Amérique', 'USA', implode(", ", $lines)))."\"><img src=\"images/icons/map.gif\" alt=\"Google Maps\" title=\"Carte\"/></a>";
     if ($param['titre'])
     {
         if ($param['titre_div'])