1 | Index: src/bp-templates/bp-legacy/buddypress/groups/create.php |
---|
2 | =================================================================== |
---|
3 | --- src/bp-templates/bp-legacy/buddypress/groups/create.php (revision 9740) |
---|
4 | +++ src/bp-templates/bp-legacy/buddypress/groups/create.php (working copy) |
---|
5 | @@ -187,7 +187,7 @@ |
---|
6 | |
---|
7 | <?php do_action( 'bp_before_group_invites_creation_step' ); ?> |
---|
8 | |
---|
9 | - <?php if ( bp_is_active( 'friends' ) && bp_get_total_friend_count( bp_loggedin_user_id() ) ) : ?> |
---|
10 | + <?php if ( bp_is_active( 'friends' ) && bp_get_total_friend_count( bp_loggedin_user_id() ) && bp_get_new_group_invite_friend_list() ) : ?> |
---|
11 | |
---|
12 | <div class="left-menu"> |
---|
13 | |
---|
14 | @@ -236,9 +236,15 @@ |
---|
15 | |
---|
16 | </div><!-- .main-column --> |
---|
17 | |
---|
18 | - <?php else : ?> |
---|
19 | + <?php elseif( bp_get_total_friend_count( bp_loggedin_user_id() ) && !bp_get_new_group_invite_friend_list() ) : ?> |
---|
20 | |
---|
21 | <div id="message" class="info"> |
---|
22 | + <p><?php _e( 'You currently have no friends that can be invited to this group.', 'buddypress' ); ?></p> |
---|
23 | + </div> |
---|
24 | + |
---|
25 | + <?php else: ?> |
---|
26 | + |
---|
27 | + <div id="message" class="info"> |
---|
28 | <p><?php _e( 'Once you have built up friend connections you will be able to invite others to your group.', 'buddypress' ); ?></p> |
---|
29 | </div> |
---|
30 | |
---|