| 1 | | <div class="left-menu"> |
| 2 | | |
| 3 | | <div id="invite-list"> |
| 4 | | |
| 5 | | <ul> |
| 6 | | <?php bp_new_group_invite_friend_list(); ?> |
| 7 | | </ul> |
| 8 | | |
| 9 | | <?php wp_nonce_field( 'groups_invite_uninvite_user', '_wpnonce_invite_uninvite_user' ); ?> |
| 10 | | |
| 11 | | </div> |
| 12 | | |
| 13 | | </div><!-- .left-menu --> |
| 14 | | |
| 15 | | <div class="main-column"> |
| 16 | | |
| 17 | | <?php do_action( 'bp_before_group_send_invites_list' ); ?> |
| 18 | | |
| 19 | | <?php if ( bp_group_has_invites( bp_ajax_querystring( 'invite' ) . '&per_page=10' ) ) : ?> |
| 20 | | |
| 21 | | <div id="pag-top" class="pagination"> |
| 22 | | |
| 23 | | <div class="pag-count" id="group-invite-count-top"> |
| 24 | | |
| 25 | | <?php bp_group_invite_pagination_count(); ?> |
| 26 | | |
| 27 | | </div> |
| 28 | | |
| 29 | | <div class="pagination-links" id="group-invite-pag-top"> |
| 30 | | |
| 31 | | <?php bp_group_invite_pagination_links(); ?> |
| 32 | | |
| 33 | | </div> |
| 34 | | |
| 35 | | </div> |
| 36 | | |
| 37 | | <?php /* The ID 'friend-list' is important for AJAX support. */ ?> |
| 38 | | <ul id="friend-list" class="item-list"> |
| 39 | | |
| 40 | | <?php while ( bp_group_invites() ) : bp_group_the_invite(); ?> |
| 41 | | |
| 42 | | <li id="<?php bp_group_invite_item_id(); ?>"> |
| 43 | | <?php bp_group_invite_user_avatar(); ?> |
| 44 | | |
| 45 | | <h4><?php bp_group_invite_user_link(); ?></h4> |
| 46 | | <span class="activity"><?php bp_group_invite_user_last_active(); ?></span> |
| 47 | | |
| 48 | | <?php do_action( 'bp_group_send_invites_item' ); ?> |
| 49 | | |
| 50 | | <div class="action"> |
| 51 | | <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> |
| 52 | | |
| 53 | | <?php do_action( 'bp_group_send_invites_item_action' ); ?> |
| 54 | | </div> |
| 55 | | </li> |
| 56 | | |
| 57 | | <?php endwhile; ?> |
| 58 | | |
| 59 | | </ul><!-- #friend-list --> |
| 60 | | |
| 61 | | <div id="pag-bottom" class="pagination"> |
| 62 | | |
| 63 | | <div class="pag-count" id="group-invite-count-bottom"> |
| 64 | | |
| 65 | | <?php bp_group_invite_pagination_count(); ?> |
| 66 | | |
| 67 | | </div> |
| 68 | | |
| 69 | | <div class="pagination-links" id="group-invite-pag-bottom"> |
| 70 | | |
| 71 | | <?php bp_group_invite_pagination_links(); ?> |
| 72 | | |
| 73 | | </div> |
| 74 | | |
| 75 | | </div> |
| 76 | | |
| 77 | | <?php else : ?> |
| 78 | | <div id="message" class="info"> |
| 79 | | <p><?php _e( 'Select people to invite from your friends list.', 'buddypress' ); ?></p> |
| 80 | | </div> |
| 81 | | <?php endif; ?> |
| 82 | | |
| 83 | | <?php do_action( 'bp_after_group_send_invites_list' ); ?> |
| 84 | | |
| 85 | | </div><!-- .main-column --> |
| 86 | | |
| 87 | | <div class="clear"></div> |
| 88 | | |
| 89 | | <div class="submit"> |
| 90 | | <input type="submit" name="submit" id="submit" value="<?php esc_attr_e( 'Send Invites', 'buddypress' ); ?>" /> |
| 91 | | </div> |
| 92 | | |
| 93 | | <?php wp_nonce_field( 'groups_send_invites', '_wpnonce_send_invites' ); ?> |
| | 1 | <h1><?php _e( 'Manage member invites for this group', 'buddypress' ); ?></h1> |
| | 2 | |
| | 3 | <div class="left-menu"> |
| | 4 | |
| | 5 | <?php if ( bp_is_active( 'friends' ) && bp_get_total_friend_count( bp_loggedin_user_id() ) ) : ?> |
| | 6 | |
| | 7 | <h2><?php _e('Select members to invite from your friends list', 'budypress'); ?></h2> |
| | 8 | |
| | 9 | <div id="invite-list"> |
| | 10 | |
| | 11 | <ul> |
| | 12 | <?php bp_new_group_invite_friend_list(); ?> |
| | 13 | </ul> |
| | 14 | |
| | 15 | <?php wp_nonce_field( 'groups_invite_uninvite_user', '_wpnonce_invite_uninvite_user' ); ?> |
| | 16 | |
| | 17 | </div> |
| | 18 | |
| | 19 | <?php else: ?> |
| | 20 | |
| | 21 | <p><?php _e('You currently have no friends list to send invites from when you have friended people you may select them here to send invites to.', 'buddypress'); ?></p> |
| | 22 | |
| | 23 | <?php endif; ?> |
| | 24 | |
| | 25 | </div><!-- .left-menu --> |
| | 26 | |
| | 27 | <div class="main-column"> |
| | 28 | |
| | 29 | |
| | 30 | <?php do_action( 'bp_before_group_send_invites_list' ); ?> |
| | 31 | |
| | 32 | <?php if ( bp_group_has_invites( bp_ajax_querystring( 'invite' ) . '&per_page=10' ) ) : ?> |
| | 33 | |
| | 34 | <h2><?php _e('People currently invited to join this group', 'buddypress'); ?></h2> |
| | 35 | |
| | 36 | <div id="pag-top" class="pagination"> |
| | 37 | |
| | 38 | <div class="pag-count" id="group-invite-count-top"> |
| | 39 | |
| | 40 | <?php bp_group_invite_pagination_count(); ?> |
| | 41 | |
| | 42 | </div> |
| | 43 | |
| | 44 | <div class="pagination-links" id="group-invite-pag-top"> |
| | 45 | |
| | 46 | <?php bp_group_invite_pagination_links(); ?> |
| | 47 | |
| | 48 | </div> |
| | 49 | |
| | 50 | </div> |
| | 51 | |
| | 52 | <?php /* The ID 'friend-list' is important for AJAX support. */ ?> |
| | 53 | <ul id="friend-list" class="item-list"> |
| | 54 | |
| | 55 | <?php while ( bp_group_invites() ) : bp_group_the_invite(); ?> |
| | 56 | |
| | 57 | <li id="<?php bp_group_invite_item_id(); ?>"> |
| | 58 | <?php bp_group_invite_user_avatar(); ?> |
| | 59 | |
| | 60 | <h4><?php bp_group_invite_user_link(); ?></h4> |
| | 61 | <span class="activity"><?php bp_group_invite_user_last_active(); ?></span> |
| | 62 | |
| | 63 | <?php do_action( 'bp_group_send_invites_item' ); ?> |
| | 64 | |
| | 65 | <div class="action"> |
| | 66 | <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> |
| | 67 | |
| | 68 | <?php do_action( 'bp_group_send_invites_item_action' ); ?> |
| | 69 | </div> |
| | 70 | </li> |
| | 71 | |
| | 72 | <?php endwhile; ?> |
| | 73 | |
| | 74 | </ul><!-- #friend-list --> |
| | 75 | |
| | 76 | <div id="pag-bottom" class="pagination"> |
| | 77 | |
| | 78 | <div class="pag-count" id="group-invite-count-bottom"> |
| | 79 | |
| | 80 | <?php bp_group_invite_pagination_count(); ?> |
| | 81 | |
| | 82 | </div> |
| | 83 | |
| | 84 | <div class="pagination-links" id="group-invite-pag-bottom"> |
| | 85 | |
| | 86 | <?php bp_group_invite_pagination_links(); ?> |
| | 87 | |
| | 88 | </div> |
| | 89 | |
| | 90 | </div> |
| | 91 | |
| | 92 | <?php endif; ?> |
| | 93 | |
| | 94 | <?php do_action( 'bp_after_group_send_invites_list' ); ?> |
| | 95 | |
| | 96 | </div><!-- .main-column --> |
| | 97 | |
| | 98 | <div class="clear"></div> |
| | 99 | |
| | 100 | <div class="submit"> |
| | 101 | <input type="submit" name="submit" id="submit" value="<?php esc_attr_e( 'Send Invites', 'buddypress' ); ?>" /> |
| | 102 | </div> |
| | 103 | |
| | 104 | <?php wp_nonce_field( 'groups_send_invites', '_wpnonce_send_invites' ); ?> |