Changeset 9315 for trunk/src/bp-groups/bp-groups-template.php
- Timestamp:
- 01/08/2015 09:43:47 PM (11 years ago)
- File:
-
- 1 edited
-
trunk/src/bp-groups/bp-groups-template.php (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/bp-groups/bp-groups-template.php
r9308 r9315 234 234 if ( 'invites' == $type ) { 235 235 $this->groups = groups_get_invites_for_user( $user_id, $this->pag_num, $this->pag_page, $exclude ); 236 } else if ( 'single-group' == $type ) {236 } elseif ( 'single-group' == $type ) { 237 237 $this->single_group = true; 238 238 … … 280 280 $this->group_count = (int) $this->groups['total']; 281 281 $this->groups = $this->groups['groups']; 282 } else if ( 'single-group' == $type ) {282 } elseif ( 'single-group' == $type ) { 283 283 if ( empty( $group->id ) ) { 284 284 $this->total_group_count = 0; … … 711 711 if ( 'public' == $group->status ) { 712 712 $type = __( "Public Group", "buddypress" ); 713 } else if ( 'hidden' == $group->status ) {713 } elseif ( 'hidden' == $group->status ) { 714 714 $type = __( "Hidden Group", "buddypress" ); 715 } else if ( 'private' == $group->status ) {715 } elseif ( 'private' == $group->status ) { 716 716 $type = __( "Private Group", "buddypress" ); 717 717 } else { … … 1863 1863 // Default to the current group first 1864 1864 $group_id = $bp->groups->current_group->id; 1865 } else if ( isset( $groups_template->group->id ) ) {1865 } elseif ( isset( $groups_template->group->id ) ) { 1866 1866 // Then see if we're in the loop 1867 1867 $group_id = $groups_template->group->id; … … 2947 2947 if ( is_user_logged_in() && bp_group_is_invited() ) { 2948 2948 $message = __( 'You must accept your pending invitation before you can access this private group.', 'buddypress' ); 2949 } else if ( is_user_logged_in() ) {2949 } elseif ( is_user_logged_in() ) { 2950 2950 $message = __( 'This is a private group and you must request group membership in order to join.', 'buddypress' ); 2951 2951 } else {
Note: See TracChangeset
for help on using the changeset viewer.