2003-12-23 22:47:03 +01:00
|
|
|
<?php
|
2004-10-19 05:03:06 +02:00
|
|
|
require_once('admin.php');
|
2003-12-23 22:47:03 +01:00
|
|
|
|
2006-11-20 03:17:07 +01:00
|
|
|
$title = __('Add Link');
|
2003-12-23 22:47:03 +01:00
|
|
|
$this_file = 'link-manager.php';
|
2008-01-04 21:18:55 +01:00
|
|
|
$parent_file = 'post-new.php';
|
2006-11-18 08:31:29 +01:00
|
|
|
|
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
|
|
|
|
2003-12-23 22:47:03 +01:00
|
|
|
require('admin-header.php');
|
|
|
|
?>
|
2004-08-23 01:24:50 +02:00
|
|
|
|
2006-11-04 08:00:29 +01:00
|
|
|
<?php if ($_GET['added'] && '' != $_POST['link_name']) : ?>
|
2006-07-06 06:27:45 +02:00
|
|
|
<div id="message" class="updated fade"><p><?php _e('Link added.'); ?></p></div>
|
2004-04-28 07:34:50 +02:00
|
|
|
<?php endif; ?>
|
2004-04-15 11:15:56 +02:00
|
|
|
|
2005-09-19 02:47:58 +02:00
|
|
|
<?php
|
2008-02-25 07:30:38 +01:00
|
|
|
$link = get_default_link_to_edit();
|
|
|
|
include('edit-link-form.php');
|
2003-12-23 22:47:03 +01:00
|
|
|
|
|
|
|
require('admin-footer.php');
|
2008-02-25 07:30:38 +01:00
|
|
|
?>
|