2003-12-23 16:47:03 -05:00
< ? php
2004-10-18 23:03:06 -04:00
require_once ( 'admin.php' );
2003-12-23 16:47:03 -05:00
2006-11-19 21:17:07 -05:00
$title = __ ( 'Add Link' );
2003-12-23 16:47:03 -05:00
$this_file = 'link-manager.php' ;
2006-11-18 02:31:29 -05: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
2006-06-01 17:51:20 -04:00
wp_enqueue_script ( array ( 'xfn' , 'dbx-admin-key?pagenow=link.php' ) );
if ( current_user_can ( 'manage_categories' ) )
wp_enqueue_script ( 'ajaxcat' );
2003-12-23 16:47:03 -05:00
require ( 'admin-header.php' );
?>
2004-08-22 19:24:50 -04:00
2006-11-04 02:00:29 -05:00
< ? php if ( $_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
$link = get_default_link_to_edit ();
include ( 'edit-link-form.php' );
?>
2003-12-23 16:47:03 -05:00
2006-10-27 18:15:38 -04:00
< div id = " wp-link-bookmarklet " class = " wrap " >
< h3 >< ? php _e ( 'Add Link Bookmarklet' ); ?> </h3>
2007-03-07 12:07:33 -05: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 04:17:01 -05: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 16:47:03 -05:00
</ div >
< ? php
require ( 'admin-footer.php' );
2004-04-25 16:20:23 -04:00
?>