function aider_icone($url, $clic = '') { global $spip_lang, $spip_lang_rtl; if (!$clic) { $t = _T('titre_image_aide'); $clic = http_img_pack("aide" . aide_lang_dir($spip_lang, $spip_lang_rtl) . "-16.png", _T('info_image_aide'), " title=\"{$t}\" class='aide'"); } return "\n <a class='aide popin'\nhref='" . $url . "' target='_blank'>" . $clic . "</a>"; }
function aider_icone($url, $clic= '') { global $spip_lang, $spip_lang_rtl; 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;\">" . $clic . "</a>"; }
function spiplistes_plugin_aide ($fichier_exec_aide, $aide='', $return=true) { include_spip('inc/minipres'); include_spip('inc/aider'); global $spip_lang , $spip_lang_rtl , $spip_display ; if (!$aide || $spip_display == 4) return; $t = _T('titre_image_aide'); $result = "" . "\n <a class='aide'\nhref='" . generer_url_ecrire($fichier_exec_aide, "var_lang=$spip_lang") . ( (!empty($aide)) ? "#$aide" : "" ) . "'" . " onclick=\"javascript:window.open(this.href,'spip_aide', 'scrollbars=yes, resizable=yes, width=740, height=580'); return false;\">\n" . http_img_pack( "aide".aide_lang_dir($spip_lang,$spip_lang_rtl).".gif" , _T('info_image_aide') , " title=\"$t\" class='aide'" ) . "</a>" ; if($return) return($result); else echo($result); } // spiplistes_plugin_aide()