2003-12-23 22:47:03 +01:00
|
|
|
<?php
|
2008-08-14 08:30:38 +02:00
|
|
|
/**
|
|
|
|
* Add Link Administration Panel.
|
|
|
|
*
|
|
|
|
* @package WordPress
|
|
|
|
* @subpackage Administration
|
|
|
|
*/
|
|
|
|
|
|
|
|
/** Load WordPress Administration Bootstrap */
|
2010-04-18 08:14:45 +02:00
|
|
|
require_once('./admin.php');
|
2003-12-23 22:47:03 +01:00
|
|
|
|
2009-08-02 04:23:54 +02:00
|
|
|
if ( ! current_user_can('manage_links') )
|
|
|
|
wp_die(__('You do not have sufficient permissions to add links to this blog.'));
|
|
|
|
|
2008-10-17 22:02:03 +02:00
|
|
|
$title = __('Add New Link');
|
2008-09-25 21:33:53 +02:00
|
|
|
$parent_file = 'link-manager.php';
|
2005-01-06 10:46:52 +01:00
|
|
|
|
2006-07-03 21:03:37 +02:00
|
|
|
wp_reset_vars(array('action', 'cat_id', 'linkurl', 'name', 'image',
|
2006-11-19 08:56:05 +01:00
|
|
|
'description', 'visible', 'target', 'category', 'link_id',
|
|
|
|
'submit', 'order_by', 'links_show_cat_id', 'rating', 'rel',
|
|
|
|
'notes', 'linkcheck[]'));
|
2004-04-28 07:34:50 +02:00
|
|
|
|
2008-01-31 21:04:54 +01:00
|
|
|
wp_enqueue_script('link');
|
2008-03-10 06:44:56 +01:00
|
|
|
wp_enqueue_script('xfn');
|
2008-01-31 21:04:54 +01:00
|
|
|
|
2008-02-25 07:30:38 +01:00
|
|
|
$link = get_default_link_to_edit();
|
2010-04-18 08:14:45 +02:00
|
|
|
include('./edit-link-form.php');
|
2003-12-23 22:47:03 +01:00
|
|
|
|
2010-04-18 08:14:45 +02:00
|
|
|
require('./admin-footer.php');
|
2008-02-25 07:30:38 +01:00
|
|
|
?>
|