New admin styling and improved navigation.
git-svn-id: http://svn.automattic.com/wordpress/trunk@590 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
cbb0f32f0f
commit
2917579b95
|
@ -11,7 +11,8 @@ foreach ($menu as $item) {
|
||||||
if ($continue) {
|
if ($continue) {
|
||||||
$item = explode("\t", $item);
|
$item = explode("\t", $item);
|
||||||
// 0 = user level, 1 = file, 2 = name
|
// 0 = user level, 1 = file, 2 = name
|
||||||
if (substr($PHP_SELF, -7) == substr($item[1], -7)) $class = ' class="current"';
|
$self = str_replace('/wp-admin/', '', $PHP_SELF);
|
||||||
|
if ((substr($self, -20) == substr($item[1], -20)) || ($parent_file && ($item[1] == $parent_file))) $class = ' class="current"';
|
||||||
if ($user_level >= $item[0]) echo "\n\t<li><a href='{$item[1]}'$class>{$item[2]}</a></li>";
|
if ($user_level >= $item[0]) echo "\n\t<li><a href='{$item[1]}'$class>{$item[2]}</a></li>";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -147,7 +147,7 @@ default:
|
||||||
</style>
|
</style>
|
||||||
<div class="wrap">
|
<div class="wrap">
|
||||||
<h2>Current Categories</h2>
|
<h2>Current Categories</h2>
|
||||||
<table width="100%">
|
<table width="100%" cellpadding="3" cellspacing="3">
|
||||||
<tr>
|
<tr>
|
||||||
<th scope="col">Name</th>
|
<th scope="col">Name</th>
|
||||||
<th scope="col">Description</th>
|
<th scope="col">Description</th>
|
||||||
|
|
|
@ -1,5 +1,6 @@
|
||||||
<?php
|
<?php
|
||||||
$title = 'Edit Comments';
|
$title = 'Edit Comments';
|
||||||
|
$parent_file = 'edit.php';
|
||||||
require_once('b2header.php');
|
require_once('b2header.php');
|
||||||
|
|
||||||
if (!$showcomments) {
|
if (!$showcomments) {
|
||||||
|
|
|
@ -1,36 +1,12 @@
|
||||||
<?php
|
<?php
|
||||||
// $Id$
|
|
||||||
//
|
|
||||||
// Links
|
// Links
|
||||||
// Copyright (C) 2002, 2003 Mike Little -- mike@zed1.com
|
// Copyright (C) 2002, 2003 Mike Little -- mike@zed1.com
|
||||||
//
|
|
||||||
// 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, 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
|
|
||||||
// the Free Software Foundation; either version 2 of the License, or
|
|
||||||
// (at your option) any later version.
|
|
||||||
//
|
|
||||||
// This program is distributed in the hope that it will be useful, but
|
|
||||||
// WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
||||||
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
||||||
// General Public License for more details.
|
|
||||||
//
|
|
||||||
// You should have received a copy of the GNU General Public License
|
|
||||||
// along with this program; if not, write to the Free Software
|
|
||||||
// Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
|
||||||
//
|
|
||||||
// Mike Little (mike@zed1.com)
|
|
||||||
// *****************************************************************
|
|
||||||
|
|
||||||
include_once('../wp-links/links.php');
|
include_once('../wp-links/links.php');
|
||||||
|
|
||||||
$title = 'Link Categories';
|
$title = 'Link Categories';
|
||||||
$this_file='linkcategories.php';
|
$this_file='linkcategories.php';
|
||||||
|
$parent_file = 'linkmanager.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) {
|
||||||
|
@ -139,6 +115,13 @@ switch ($action) {
|
||||||
$row->list_limit = '';
|
$row->list_limit = '';
|
||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
|
|
||||||
|
<ul id="adminmenu2">
|
||||||
|
<li><a href="linkmanager.php" >Manage Links</a></li>
|
||||||
|
<li><a href="linkcategories.php" class="current">Link Categories</a></li>
|
||||||
|
<li class="last"><a href="links.import.php">Import Blogroll</a></li>
|
||||||
|
</ul>
|
||||||
|
|
||||||
<div class="wrap">
|
<div class="wrap">
|
||||||
<p>Edit Link Category '<b><?php echo $row->cat_name?></b>'</p>
|
<p>Edit Link Category '<b><?php echo $row->cat_name?></b>'</p>
|
||||||
<p>
|
<p>
|
||||||
|
@ -291,6 +274,11 @@ switch ($action) {
|
||||||
die("You have no right to edit the link categories for this blog.<br>Ask for a promotion to your <a href=\"mailto:$admin_email\">blog admin</a> :)");
|
die("You have no right to edit the link categories for this blog.<br>Ask for a promotion to your <a href=\"mailto:$admin_email\">blog admin</a> :)");
|
||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
|
<ul id="adminmenu2">
|
||||||
|
<li><a href="linkmanager.php" >Manage Links</a></li>
|
||||||
|
<li><a href="linkcategories.php" class="current">Link Categories</a></li>
|
||||||
|
<li class="last"><a href="links.import.php">Import Blogroll</a></li>
|
||||||
|
</ul>
|
||||||
<div class="wrap">
|
<div class="wrap">
|
||||||
<table width="" cellpadding="5" cellspacing="0" border="0">
|
<table width="" cellpadding="5" cellspacing="0" border="0">
|
||||||
<tr>
|
<tr>
|
||||||
|
|
|
@ -1,31 +1,7 @@
|
||||||
<?php
|
<?php
|
||||||
// $Id$
|
|
||||||
//
|
|
||||||
// Links
|
// Links
|
||||||
// Copyright (C) 2002, 2003 Mike Little -- mike@zed1.com
|
// Copyright (C) 2002, 2003 Mike Little -- mike@zed1.com
|
||||||
//
|
|
||||||
// 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, 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
|
|
||||||
// the Free Software Foundation; either version 2 of the License, or
|
|
||||||
// (at your option) any later version.
|
|
||||||
//
|
|
||||||
// This program is distributed in the hope that it will be useful, but
|
|
||||||
// WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
||||||
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
||||||
// General Public License for more details.
|
|
||||||
//
|
|
||||||
// You should have received a copy of the GNU General Public License
|
|
||||||
// along with this program; if not, write to the Free Software
|
|
||||||
// Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
|
||||||
//
|
|
||||||
// Mike Little (mike@zed1.com)
|
|
||||||
// *****************************************************************
|
|
||||||
require_once('../wp-config.php');
|
require_once('../wp-config.php');
|
||||||
require_once("../wp-links/links.php");
|
require_once("../wp-links/links.php");
|
||||||
|
|
||||||
|
@ -322,41 +298,41 @@ switch ($action) {
|
||||||
|
|
||||||
<div class="wrap">
|
<div class="wrap">
|
||||||
|
|
||||||
<table width="95%" cellpadding="5" cellspacing="0" border="0">
|
<table width="100%" cellpadding="3" cellspacing="3">
|
||||||
<form name="editlink" method="post">
|
<form name="editlink" method="post">
|
||||||
<input type="hidden" name="action" value="editlink" />
|
<input type="hidden" name="action" value="editlink" />
|
||||||
<input type="hidden" name="link_id" value="<?php echo $link_id; ?>" />
|
<input type="hidden" name="link_id" value="<?php echo $link_id; ?>" />
|
||||||
<input type="hidden" name="order_by" value="<?php echo $order_by ?>" />
|
<input type="hidden" name="order_by" value="<?php echo $order_by ?>" />
|
||||||
<input type="hidden" name="cat_id" value="<?php echo $cat_id ?>" />
|
<input type="hidden" name="cat_id" value="<?php echo $cat_id ?>" />
|
||||||
<tr>
|
<tr>
|
||||||
<td colspan="2"><b>Edit</b> a link:</td>
|
<td colspan="2"><strong>Edit</strong> a link:</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr height="20">
|
<tr>
|
||||||
<td height="20" align="right">URL:</td>
|
<td align="right">URL:</td>
|
||||||
<td><input type="text" name="linkurl" size="80" value="<?php echo $link_url; ?>"></td>
|
<td><input type="text" name="linkurl" size="80" value="<?php echo $link_url; ?>"></td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr height="20">
|
<tr>
|
||||||
<td height="20" align="right">Display Name/Alt text:</td>
|
<td align="right">Display Name/Alt text:</td>
|
||||||
<td><input type="text" name="name" size="80" value="<?php echo $link_name; ?>"></td>
|
<td><input type="text" name="name" size="80" value="<?php echo $link_name; ?>"></td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr height="20">
|
<tr>
|
||||||
<td height="20" align="right">Image:</td>
|
<td align="right">Image:</td>
|
||||||
<td><input type="text" name="image" size="80" value="<?php echo $link_image; ?>"></td>
|
<td><input type="text" name="image" size="80" value="<?php echo $link_image; ?>"></td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr height="20">
|
<tr>
|
||||||
<td height="20" align="right">Description:</td>
|
<td align="right">Description:</td>
|
||||||
<td><input type="text" name="description" size="80" value="<?php echo $link_description; ?>"></td>
|
<td><input type="text" name="description" size="80" value="<?php echo $link_description; ?>"></td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr height="20">
|
<tr>
|
||||||
<td height="20" align="right">Rel:</td>
|
<td align="right">Rel:</td>
|
||||||
<td><input type="text" name="rel" size="80" value="<?php echo $link_rel; ?>"></td>
|
<td><input type="text" name="rel" size="80" value="<?php echo $link_rel; ?>"></td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr height="20">
|
<tr>
|
||||||
<td height="20" valign="top" align="right">Notes:</td>
|
<td valign="top" align="right">Notes:</td>
|
||||||
<td><textarea name="notes" cols="80" rows="10"><?php echo $link_notes; ?></textarea></td>
|
<td><textarea name="notes" cols="80" rows="10"><?php echo $link_notes; ?></textarea></td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr height="20">
|
<tr>
|
||||||
<td height="20" align="right">Rating:</td>
|
<td align="right">Rating:</td>
|
||||||
<td>
|
<td>
|
||||||
<select name="rating" size="1">
|
<select name="rating" size="1">
|
||||||
<?php
|
<?php
|
||||||
|
@ -370,15 +346,15 @@ switch ($action) {
|
||||||
</select> (Leave at 0 for no rating.)
|
</select> (Leave at 0 for no rating.)
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr height="20">
|
<tr>
|
||||||
<td height="20" align="right">Target:</td>
|
<td align="right">Target:</td>
|
||||||
<td><label><input type="radio" name="target" value="_blank" <?php echo(($link_target == '_blank') ? 'checked="checked"' : ''); ?>> _blank</label>
|
<td><label><input type="radio" name="target" value="_blank" <?php echo(($link_target == '_blank') ? 'checked="checked"' : ''); ?>> _blank</label>
|
||||||
<label><input type="radio" name="target" value="_top" <?php echo(($link_target == '_top') ? 'checked="checked"' : ''); ?>> _top</label>
|
<label><input type="radio" name="target" value="_top" <?php echo(($link_target == '_top') ? 'checked="checked"' : ''); ?>> _top</label>
|
||||||
<label><input type="radio" name="target" value="" <?php echo(($link_target == '') ? 'checked="checked"' : ''); ?>> none</label>
|
<label><input type="radio" name="target" value="" <?php echo(($link_target == '') ? 'checked="checked"' : ''); ?>> none</label>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr height="20">
|
<tr>
|
||||||
<td height="20" align="right">Visible:</td>
|
<td align="right">Visible:</td>
|
||||||
<td><label>
|
<td><label>
|
||||||
<input type="radio" name="visible" <?php if ($link_visible == 'Y') echo "checked"; ?> value="Y">
|
<input type="radio" name="visible" <?php if ($link_visible == 'Y') echo "checked"; ?> value="Y">
|
||||||
Yes</label>
|
Yes</label>
|
||||||
|
@ -387,13 +363,13 @@ switch ($action) {
|
||||||
No</label>
|
No</label>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr height="20">
|
<tr>
|
||||||
<td height="20" align="right"><label for="category">Category</label>:</td>
|
<td align="right"><label for="category">Category</label>:</td>
|
||||||
<td>
|
<td>
|
||||||
<?php category_dropdown('category', $link_category); ?>
|
<?php category_dropdown('category', $link_category); ?>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr height="20">
|
<tr>
|
||||||
<td colspan="2" align="center">
|
<td colspan="2" align="center">
|
||||||
<input type="submit" name="submit" value="Save" class="search">
|
<input type="submit" name="submit" value="Save" class="search">
|
||||||
<input type="submit" name="submit" value="Cancel" class="search">
|
<input type="submit" name="submit" value="Cancel" class="search">
|
||||||
|
@ -477,22 +453,22 @@ function checkAll(form)
|
||||||
}
|
}
|
||||||
//-->
|
//-->
|
||||||
</script>
|
</script>
|
||||||
|
<ul id="adminmenu2">
|
||||||
|
<li><a href="linkmanager.php" class="current">Manage Links</a></li>
|
||||||
|
<li><a href="linkcategories.php">Link Categories</a></li>
|
||||||
|
<li class="last"><a href="links.import.php">Import Blogroll</a></li>
|
||||||
|
</ul>
|
||||||
<div class="wrap">
|
<div class="wrap">
|
||||||
<form name="cats" method="post">
|
<form name="cats" method="post">
|
||||||
<table width="75%" cellpadding="5" cellspacing="0" border="0">
|
<table width="75%" cellpadding="3" cellspacing="3">
|
||||||
<tr>
|
|
||||||
<td><b>Link Categories:</b></td>
|
|
||||||
<td><a href="linkcategories.php">Manage Link Categories</a><?php echo gethelp_link($this_file,'manage_link_categories');?></td>
|
|
||||||
<td><a href="links.import.php">Import Blogroll</a><?php echo gethelp_link($this_file,'import_blogroll');?></td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
<tr>
|
||||||
<td>
|
<td>
|
||||||
<b>Show</b> links in category:<?php echo gethelp_link($this_file,'link_categories');?><br />
|
<strong>Show</strong> links in category:<?php echo gethelp_link($this_file,'link_categories');?><br />
|
||||||
</td>
|
</td>
|
||||||
<td>
|
<td>
|
||||||
<b>Order</b> by:<?php echo gethelp_link($this_file,'order_by');?>
|
<strong>Order</strong> by:<?php echo gethelp_link($this_file,'order_by');?>
|
||||||
</td>
|
</td>
|
||||||
|
<td> </td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td>
|
<td>
|
||||||
|
@ -541,16 +517,15 @@ function checkAll(form)
|
||||||
<input type="hidden" name="action" value="" />
|
<input type="hidden" name="action" value="" />
|
||||||
<input type="hidden" name="order_by" value="<?php echo $order_by ?>" />
|
<input type="hidden" name="order_by" value="<?php echo $order_by ?>" />
|
||||||
<input type="hidden" name="cat_id" value="<?php echo $cat_id ?>" />
|
<input type="hidden" name="cat_id" value="<?php echo $cat_id ?>" />
|
||||||
<table width="100%" border="0" cellspacing="0" cellpadding="3">
|
<table width="100%" cellpadding="3" cellspacing="3">
|
||||||
<tr>
|
<tr>
|
||||||
<th width="15%"><?php echo gethelp_link($this_file,'list_o_links');?> Name</th>
|
<th width="15%"><?php echo gethelp_link($this_file,'list_o_links');?> Name</th>
|
||||||
<th>URL</th>
|
<th>URI</th>
|
||||||
<th>Category</th>
|
<th>Category</th>
|
||||||
<th>Rel</th>
|
<th>rel</th>
|
||||||
<th>Image</th>
|
<th>Image</th>
|
||||||
<th>Visible</th>
|
<th>Visible</th>
|
||||||
<th> </th>
|
<th colspan="2">Action</th>
|
||||||
<th> </th>
|
|
||||||
<th> </th>
|
<th> </th>
|
||||||
</tr>
|
</tr>
|
||||||
<?php
|
<?php
|
||||||
|
@ -586,14 +561,16 @@ function checkAll(form)
|
||||||
++$i;
|
++$i;
|
||||||
$style = ($i % 2) ? ' class="alternate"' : '';
|
$style = ($i % 2) ? ' class="alternate"' : '';
|
||||||
echo <<<LINKS
|
echo <<<LINKS
|
||||||
|
|
||||||
|
|
||||||
<tr valign="middle" $style>
|
<tr valign="middle" $style>
|
||||||
<td><strong>$link->link_name</strong><br />
|
<td><strong>$link->link_name</strong><br />
|
||||||
Description: $link->link_description</td>
|
Description: $link->link_description</td>
|
||||||
<td><a href="$link->link_url" title="Visit $link->link_name">$short_url</a></td>
|
<td><a href="$link->link_url" title="Visit $link->link_name">$short_url</a></td>
|
||||||
<td>$link->category</td>
|
<td>$link->category</td>
|
||||||
<td>$link->link_rel</td>
|
<td>$link->link_rel</td>
|
||||||
<td>$image</td>
|
<td align='center'>$image</td>
|
||||||
<td>$visible</td>
|
<td align='center'>$visible</td>
|
||||||
LINKS;
|
LINKS;
|
||||||
$show_buttons = 1; // default
|
$show_buttons = 1; // default
|
||||||
|
|
||||||
|
@ -608,21 +585,18 @@ LINKS;
|
||||||
<td><input type="checkbox" name="linkcheck[]" value="$link->link_id" /><td>
|
<td><input type="checkbox" name="linkcheck[]" value="$link->link_id" /><td>
|
||||||
LINKS;
|
LINKS;
|
||||||
} else {
|
} else {
|
||||||
echo <<<LINKS
|
echo "<td> </td><td> </td><td> </td>\n";
|
||||||
<td> </td>
|
|
||||||
<td> </td>
|
|
||||||
<td> </td>
|
|
||||||
LINKS;
|
|
||||||
}
|
}
|
||||||
|
echo "\n\t</tr>";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
</tr>
|
|
||||||
</table>
|
</table>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="wrap">
|
<div class="wrap">
|
||||||
<table width="100%" border="0" cellspacing="0" cellpadding="3">
|
<table width="100%" cellpadding="3" cellspacing="3">
|
||||||
<tr><th colspan="4">Manage Multiple Links:</th></tr>
|
<tr><th colspan="4">Manage Multiple Links:</th></tr>
|
||||||
<tr><td colspan="4">Use the checkboxes on the right to select multiple links and choose an action below:</td></tr>
|
<tr><td colspan="4">Use the checkboxes on the right to select multiple links and choose an action below:</td></tr>
|
||||||
<tr>
|
<tr>
|
||||||
|
@ -659,36 +633,36 @@ LINKS;
|
||||||
|
|
||||||
<div class="wrap">
|
<div class="wrap">
|
||||||
|
|
||||||
<table width="95%" cellpadding="5" cellspacing="0" border="0">
|
<table width="100%" cellpadding="3" cellspacing="3">
|
||||||
<form name="addlink" method="post">
|
<form name="addlink" method="post" action="">
|
||||||
<input type="hidden" name="action" value="Add" />
|
<input type="hidden" name="action" value="Add" />
|
||||||
<tr><td colspan="2"><b>Add</b> a link:<?php echo gethelp_link($this_file,'add_a_link');?></td></tr>
|
<tr><td colspan="2"><strong>Add</strong> a link:<?php echo gethelp_link($this_file,'add_a_link');?></td></tr>
|
||||||
<tr height="20">
|
<tr>
|
||||||
<td height="20" align="right">URL:</td>
|
<td align="right">URL:</td>
|
||||||
<td><input type="text" name="linkurl" size="80" value="<?php echo $link_url; ?>"></td>
|
<td><input type="text" name="linkurl" size="80" value="<?php echo $link_url; ?>"></td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr height="20">
|
<tr>
|
||||||
<td height="20" align="right">Display Name/Alt text:</td>
|
<td align="right">Display Name/Alt text:</td>
|
||||||
<td><input type="text" name="name" size="80" value="<?php echo $link_name; ?>"></td>
|
<td><input type="text" name="name" size="80" value="<?php echo $link_name; ?>"></td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr height="20">
|
<tr>
|
||||||
<td height="20" align="right">Image:</td>
|
<td align="right">Image:</td>
|
||||||
<td><input type="text" name="image" size="80" value=""></td>
|
<td><input type="text" name="image" size="80" value=""></td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr height="20">
|
<tr>
|
||||||
<td height="20" align="right">Description:</td>
|
<td align="right">Description:</td>
|
||||||
<td><input type="text" name="description" size="80" value=""></td>
|
<td><input type="text" name="description" size="80" value=""></td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr height="20">
|
<tr>
|
||||||
<td height="20" align="right">Rel:</td>
|
<td align="right">rel:</td>
|
||||||
<td><input type="text" name="rel" size="80" value=""></td>
|
<td><input type="text" name="rel" size="80" value=""></td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr height="20">
|
<tr>
|
||||||
<td height="20" valign="top" align="right">Notes:</td>
|
<td valign="top" align="right">Notes:</td>
|
||||||
<td><textarea name="notes" cols="80" rows="10"></textarea></td>
|
<td><textarea name="notes" cols="80" rows="10"></textarea></td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr height="20">
|
<tr>
|
||||||
<td height="20" align="right">Rating:</td>
|
<td align="right">Rating:</td>
|
||||||
<td>
|
<td>
|
||||||
<select name="rating" size="1">
|
<select name="rating" size="1">
|
||||||
<?php
|
<?php
|
||||||
|
@ -699,15 +673,15 @@ LINKS;
|
||||||
</select> (Leave at 0 for no rating.)
|
</select> (Leave at 0 for no rating.)
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr height="20">
|
<tr>
|
||||||
<td height="20" align="right">Target:</td>
|
<td align="right">Target:</td>
|
||||||
<td><label><input type="radio" name="target" value="_blank"> _blank</label>
|
<td><label><input type="radio" name="target" value="_blank"> _blank</label>
|
||||||
<label><input type="radio" name="target" value="_top"> _top</label>
|
<label><input type="radio" name="target" value="_top"> _top</label>
|
||||||
<label><input type="radio" name="target" value="" checked="checked"> none</label>
|
<label><input type="radio" name="target" value="" checked="checked"> none</label>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr height="20">
|
<tr>
|
||||||
<td height="20" align="right">Visible:</td>
|
<td align="right">Visible:</td>
|
||||||
<td><label>
|
<td><label>
|
||||||
<input type="radio" name="visible" checked="checked" value="Y">
|
<input type="radio" name="visible" checked="checked" value="Y">
|
||||||
Yes</label>
|
Yes</label>
|
||||||
|
@ -716,13 +690,13 @@ LINKS;
|
||||||
No</label>
|
No</label>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr height="20">
|
<tr>
|
||||||
<td height="20" align="right"><label for="category">Category</label>:</td>
|
<td align="right"><label for="category">Category</label>:</td>
|
||||||
<td>
|
<td>
|
||||||
<?php category_dropdown('category'); ?>
|
<?php category_dropdown('category'); ?>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr height="20">
|
<tr>
|
||||||
<td colspan="2" align="center">
|
<td colspan="2" align="center">
|
||||||
<input type="submit" name="submit" value="Add" class="search">
|
<input type="submit" name="submit" value="Add" class="search">
|
||||||
</td>
|
</td>
|
||||||
|
|
|
@ -1,34 +1,11 @@
|
||||||
<?php
|
<?php
|
||||||
// $Id$
|
|
||||||
//
|
|
||||||
// Links
|
// Links
|
||||||
// Copyright (C) 2002 Mike Little -- mike@zed1.com
|
// Copyright (C) 2002 Mike Little -- mike@zed1.com
|
||||||
//
|
|
||||||
// This is an add-on to b2 weblog / news publishing tool
|
|
||||||
// b2 is copyright (c)2001, 2002 by Michel Valdrighi - m@tidakada.com
|
|
||||||
//
|
|
||||||
// **********************************************************************
|
|
||||||
// Copyright (C) 2002 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
|
|
||||||
// the Free Software Foundation; either version 2 of the License, or
|
|
||||||
// (at your option) any later version.
|
|
||||||
//
|
|
||||||
// This program is distributed in the hope that it will be useful, but
|
|
||||||
// WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
||||||
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
||||||
// General Public License for more details.
|
|
||||||
//
|
|
||||||
// You should have received a copy of the GNU General Public License
|
|
||||||
// along with this program; if not, write to the Free Software
|
|
||||||
// Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
|
||||||
//
|
|
||||||
// Mike Little (mike@zed1.com)
|
|
||||||
// *****************************************************************
|
|
||||||
require_once('../wp-config.php');
|
require_once('../wp-config.php');
|
||||||
include_once("../wp-links/links.php");
|
include_once("../wp-links/links.php");
|
||||||
|
|
||||||
|
$parent_file = 'linkmanager.php';
|
||||||
$title = 'Import Blogroll';
|
$title = 'Import Blogroll';
|
||||||
$this_file = 'links.import.php';
|
$this_file = 'links.import.php';
|
||||||
|
|
||||||
|
@ -46,6 +23,13 @@ switch ($step) {
|
||||||
|
|
||||||
$opmltype = 'blogrolling'; // default.
|
$opmltype = 'blogrolling'; // default.
|
||||||
?>
|
?>
|
||||||
|
|
||||||
|
<ul id="adminmenu2">
|
||||||
|
<li><a href="linkmanager.php" >Manage Links</a></li>
|
||||||
|
<li><a href="linkcategories.php">Link Categories</a></li>
|
||||||
|
<li class="last"><a href="links.import.php" class="current">Import Blogroll</a></li>
|
||||||
|
</ul>
|
||||||
|
|
||||||
<div class="wrap">
|
<div class="wrap">
|
||||||
|
|
||||||
<h3>On this page you can import your blogroll.</h3>
|
<h3>On this page you can import your blogroll.</h3>
|
||||||
|
@ -65,8 +49,14 @@ switch ($step) {
|
||||||
Your OPML code:<?php echo gethelp_link($this_file,'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>Did you use
|
<li>Did you use
|
||||||
<input type="radio" name="opmltype" value="blogrolling" <?php echo(($opmltype == 'blogrolling') ? 'checked="checked"' : ''); ?>>blogrolling.com
|
<label>
|
||||||
or <input type="radio" name="opmltype" value="blo.gs" <?php echo(($link_target == 'blo.gs') ? 'checked="checked"' : ''); ?>>blo.gs ?
|
<input type="radio" name="opmltype" value="blogrolling" <?php echo(($opmltype == 'blogrolling') ? 'checked="checked"' : ''); ?>>
|
||||||
|
blogrolling.com</label>
|
||||||
|
or
|
||||||
|
<label>
|
||||||
|
<input type="radio" name="opmltype" value="blo.gs" <?php echo(($link_target == 'blo.gs') ? 'checked="checked"' : ''); ?>>
|
||||||
|
blo.gs</label>
|
||||||
|
?
|
||||||
</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 />
|
||||||
|
|
|
@ -158,6 +158,10 @@ textarea, input, select {
|
||||||
color: #171717;
|
color: #171717;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#adminmenu .current {
|
||||||
|
font-weight: bold;
|
||||||
|
}
|
||||||
|
|
||||||
#adminmenu li, #adminmenu2 li {
|
#adminmenu li, #adminmenu2 li {
|
||||||
display: inline;
|
display: inline;
|
||||||
line-height: 2.0em;
|
line-height: 2.0em;
|
||||||
|
@ -287,16 +291,18 @@ textarea, input, select {
|
||||||
}
|
}
|
||||||
|
|
||||||
#wphead {
|
#wphead {
|
||||||
background: url(../b2-img/wp-small.png) no-repeat;
|
height: 44px;
|
||||||
border-bottom: 4px solid #333;
|
margin: 0;
|
||||||
height: 42px;
|
background: repeat-x url(../b2-img/header-shadow.png) #f2f2f2;
|
||||||
margin: 0 2px;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
#wphead a {
|
#wphead a {
|
||||||
display: block;
|
display: block;
|
||||||
height: 42px;
|
background: url(../b2-img/wp-small.png) no-repeat;
|
||||||
|
height: 44px;
|
||||||
text-decoration: none;
|
text-decoration: none;
|
||||||
text-indent: -1000px;
|
text-indent: -1000px;
|
||||||
width: 200px;
|
width: 200px;
|
||||||
|
border-bottom: none;
|
||||||
|
margin: 3px 0 0 5px;
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,5 +1,6 @@
|
||||||
<?php
|
<?php
|
||||||
$title = "Moderate comments";
|
$title = 'Moderate comments';
|
||||||
|
$parent_file = 'edit.php';
|
||||||
/* <Moderation> */
|
/* <Moderation> */
|
||||||
|
|
||||||
function add_magic_quotes($array) {
|
function add_magic_quotes($array) {
|
||||||
|
|
Loading…
Reference in New Issue