home *** CD-ROM | disk | FTP | other *** search
/ Cricao de Sites - 650 Layouts Prontos / WebMasters.iso / Blogs / wordpress2.6.exe / wordpress2.6 / wp-admin / link-add.php < prev    next >
Encoding:
PHP Script  |  2008-05-20  |  691 b   |  29 lines

  1. <?php
  2. require_once('admin.php');
  3.  
  4. $title = __('Add Link');
  5. $this_file = 'link-manager.php';
  6. $parent_file = 'post-new.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('link');
  15. wp_enqueue_script('xfn');
  16.  
  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. require('admin-footer.php');
  29. ?>