Help for links pages. Props jorbin. see #13467

git-svn-id: https://develop.svn.wordpress.org/trunk@14909 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Ryan Boren 2010-05-25 22:45:18 +00:00
parent 6d50e25273
commit 779f739cca
3 changed files with 37 additions and 1 deletions

View File

@ -51,6 +51,18 @@ wp_enqueue_script('admin-categories');
if ( current_user_can('manage_categories') )
wp_enqueue_script('inline-edit-tax');
add_contextual_help($current_screen, '<p>' . __('You can create groups of links by using link categories. Link category names must be unique and link categories are separate from the categories you use for posts.') . '</p>' .
'<p>' . __('You can delete link categories, but that action does not delete the links within the category. Instead, it moves them to the default link category.') . '</p>' .
'<p>'. __('For more information:').
'</p>
<ul>
<li>'.__( sprintf ('<a href="%1$s">%2$s</a>', 'http://codex.wordpress.org/Links_Link_Categories_SubPanel', 'Link Categories Documentation') ) .'</li>' .
' <li>'.__( sprintf ('<a href="%1$s">%2$s</a>', 'http://wordpress.org/support/', 'Support Forums') ) .'</li>' .
'</ul>'
);
require_once ('admin-header.php');
$messages[1] = __('Category added.');

View File

@ -37,7 +37,18 @@ do_action('do_meta_boxes', 'link', 'normal', $link);
do_action('do_meta_boxes', 'link', 'advanced', $link);
do_action('do_meta_boxes', 'link', 'side', $link);
add_contextual_help($current_screen, drag_drop_help());
add_contextual_help($current_screen, '<p>' . __('You can add or edit links on this screen by entering information in each of the boxes. Only the link\'s web address and name (the text you want to display on your site as the link) are required fields.') . '</p>' .
'<p>' . __('The boxes for link name, web address, and description have fixed positions, while the others may be repositioned using drag and drop. You can also hide boxes you don\'t use in the Screen Options tab, or minimize boxes by clicking on the title bar of the box.') . '</p>' .
'<p>' . __( sprintf('XFN stands for <a href="%s">XHTML Friends Network</a>, which is optional. WordPress allows the generation of XFN attributes to show how you are related to the authors/owners of site to which you are linking.', 'http://gmpg.org/xfn/' ) ) . '</p>' .
'<p>'. __('For more information:').
'</p>
<ul>
<li>'.__( sprintf ('<a href="%1$s">%2$s</a>', 'http://codex.wordpress.org/Links_Add_New_SubPanel', 'Creating Links Documentation') ) .'</li>' .
' <li>'.__( sprintf ('<a href="%1$s">%2$s</a>', 'http://wordpress.org/support/', 'Support Forums') ) .'</li>' .
'</ul>'
);
require_once ('admin-header.php');

View File

@ -43,6 +43,19 @@ if ( empty($order_by) )
$title = __('Links');
$this_file = $parent_file = 'link-manager.php';
add_contextual_help( $current_screen, '<p>' . __('You can add links here to be displayed on your site, usually using Widgets [link to wp-admin/widgets.php]. By default, links to several sites in WordPress community are included as examples') . '</p>' .
'<p>' . __('Links may be separated into categories; these are different than the categories used on your posts.') . '</p>' .
'<p>' . __('You can customize the display of this screen using he Screen Options tab and/or the dropdown filters above the links table.') . '</p>' .
'<p>' . __('If you delete a link, it will be removed permanently, as Links do not have a Trash function yet. ') . '</p>' .
'<p>' . __('For more information:') . '</p>' .
'<ul>
<li>'.__( sprintf ('<a href="%1$s">%2$s</a>', 'http://codex.wordpress.org/Links_Edit_SubPanel', 'Link Management Documentation') ) .'</li>' .
' <li>'.__( sprintf ('<a href="%1$s">%2$s</a>', 'http://wordpress.org/support/', 'Support Forums') ) .'</li>' .
'</ul>'
);
include_once ('./admin-header.php');
if ( ! current_user_can('manage_links') )