From 95b9f24803162fca5bed352e3606f92efda42a69 Mon Sep 17 00:00:00 2001 From: Mike Little Date: Thu, 7 Aug 2003 00:00:55 +0000 Subject: [PATCH] Added help hooks. Added gethelp_link() and helpWindow() functions. git-svn-id: https://develop.svn.wordpress.org/trunk@296 602fd350-edb4-49c9-b593-d223f7449a82 --- wp-admin/b2header.php | 11 +++++++++ wp-admin/help/en/linkmanager.php.help.html | 20 ++++++++++++++++ wp-admin/linkmanager.php | 28 +++++++++++----------- 3 files changed, 45 insertions(+), 14 deletions(-) diff --git a/wp-admin/b2header.php b/wp-admin/b2header.php index e76bd916d1..345b9e8a0c 100644 --- a/wp-admin/b2header.php +++ b/wp-admin/b2header.php @@ -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 = ' [?]'; + 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 --> diff --git a/wp-admin/help/en/linkmanager.php.help.html b/wp-admin/help/en/linkmanager.php.help.html index c3538b808d..4bdab0d23b 100644 --- a/wp-admin/help/en/linkmanager.php.help.html +++ b/wp-admin/help/en/linkmanager.php.help.html @@ -74,6 +74,26 @@
This list and button allow you to assign the ownership of links (for which you have administration privileges) to someone else.
+ +
Toggle Visibility
+
This button allow you to toggle the visibility of the checked links (for + which you have administration privileges). Visible links become invisible and + invisible links become visible.
+ +
Move To Category
This + list and button allow you to move several links (for which you have + administration privileges) at the same time. Check the checkboxes of the links + you wish to change, select a category from the drop down list and click the + move button.
+ +
Toggle Checkboxes
+
This link allows you to toggle the checked state of a ll the links in the + list. Links which were checked will become unchecked, links which wrre + unchecked will become checked.
+ + + +
diff --git a/wp-admin/linkmanager.php b/wp-admin/linkmanager.php index 57f40952c0..e7ca71491b 100644 --- a/wp-admin/linkmanager.php +++ b/wp-admin/linkmanager.php @@ -2,13 +2,13 @@ // $Id$ // // Links -// Copyright (C) 2002 Mike Little -- mike@zed1.com +// Copyright (C) 2002, 2003 Mike Little -- mike@zed1.com // -// This is an add-on to b2 weblog / news publishing tool +// This is an add-on to b2/WordPress weblog / news publishing tool // b2 is copyright (c)2001, 2002 by Michel Valdrighi - m@tidakada.com // // ********************************************************************** -// Copyright (C) 2002 Mike Little +// Copyright (C) 2002, 2003 Mike Little // // This program is free software; you can redistribute it and/or modify // it under the terms of the GNU General Public License as published by @@ -483,15 +483,15 @@ function checkAll(form) - - + + @@ -526,7 +526,7 @@ function checkAll(form)
Link Categories:Manage Link CategoriesImport BlogrollManage Link CategoriesImport Blogroll
- Show links in category:
+ Show links in category:
- Order by: + Order by:
- +
@@ -543,7 +543,7 @@ function checkAll(form) - + @@ -627,7 +627,7 @@ LINKS;
Name Name URL Category Rel
Use the checkboxes on the right to select multiple links and choose an action below:
- ownership to: + ownership to: get_results("SELECT ID, user_login FROM $tableusers WHERE user_level > 0 ORDER BY ID"); echo " - Toggle + Toggle - to category + to category - Toggle Checkboxes + Toggle Checkboxes
@@ -662,7 +662,7 @@ LINKS; - +
Add a link:
Add a link:
URL: