Skip to:
Content

BuddyPress.org

Ticket #5509: 5509-invite-loop.patch

File 5509-invite-loop.patch, 1.3 KB (added by hnla, 11 years ago)

Patch invites-loop template

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

     
     1
     2<h2 class="manage-invites-heading"><?php _e( 'Manage your member invites for this group', 'buddypress' ); ?></h2>
     3
     4
     5
    16<div class="left-menu">
    27
    38        <div id="invite-list">
     9                <?php
     10                /* You may have friends but they may all be members of this group, invite list would then return false */
     11                if( bp_get_new_group_invite_friend_list() ) :
     12                ?>
    413
    514                <ul>
    615                        <?php bp_new_group_invite_friend_list(); ?>
     
    817
    918                <?php wp_nonce_field( 'groups_invite_uninvite_user', '_wpnonce_invite_uninvite_user' ); ?>
    1019
     20                <?php else: ?>
     21       
     22                <p class="info"><?php _e('Your friends are currently all members of this group.','buddypress'); ?></p>
     23
     24                <?php endif; ?>
     25
    1126        </div>
    1227
    1328</div><!-- .left-menu -->
     
    1833
    1934        <?php if ( bp_group_has_invites( bp_ajax_querystring( 'invite' ) . '&per_page=10' ) ) : ?>
    2035
     36                <h3 class="invite-list-heading"><?php _e('Your current invitations','buddypress'); ?></h3>
     37
    2138                <div id="pag-top" class="pagination">
    2239
    2340                        <div class="pag-count" id="group-invite-count-top">