[ Index ]
 

Code source de WordPress 2.1.2

Accédez au Source d'autres logiciels libresSoutenez Angelica Josefina !

title

Body

[fermer]

/wp-admin/ -> link-add.php (source)

   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..." to create an add link shortcut. Right now this only works on Mozilla or Netscape, but we&#8217;re working on it.'); ?></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  ?>


Généré le : Fri Mar 30 19:41:27 2007 par Balluche grâce à PHPXref 0.7