Added help hooks.

Added gethelp_link() and helpWindow() functions.


git-svn-id: https://develop.svn.wordpress.org/trunk@296 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Mike Little
2003-08-07 00:00:55 +00:00
parent c1691badef
commit 95b9f24803
3 changed files with 45 additions and 14 deletions

View File

@@ -8,6 +8,12 @@ require_once($abspath.$b2inc.'/b2functions.php');
require_once($abspath.$b2inc.'/xmlrpc.inc');
require_once($abspath.$b2inc.'/xmlrpcs.inc');
function gethelp_link($this_file, $helptag) {
$url = 'help/en/'.$this_file.'.help.html#'.$helptag;
$s = '&nbsp;<a href="'.$url.'" onclick="javascript:helpWindow(\''.$url.'\'); return false;" title="Click here for help"><span class="helplink">[?]</span></a>';
return $s;
}
if (!isset($use_cache)) $use_cache=1;
if (!isset($blogID)) $blog_ID=1;
if (!isset($debug)) $debug=0;
@@ -77,6 +83,11 @@ setTimeout("redirect();", 600);
window.open ("b2upload.php", "b2upload", "width=380,height=360,location=0,menubar=0,resizable=1,scrollbars=yes,status=1,toolbar=0");
}
function helpWindow(url) {
window.open(url, "Help", "width=640, height=450, location=0, menubar=0, resizable=0, scrollbars=1, status=1, titlebar=0, toolbar=0, screenX=60, left=60, screenY=60, top=60");
}
// End -->
</script>
</head>