예제 #1
0
파일: aider.php 프로젝트: genma/spip_ynh
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&nbsp;&nbsp;<a class='aide popin'\nhref='" . $url . "' target='_blank'>" . $clic . "</a>";
}
예제 #2
0
파일: aider.php 프로젝트: rhertzog/lcs
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&nbsp;<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>";
}
예제 #3
0
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&nbsp;&nbsp;<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()