/bp-templates/bp-legacy/buddypress/groups/single/invites-loop.php

  1. <?php 
  2. /** 
  3. * BuddyPress - Group Invites Loop 
  4. * 
  5. * @package BuddyPress 
  6. * @subpackage bp-legacy 
  7. */ 
  8.  
  9. ?> 
  10. <div class="left-menu"> 
  11.  
  12. <div id="invite-list"> 
  13.  
  14. <ul> 
  15. <?php bp_new_group_invite_friend_list(); ?> 
  16. </ul> 
  17.  
  18. <?php wp_nonce_field( 'groups_invite_uninvite_user', '_wpnonce_invite_uninvite_user' ); ?> 
  19.  
  20. </div> 
  21.  
  22. </div><!-- .left-menu --> 
  23.  
  24. <div class="main-column"> 
  25.  
  26. <?php 
  27.  
  28. /** 
  29. * Fires before the display of the group send invites list. 
  30. * 
  31. * @since 1.1.0 
  32. */ 
  33. do_action( 'bp_before_group_send_invites_list' ); ?> 
  34.  
  35. <?php if ( bp_group_has_invites( bp_ajax_querystring( 'invite' ) . '&per_page=10' ) ) : ?> 
  36.  
  37. <div id="pag-top" class="pagination"> 
  38.  
  39. <div class="pag-count" id="group-invite-count-top"> 
  40.  
  41. <?php bp_group_invite_pagination_count(); ?> 
  42.  
  43. </div> 
  44.  
  45. <div class="pagination-links" id="group-invite-pag-top"> 
  46.  
  47. <?php bp_group_invite_pagination_links(); ?> 
  48.  
  49. </div> 
  50.  
  51. </div> 
  52.  
  53. <?php /** The ID 'friend-list' is important for AJAX support. */ ?> 
  54. <ul id="friend-list" class="item-list"> 
  55.  
  56. <?php while ( bp_group_invites() ) : bp_group_the_invite(); ?> 
  57.  
  58. <li id="<?php bp_group_invite_item_id(); ?>"> 
  59. <?php bp_group_invite_user_avatar(); ?> 
  60.  
  61. <h3><?php bp_group_invite_user_link(); ?></h3> 
  62. <span class="activity"><?php bp_group_invite_user_last_active(); ?></span> 
  63.  
  64. <?php 
  65.  
  66. /** 
  67. * Fires inside the invite item listing. 
  68. * 
  69. * @since 1.1.0 
  70. */ 
  71. do_action( 'bp_group_send_invites_item' ); ?> 
  72.  
  73. <div class="action"> 
  74. <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> 
  75.  
  76. <?php 
  77.  
  78. /** 
  79. * Fires inside the action area for a send invites item. 
  80. * 
  81. * @since 1.1.0 
  82. */ 
  83. do_action( 'bp_group_send_invites_item_action' ); ?> 
  84. </div> 
  85. </li> 
  86.  
  87. <?php endwhile; ?> 
  88.  
  89. </ul><!-- #friend-list --> 
  90.  
  91. <div id="pag-bottom" class="pagination"> 
  92.  
  93. <div class="pag-count" id="group-invite-count-bottom"> 
  94.  
  95. <?php bp_group_invite_pagination_count(); ?> 
  96.  
  97. </div> 
  98.  
  99. <div class="pagination-links" id="group-invite-pag-bottom"> 
  100.  
  101. <?php bp_group_invite_pagination_links(); ?> 
  102.  
  103. </div> 
  104.  
  105. </div> 
  106.  
  107. <?php else : ?> 
  108.  
  109. <div id="message" class="info"> 
  110. <p><?php _e( 'Select friends to invite.', 'buddypress' ); ?></p> 
  111. </div> 
  112.  
  113. <?php endif; ?> 
  114.  
  115. <?php 
  116.  
  117. /** 
  118. * Fires after the display of the group send invites list. 
  119. * 
  120. * @since 1.1.0 
  121. */ 
  122. do_action( 'bp_after_group_send_invites_list' ); ?> 
  123.  
  124. </div><!-- .main-column --> 
.