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' ;
2006-11-18 08:31:29 +01: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
2006-06-01 23:51:20 +02:00
wp_enqueue_script ( array ( 'xfn' , 'dbx-admin-key?pagenow=link.php' ) );
if ( current_user_can ( 'manage_categories' ) )
2007-10-10 00:49:42 +02:00
wp_enqueue_script ( 'ajaxcat' );
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
$link = get_default_link_to_edit ();
include ( 'edit-link-form.php' );
?>
2003-12-23 22:47:03 +01:00
2006-10-28 00:15:38 +02:00
< div id = " wp-link-bookmarklet " class = " wrap " >
< h3 >< ? php _e ( 'Add Link Bookmarklet' ); ?> </h3>
2007-03-07 18:07:33 +01:00
< p >< ? php _e ( 'Right click on the following link and choose “Bookmark This Link...” or “Add to Favorites...” to create a Link This shortcut.' ); ?> </p>
2006-11-29 10:17:01 +01:00
< ? php printf ( '<p><a href="%s" title="' . __ ( 'Link add bookmarklet' ) . '">' . __ ( 'Link This' ) . '</a></p>' , " javascript:void(linkmanpopup=window.open(' " . get_option ( 'siteurl' ) . " /wp-admin/link-add.php?action=popup&linkurl='+escape(location.href)+'&name='+escape(document.title),'LinkManager','scrollbars=yes,width=750,height=550,left=15,top=15,status=yes,resizable=yes'));linkmanpopup.focus();window.focus();linkmanpopup.focus(); " ) ?>
2003-12-23 22:47:03 +01:00
</ div >
< ? php
require ( 'admin-footer.php' );
2004-04-25 22:20:23 +02:00
?>