]> scripts.mit.edu Git - autoinstalls/wordpress.git/blob - wp-admin/link-add.php
Wordpress 2.3.2
[autoinstalls/wordpress.git] / wp-admin / link-add.php
1 <?php
2 require_once('admin.php');
3
4 $title = __('Add Link');
5 $this_file = 'link-manager.php';
6 $parent_file = 'link-manager.php';
7
8
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[]'));
13
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');
18 ?>
19
20 <?php if ($_GET['added'] && '' != $_POST['link_name']) : ?>
21 <div id="message" class="updated fade"><p><?php _e('Link added.'); ?></p></div>
22 <?php endif; ?>
23
24 <?php
25         $link = get_default_link_to_edit();
26         include('edit-link-form.php');
27 ?>
28
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 &#0147;Bookmark This Link...&#0148; or &#0147;Add to Favorites...&#0148; 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&amp;linkurl='+escape(location.href)+'&amp;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();") ?>
33 </div>
34
35 <?php
36 require('admin-footer.php');
37 ?>