More help for link manager.

git-svn-id: http://svn.automattic.com/wordpress/trunk@303 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
mikelittle 2003-08-09 23:10:16 +00:00
parent 0b12a1a923
commit a3a183fb3b
5 changed files with 16 additions and 16 deletions

View File

@ -10,7 +10,7 @@ require_once($abspath.$b2inc.'/xmlrpcs.inc');
function gethelp_link($this_file, $helptag) { function gethelp_link($this_file, $helptag) {
$url = 'help/en/'.$this_file.'.help.html#'.$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>'; $s = '&nbsp;<span class="helplink"><a href="'.$url.'" onclick="javascript:helpWindow(\''.$url.'\'); return false;" title="Click here for help">[?]</a></span>';
return $s; return $s;
} }
@ -56,7 +56,6 @@ if ($standalone == 0) {
<title>WordPress > <?php bloginfo('name') ?> > <?php echo $title; ?></title> <title>WordPress > <?php bloginfo('name') ?> > <?php echo $title; ?></title>
<link rel="stylesheet" href="b2.css" type="text/css" /> <link rel="stylesheet" href="b2.css" type="text/css" />
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<?php <?php
if ($redirect==1) { if ($redirect==1) {
?> ?>

View File

@ -22,7 +22,7 @@
<dt id="edit_link_category"><a href="#edit_link_category">Edit a link category</a></dt> <dt id="edit_link_category"><a href="#edit_link_category">Edit a link category</a></dt>
<dd>This list display all the link categories you have defined with their <dd>This list displays all the link categories you have defined with their
settings. When used in conjunction with the 'Delete' or 'Edit' button it settings. When used in conjunction with the 'Delete' or 'Edit' button it
allows you to delete or edit the selected category. When editing, you can set allows you to delete or edit the selected category. When editing, you can set
all the same settings as when <a href="#add_link_category">adding</a> a new all the same settings as when <a href="#add_link_category">adding</a> a new
@ -60,7 +60,6 @@
<p>Click on the 'Add Category!' button to add your new category.</p></dd> <p>Click on the 'Add Category!' button to add your new category.</p></dd>
<dt id="auto_toggle"><a href="#auto_toggle">Auto-toggle</a></dt> <dt id="auto_toggle"><a href="#auto_toggle">Auto-toggle</a></dt>
<dd>Auto toggle is a setting for a link category. Setting this to on means <dd>Auto toggle is a setting for a link category. Setting this to on means
that whenever you edit links in this category, the system will only allow one that whenever you edit links in this category, the system will only allow one
link at a time to be visible. If you set a link to be visible, or create a new link at a time to be visible. If you set a link to be visible, or create a new

View File

@ -87,8 +87,8 @@
move button.</dd> move button.</dd>
<dt id="toggle_checkboxes"><a href="#toggle_checkboxes">Toggle Checkboxes</a></dt> <dt id="toggle_checkboxes"><a href="#toggle_checkboxes">Toggle Checkboxes</a></dt>
<dd>This link allows you to toggle the checked state of a ll the links in the <dd>This link allows you to toggle the checked state of all the links in the
list. Links which were checked will become unchecked, links which wrre list. Links which were checked will become unchecked, links which were
unchecked will become checked.</dd> unchecked will become checked.</dd>

View File

@ -2,13 +2,13 @@
// $Id$ // $Id$
// //
// Links // 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 // 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 // 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 // it under the terms of the GNU General Public License as published by
@ -29,7 +29,8 @@
include_once('../wp-links/links.php'); include_once('../wp-links/links.php');
$title = "Link Categories"; $title = 'Link Categories';
$this_file='linkcategories.php';
$b2varstoreset = array('action','standalone','cat', 'auto_toggle'); $b2varstoreset = array('action','standalone','cat', 'auto_toggle');
for ($i=0; $i<count($b2varstoreset); $i += 1) { for ($i=0; $i<count($b2varstoreset); $i += 1) {
@ -293,7 +294,7 @@ switch ($action) {
<tr> <tr>
<td> <td>
<form name="cats" method="post"> <form name="cats" method="post">
<b>Edit</b> a link category:<br /> <b>Edit</b> a link category:<?php echo gethelp_link($this_file,'edit_link_category');?><br />
<table width="" cellpadding="5" cellspacing="0" border="0"> <table width="" cellpadding="5" cellspacing="0" border="0">
<tr style="background-color: #ddd;"> <tr style="background-color: #ddd;">
<th rowspan="2" valign="bottom" style="border-bottom: 1px dotted #9C9A9C;" >Id</th> <th rowspan="2" valign="bottom" style="border-bottom: 1px dotted #9C9A9C;" >Id</th>
@ -360,7 +361,7 @@ $results = $wpdb->get_results("SELECT cat_id, cat_name, auto_toggle, show_images
<input type="hidden" name="action" value="addcat" /> <input type="hidden" name="action" value="addcat" />
<table border="0"> <table border="0">
<tr> <tr>
<th>Add a Link Category:</th> <th>Add a Link Category:<?php echo gethelp_link($this_file,'add_link_category');?></th>
</tr> </tr>
<tr> <tr>
<td align="right">Name:</td> <td align="right">Name:</td>

View File

@ -30,6 +30,7 @@ require_once('../wp-config.php');
include_once("../wp-links/links.php"); include_once("../wp-links/links.php");
$title = 'Import Blogroll'; $title = 'Import Blogroll';
$this_file = 'links.import.php';
$step = $HTTP_GET_VARS['step']; $step = $HTTP_GET_VARS['step'];
if (!$step) $step = 0; if (!$step) $step = 0;
@ -51,15 +52,15 @@ switch ($step) {
<li>Go to <a href="http://www.blogrolling.com">Blogrolling.com</a> <li>Go to <a href="http://www.blogrolling.com">Blogrolling.com</a>
and sign in. Once you've done that, click on <strong>Get Code</strong>, and then and sign in. Once you've done that, click on <strong>Get Code</strong>, and then
look for the <strong><abbr title="Outline Processor Markup Language">OPML</abbr> look for the <strong><abbr title="Outline Processor Markup Language">OPML</abbr>
code</strong>.</li> code</strong><?php echo gethelp_link($this_file,'opml_code');?>.</li>
<li>Select that and copy it into the box below.<br /> <li>Select that and copy it into the box below.<br />
<input type="hidden" name="step" value="1" /> <input type="hidden" name="step" value="1" />
Your OPML code: <input type="text" name="opml_url" size="65" /> Your OPML code:<?php echo gethelp_link($this_file,'opml_code');?> <input type="text" name="opml_url" size="65" />
</li> </li>
<li>Now select a category you want to put these links in.<br /> <li>Now select a category you want to put these links in.<br />
Category: <select name="cat_id"> Category: <?php echo gethelp_link($this_file,'link_category');?><select name="cat_id">
<?php <?php
$categories = $wpdb->get_results("SELECT cat_id, cat_name, auto_toggle FROM $tablelinkcategories ORDER BY cat_id"); $categories = $wpdb->get_results("SELECT cat_id, cat_name, auto_toggle FROM $tablelinkcategories ORDER BY cat_id");
foreach ($categories as $category) { foreach ($categories as $category) {
@ -72,7 +73,7 @@ switch ($step) {
</li> </li>
<li><input type="submit" name="submit" value="Import!" /></li> <li><input type="submit" name="submit" value="Import!" /><?php echo gethelp_link($this_file,'import');?></li>
</ol> </ol>
</form> </form>