/***************************************************************************\
* SPIP, Systeme de publication pour l'internet *
* *
- * Copyright (c) 2001-2011 *
+ * Copyright (c) 2001-2014 *
* Arnaud Martin, Antoine Pitrou, Philippe Riviere, Emmanuel Saint-James *
* *
* Ce programme est un logiciel libre distribue sous licence GNU/GPL. *
return aider_icone(generer_url_ecrire("aide_index", $args));
}
-function aider_icone($url)
+function aider_icone($url, $clic= '')
{
global $spip_lang, $spip_lang_rtl;
- $t = _T('titre_image_aide');
-
+ if (!$clic) {
+ $t = _T('titre_image_aide');
+ $clic = http_img_pack("aide-12".aide_lang_dir($spip_lang,$spip_lang_rtl).".png",
+ _T('info_image_aide'),
+ " title=\"$t\" class='aide'");
+ }
return "\n <a class='aide'\nhref='"
. $url
. "'\nonclick=\"javascript:window.open(this.href,"
. "'spip_aide', "
. "'scrollbars=yes, resizable=yes, width=740, height=580'); "
. "return false;\">"
- . http_img_pack("aide-12".aide_lang_dir($spip_lang,$spip_lang_rtl).".png",
- _T('info_image_aide'),
- " title=\"$t\" class='aide'")
+ . $clic
. "</a>";
}