PHP Cross Reference of WordPress Subversion HEAD |
| [ Index ] [ Classes ] [ Functions ] [ Variables ] [ Constants ] |
[Summary view] [Print] [Text view]
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( 'ajaxcat' ); 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 “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();") ?> 33 </div> 34 35 <?php 36 require ('admin-footer.php'); 37 ?>
title
Description
Body
title
Description
Body
title
Description
Body
title
Body
| Generated Thu Dec 6 06:47:08 2007 for RedAlt XRefs | Cross-referenced by PHPXref 0.6 and RedAlt |