/bp-themes/bp-default/groups/single/send-invites.php

  1. <?php do_action( 'bp_before_group_send_invites_content' ); ?> 
  2.  
  3. <?php if ( bp_get_total_friend_count( bp_loggedin_user_id() ) ) : ?> 
  4.  
  5. <form action="<?php bp_group_send_invite_form_action(); ?>" method="post" id="send-invite-form" class="standard-form" role="main"> 
  6.  
  7. <div class="left-menu"> 
  8.  
  9. <div id="invite-list"> 
  10. <ul> 
  11. <?php bp_new_group_invite_friend_list(); ?> 
  12. </ul> 
  13.  
  14. <?php wp_nonce_field( 'groups_invite_uninvite_user', '_wpnonce_invite_uninvite_user' ); ?> 
  15. </div> 
  16.  
  17. </div><!-- .left-menu --> 
  18.  
  19. <div class="main-column"> 
  20.  
  21. <div id="message" class="info"> 
  22. <p><?php _e('Select people to invite from your friends list.', 'buddypress'); ?></p> 
  23. </div> 
  24.  
  25. <?php do_action( 'bp_before_group_send_invites_list' ); ?> 
  26.  
  27. <?php /** The ID 'friend-list' is important for AJAX support. */ ?> 
  28. <ul id="friend-list" class="item-list"> 
  29. <?php if ( bp_group_has_invites() ) : ?> 
  30.  
  31. <?php while ( bp_group_invites() ) : bp_group_the_invite(); ?> 
  32.  
  33. <li id="<?php bp_group_invite_item_id(); ?>"> 
  34. <?php bp_group_invite_user_avatar(); ?> 
  35.  
  36. <h4><?php bp_group_invite_user_link(); ?></h4> 
  37. <span class="activity"><?php bp_group_invite_user_last_active(); ?></span> 
  38.  
  39. <?php do_action( 'bp_group_send_invites_item' ); ?> 
  40.  
  41. <div class="action"> 
  42. <a class="button remove" href="<?php bp_group_invite_user_remove_invite_url(); ?>" id="<?php bp_group_invite_item_id(); ?>"><?php _e( 'Remove Invite', 'buddypress' ); ?></a> 
  43.  
  44. <?php do_action( 'bp_group_send_invites_item_action' ); ?> 
  45. </div> 
  46. </li> 
  47.  
  48. <?php endwhile; ?> 
  49.  
  50. <?php endif; ?> 
  51. </ul><!-- #friend-list --> 
  52.  
  53. <?php do_action( 'bp_after_group_send_invites_list' ); ?> 
  54.  
  55. </div><!-- .main-column --> 
  56.  
  57. <div class="clear"></div> 
  58.  
  59. <div class="submit"> 
  60. <input type="submit" name="submit" id="submit" value="<?php esc_attr_e( 'Send Invites', 'buddypress' ); ?>" /> 
  61. </div> 
  62.  
  63. <?php wp_nonce_field( 'groups_send_invites', '_wpnonce_send_invites'); ?> 
  64.  
  65. <?php /** This is important, don't forget it */ ?> 
  66. <input type="hidden" name="group_id" id="group_id" value="<?php bp_group_id(); ?>" /> 
  67.  
  68. </form><!-- #send-invite-form --> 
  69.  
  70. <?php else : ?> 
  71.  
  72. <div id="message" class="info" role="main"> 
  73. <p><?php _e( 'Once you have built up friend connections you will be able to invite others to your group.', 'buddypress' ); ?></p> 
  74. </div> 
  75.  
  76. <?php endif; ?> 
  77.  
  78. <?php do_action( 'bp_after_group_send_invites_content' ); ?> 
.