2003-12-23 16:47:03 -05:00
|
|
|
<?php
|
2008-08-14 02:30:38 -04:00
|
|
|
/**
|
|
|
|
* Add Link Administration Panel.
|
|
|
|
*
|
|
|
|
* @package WordPress
|
|
|
|
* @subpackage Administration
|
|
|
|
*/
|
|
|
|
|
|
|
|
/** Load WordPress Administration Bootstrap */
|
2004-10-18 23:03:06 -04:00
|
|
|
require_once('admin.php');
|
2003-12-23 16:47:03 -05:00
|
|
|
|
2008-10-17 16:02:03 -04:00
|
|
|
$title = __('Add New Link');
|
2008-09-25 15:33:53 -04:00
|
|
|
$parent_file = 'link-manager.php';
|
2005-01-06 04:46:52 -05:00
|
|
|
|
2006-07-03 15:03:37 -04:00
|
|
|
wp_reset_vars(array('action', 'cat_id', 'linkurl', 'name', 'image',
|
2006-11-19 02:56:05 -05:00
|
|
|
'description', 'visible', 'target', 'category', 'link_id',
|
|
|
|
'submit', 'order_by', 'links_show_cat_id', 'rating', 'rel',
|
|
|
|
'notes', 'linkcheck[]'));
|
2004-04-28 01:34:50 -04:00
|
|
|
|
2008-01-31 15:04:54 -05:00
|
|
|
wp_enqueue_script('link');
|
2008-03-10 01:44:56 -04:00
|
|
|
wp_enqueue_script('xfn');
|
2008-01-31 15:04:54 -05:00
|
|
|
|
2008-08-20 17:42:31 -04:00
|
|
|
$link_added = ( isset($_GET['added']) && '' != $_POST['link_name'] ) ?
|
|
|
|
'<div id="message" class="updated fade"><p>' . __('Link added.') . '</p></div>' : '';
|
|
|
|
|
2003-12-23 16:47:03 -05:00
|
|
|
require('admin-header.php');
|
|
|
|
?>
|
2004-08-22 19:24:50 -04:00
|
|
|
|
2008-08-08 13:05:10 -04:00
|
|
|
<?php if ( isset( $_GET['added'] ) && '' != $_POST['link_name']) : ?>
|
2006-07-06 00:27:45 -04:00
|
|
|
<div id="message" class="updated fade"><p><?php _e('Link added.'); ?></p></div>
|
2004-04-28 01:34:50 -04:00
|
|
|
<?php endif; ?>
|
2004-04-15 05:15:56 -04:00
|
|
|
|
2005-09-18 20:47:58 -04:00
|
|
|
<?php
|
2008-02-25 01:30:38 -05:00
|
|
|
$link = get_default_link_to_edit();
|
|
|
|
include('edit-link-form.php');
|
2003-12-23 16:47:03 -05:00
|
|
|
|
|
|
|
require('admin-footer.php');
|
2008-02-25 01:30:38 -05:00
|
|
|
?>
|