PageRenderTime 43ms CodeModel.GetById 13ms RepoModel.GetById 0ms app.codeStats 0ms

/wp-admin/link-add.php

https://github.com/localshred/dtraders
PHP | 29 lines | 21 code | 8 blank | 0 comment | 3 complexity | 00356106772522878b42dc4f133650dd MD5 | raw file
  1. <?php
  2. require_once('admin.php');
  3. $title = __('Add Link');
  4. $this_file = 'link-manager.php';
  5. $parent_file = 'post-new.php';
  6. wp_reset_vars(array('action', 'cat_id', 'linkurl', 'name', 'image',
  7. 'description', 'visible', 'target', 'category', 'link_id',
  8. 'submit', 'order_by', 'links_show_cat_id', 'rating', 'rel',
  9. 'notes', 'linkcheck[]'));
  10. wp_enqueue_script('link');
  11. wp_enqueue_script('xfn');
  12. require('admin-header.php');
  13. ?>
  14. <?php if ($_GET['added'] && '' != $_POST['link_name']) : ?>
  15. <div id="message" class="updated fade"><p><?php _e('Link added.'); ?></p></div>
  16. <?php endif; ?>
  17. <?php
  18. $link = get_default_link_to_edit();
  19. include('edit-link-form.php');
  20. require('admin-footer.php');
  21. ?>