2 require_once('admin.php');
4 $title = __('Add Link');
5 $this_file = 'link-manager.php';
6 $parent_file = 'link-manager.php';
9 wp_reset_vars(array('action', 'cat_id', 'linkurl', 'name', 'image',
10 'description', 'visible', 'target', 'category', 'link_id',
11 'submit', 'order_by', 'links_show_cat_id', 'rating', 'rel',
12 'notes', 'linkcheck[]'));
14 wp_enqueue_script( array('xfn', 'dbx-admin-key?pagenow=link.php') );
15 if ( current_user_can( 'manage_categories' ) )
16 wp_enqueue_script( 'ajaxlinkcat' );
17 require('admin-header.php');
20 <?php if ($_GET['added'] && '' != $_POST['link_name']) : ?>
21 <div id="message" class="updated fade"><p><?php _e('Link added.'); ?></p></div>
25 $link = get_default_link_to_edit();
26 include('edit-link-form.php');
29 <div id="wp-link-bookmarklet" class="wrap">
30 <h3><?php _e('Add Link Bookmarklet'); ?></h3>
31 <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>
32 <?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();") ?>
36 require('admin-footer.php');