mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-04-04 20:54:29 +00:00
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:
@@ -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 = ' <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>
|
||||
|
||||
Reference in New Issue
Block a user