link_xfn_meta_box

Display xfn form fields.

Description

link_xfn_meta_box( (object) $link ); 

Parameters (1)

0. $link (object)
The link.

Usage

  1. if ( !function_exists( 'link_xfn_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_xfn_meta_box($link); 
  9.  

Defined (1)

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

/wp-admin/includes/meta-boxes.php  
  1. function link_xfn_meta_box($link) { 
  2. ?> 
  3. <table class="links-table"> 
  4. <tr> 
  5. <th scope="row"><label for="link_rel"><?php /** translators: xfn: http://gmpg.org/xfn/ */ _e('rel:') ?></label></th> 
  6. <td><input type="text" name="link_rel" id="link_rel" value="<?php echo ( isset( $link->link_rel ) ? esc_attr($link->link_rel) : ''); ?>" /></td> 
  7. </tr> 
  8. <tr> 
  9. <th scope="row"><?php /** translators: xfn: http://gmpg.org/xfn/ */ _e('identity') ?></th> 
  10. <td><fieldset><legend class="screen-reader-text"><span><?php /** translators: xfn: http://gmpg.org/xfn/ */ _e('identity') ?></span></legend> 
  11. <label for="me"> 
  12. <input type="checkbox" name="identity" value="me" id="me" <?php xfn_check('identity', 'me'); ?> /> 
  13. <?php _e('another web address of mine') ?></label> 
  14. </fieldset></td> 
  15. </tr> 
  16. <tr> 
  17. <th scope="row"><?php /** translators: xfn: http://gmpg.org/xfn/ */ _e('friendship') ?></th> 
  18. <td><fieldset><legend class="screen-reader-text"><span><?php /** translators: xfn: http://gmpg.org/xfn/ */ _e('friendship') ?></span></legend> 
  19. <label for="contact"> 
  20. <input class="valinp" type="radio" name="friendship" value="contact" id="contact" <?php xfn_check('friendship', 'contact'); ?> /> <?php /** translators: xfn: http://gmpg.org/xfn/ */ _e('contact') ?> 
  21. </label> 
  22. <label for="acquaintance"> 
  23. <input class="valinp" type="radio" name="friendship" value="acquaintance" id="acquaintance" <?php xfn_check('friendship', 'acquaintance'); ?> /> <?php /** translators: xfn: http://gmpg.org/xfn/ */ _e('acquaintance') ?> 
  24. </label> 
  25. <label for="friend"> 
  26. <input class="valinp" type="radio" name="friendship" value="friend" id="friend" <?php xfn_check('friendship', 'friend'); ?> /> <?php /** translators: xfn: http://gmpg.org/xfn/ */ _e('friend') ?> 
  27. </label> 
  28. <label for="friendship"> 
  29. <input name="friendship" type="radio" class="valinp" value="" id="friendship" <?php xfn_check('friendship'); ?> /> <?php /** translators: xfn: http://gmpg.org/xfn/ */ _e('none') ?> 
  30. </label> 
  31. </fieldset></td> 
  32. </tr> 
  33. <tr> 
  34. <th scope="row"> <?php /** translators: xfn: http://gmpg.org/xfn/ */ _e('physical') ?> </th> 
  35. <td><fieldset><legend class="screen-reader-text"><span><?php /** translators: xfn: http://gmpg.org/xfn/ */ _e('physical') ?></span></legend> 
  36. <label for="met"> 
  37. <input class="valinp" type="checkbox" name="physical" value="met" id="met" <?php xfn_check('physical', 'met'); ?> /> <?php /** translators: xfn: http://gmpg.org/xfn/ */ _e('met') ?> 
  38. </label> 
  39. </fieldset></td> 
  40. </tr> 
  41. <tr> 
  42. <th scope="row"> <?php /** translators: xfn: http://gmpg.org/xfn/ */ _e('professional') ?> </th> 
  43. <td><fieldset><legend class="screen-reader-text"><span><?php /** translators: xfn: http://gmpg.org/xfn/ */ _e('professional') ?></span></legend> 
  44. <label for="co-worker"> 
  45. <input class="valinp" type="checkbox" name="professional" value="co-worker" id="co-worker" <?php xfn_check('professional', 'co-worker'); ?> /> <?php /** translators: xfn: http://gmpg.org/xfn/ */ _e('co-worker') ?> 
  46. </label> 
  47. <label for="colleague"> 
  48. <input class="valinp" type="checkbox" name="professional" value="colleague" id="colleague" <?php xfn_check('professional', 'colleague'); ?> /> <?php /** translators: xfn: http://gmpg.org/xfn/ */ _e('colleague') ?> 
  49. </label> 
  50. </fieldset></td> 
  51. </tr> 
  52. <tr> 
  53. <th scope="row"><?php /** translators: xfn: http://gmpg.org/xfn/ */ _e('geographical') ?></th> 
  54. <td><fieldset><legend class="screen-reader-text"><span> <?php /** translators: xfn: http://gmpg.org/xfn/ */ _e('geographical') ?> </span></legend> 
  55. <label for="co-resident"> 
  56. <input class="valinp" type="radio" name="geographical" value="co-resident" id="co-resident" <?php xfn_check('geographical', 'co-resident'); ?> /> <?php /** translators: xfn: http://gmpg.org/xfn/ */ _e('co-resident') ?> 
  57. </label> 
  58. <label for="neighbor"> 
  59. <input class="valinp" type="radio" name="geographical" value="neighbor" id="neighbor" <?php xfn_check('geographical', 'neighbor'); ?> /> <?php /** translators: xfn: http://gmpg.org/xfn/ */ _e('neighbor') ?> 
  60. </label> 
  61. <label for="geographical"> 
  62. <input class="valinp" type="radio" name="geographical" value="" id="geographical" <?php xfn_check('geographical'); ?> /> <?php /** translators: xfn: http://gmpg.org/xfn/ */ _e('none') ?> 
  63. </label> 
  64. </fieldset></td> 
  65. </tr> 
  66. <tr> 
  67. <th scope="row"><?php /** translators: xfn: http://gmpg.org/xfn/ */ _e('family') ?></th> 
  68. <td><fieldset><legend class="screen-reader-text"><span> <?php /** translators: xfn: http://gmpg.org/xfn/ */ _e('family') ?> </span></legend> 
  69. <label for="child"> 
  70. <input class="valinp" type="radio" name="family" value="child" id="child" <?php xfn_check('family', 'child'); ?> /> <?php /** translators: xfn: http://gmpg.org/xfn/ */ _e('child') ?> 
  71. </label> 
  72. <label for="kin"> 
  73. <input class="valinp" type="radio" name="family" value="kin" id="kin" <?php xfn_check('family', 'kin'); ?> /> <?php /** translators: xfn: http://gmpg.org/xfn/ */ _e('kin') ?> 
  74. </label> 
  75. <label for="parent"> 
  76. <input class="valinp" type="radio" name="family" value="parent" id="parent" <?php xfn_check('family', 'parent'); ?> /> <?php /** translators: xfn: http://gmpg.org/xfn/ */ _e('parent') ?> 
  77. </label> 
  78. <label for="sibling"> 
  79. <input class="valinp" type="radio" name="family" value="sibling" id="sibling" <?php xfn_check('family', 'sibling'); ?> /> <?php /** translators: xfn: http://gmpg.org/xfn/ */ _e('sibling') ?> 
  80. </label> 
  81. <label for="spouse"> 
  82. <input class="valinp" type="radio" name="family" value="spouse" id="spouse" <?php xfn_check('family', 'spouse'); ?> /> <?php /** translators: xfn: http://gmpg.org/xfn/ */ _e('spouse') ?> 
  83. </label> 
  84. <label for="family"> 
  85. <input class="valinp" type="radio" name="family" value="" id="family" <?php xfn_check('family'); ?> /> <?php /** translators: xfn: http://gmpg.org/xfn/ */ _e('none') ?> 
  86. </label> 
  87. </fieldset></td> 
  88. </tr> 
  89. <tr> 
  90. <th scope="row"><?php /** translators: xfn: http://gmpg.org/xfn/ */ _e('romantic') ?></th> 
  91. <td><fieldset><legend class="screen-reader-text"><span> <?php /** translators: xfn: http://gmpg.org/xfn/ */ _e('romantic') ?> </span></legend> 
  92. <label for="muse"> 
  93. <input class="valinp" type="checkbox" name="romantic" value="muse" id="muse" <?php xfn_check('romantic', 'muse'); ?> /> <?php /** translators: xfn: http://gmpg.org/xfn/ */ _e('muse') ?> 
  94. </label> 
  95. <label for="crush"> 
  96. <input class="valinp" type="checkbox" name="romantic" value="crush" id="crush" <?php xfn_check('romantic', 'crush'); ?> /> <?php /** translators: xfn: http://gmpg.org/xfn/ */ _e('crush') ?> 
  97. </label> 
  98. <label for="date"> 
  99. <input class="valinp" type="checkbox" name="romantic" value="date" id="date" <?php xfn_check('romantic', 'date'); ?> /> <?php /** translators: xfn: http://gmpg.org/xfn/ */ _e('date') ?> 
  100. </label> 
  101. <label for="romantic"> 
  102. <input class="valinp" type="checkbox" name="romantic" value="sweetheart" id="romantic" <?php xfn_check('romantic', 'sweetheart'); ?> /> <?php /** translators: xfn: http://gmpg.org/xfn/ */ _e('sweetheart') ?> 
  103. </label> 
  104. </fieldset></td> 
  105. </tr> 
  106.  
  107. </table> 
  108. <p><?php _e('If the link is to a person, you can specify your relationship with them using the above form. If you would like to learn more about the idea check out <a href="http://gmpg.org/xfn/">XFN</a>.'); ?></p> 
  109. <?php