link_advanced_meta_box

Display advanced link options form fields.

Description

link_advanced_meta_box( (object) $link ); 

Parameters (1)

0. $link (object)
The link.

Usage

  1. if ( !function_exists( 'link_advanced_meta_box' ) ) { 
  2. require_once ABSPATH . '/wp-admin/includes/meta-boxes.php'; 
  3.  
  4. // The link. 
  5. $link = null; 
  6.  
  7. // NOTICE! Understand what this does before running. 
  8. $result = link_advanced_meta_box($link); 
  9.  

Defined (1)

The function is defined in the following location(s).

/wp-admin/includes/meta-boxes.php  
  1. function link_advanced_meta_box($link) { 
  2. ?> 
  3. <table class="links-table" cellpadding="0"> 
  4. <tr> 
  5. <th scope="row"><label for="link_image"><?php _e('Image Address') ?></label></th> 
  6. <td><input type="text" name="link_image" class="code" id="link_image" maxlength="255" value="<?php echo ( isset( $link->link_image ) ? esc_attr($link->link_image) : ''); ?>" /></td> 
  7. </tr> 
  8. <tr> 
  9. <th scope="row"><label for="rss_uri"><?php _e('RSS Address') ?></label></th> 
  10. <td><input name="link_rss" class="code" type="text" id="rss_uri" maxlength="255" value="<?php echo ( isset( $link->link_rss ) ? esc_attr($link->link_rss) : ''); ?>" /></td> 
  11. </tr> 
  12. <tr> 
  13. <th scope="row"><label for="link_notes"><?php _e('Notes') ?></label></th> 
  14. <td><textarea name="link_notes" id="link_notes" rows="10"><?php echo ( isset( $link->link_notes ) ? $link->link_notes : ''); // textarea_escaped ?></textarea></td> 
  15. </tr> 
  16. <tr> 
  17. <th scope="row"><label for="link_rating"><?php _e('Rating') ?></label></th> 
  18. <td><select name="link_rating" id="link_rating" size="1"> 
  19. <?php 
  20. for ( $r = 0; $r <= 10; $r++ ) { 
  21. echo '<option value="' . $r . '"'; 
  22. if ( isset($link->link_rating) && $link->link_rating == $r ) 
  23. echo ' selected="selected"'; 
  24. echo('>' . $r . '</option>'); 
  25. ?></select> <?php _e('(Leave at 0 for no rating.)') ?> 
  26. </td> 
  27. </tr> 
  28. </table> 
  29. <?php