<div class="left-menu">

	<div id="invite-list">

		<ul>
			<?php bp_new_group_invite_friend_list(); ?>
		</ul>

		<?php wp_nonce_field( 'groups_invite_uninvite_user', '_wpnonce_invite_uninvite_user' ); ?>

	</div>

</div><!-- .left-menu -->

<div class="main-column">

	<?php do_action( 'bp_before_group_send_invites_list' ); ?>

	<?php if ( bp_group_has_invites( bp_ajax_querystring( 'invite' ) . '&per_page=10' ) ) : ?>

		<?php /* The ID 'friend-list' is important for AJAX support. */ ?>
		<ul id="friend-list" class="item-list">

		<?php while ( bp_group_invites() ) : bp_group_the_invite(); ?>

			<li id="<?php bp_group_invite_item_id(); ?>">
				<?php x_buddypress_groups_invites_list_item_header(); ?>

				<div class="item">

					<?php do_action( 'bp_group_send_invites_item' ); ?>

				</div>

				<div class="x-list-item-meta action">
					<div class="x-list-item-meta-inner">
						<a class="remove" href="<?php bp_group_invite_user_remove_invite_url(); ?>" id="<?php bp_group_invite_item_id(); ?>"><?php _e( 'Remove Invite', 'buddypress' ); ?></a>

						<?php do_action( 'bp_group_send_invites_item_action' ); ?>

					</div>
				</div>
			</li>

		<?php endwhile; ?>

		</ul><!-- #friend-list -->

		<div id="pag-bottom" class="x-pagination pagination">

			<div class="pagination-links" id="group-invite-pag-bottom">

				<?php bp_group_invite_pagination_links(); ?>

			</div>

		</div>

	<?php else : ?>
		<div id="message" class="info">
			<p><?php _e( 'Select people to invite from your friends list.', 'buddypress' ); ?></p>
		</div>
	<?php endif; ?>

<?php do_action( 'bp_after_group_send_invites_list' ); ?>

</div><!-- .main-column -->

<div class="clear"></div>

<input type="submit" name="submit" id="submit" value="<?php esc_attr_e( 'Send', '__x__' ); ?>" />

<?php wp_nonce_field( 'groups_send_invites', '_wpnonce_send_invites' ); ?>
