Changeset 11208 for trunk/src/bp-core/bp-core-template.php
- Timestamp:
- 10/24/2016 07:56:47 PM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/bp-core/bp-core-template.php
r11198 r11208 3299 3299 if ( bp_is_user() ) { 3300 3300 $bp_classes[] = 'bp-user'; 3301 3302 // Add current user member types. 3303 if ( $member_types = bp_get_member_type( bp_displayed_user_id(), false ) ) { 3304 foreach( $member_types as $member_type ) { 3305 $bp_classes[] = sprintf( 'member-type-%s', esc_attr( $member_type ) ); 3306 } 3307 } 3301 3308 } 3302 3309 … … 3389 3396 if ( bp_is_group() ) { 3390 3397 $bp_classes[] = 'group-' . groups_get_current_group()->slug; 3398 3399 // Add current group types. 3400 if ( $group_types = bp_groups_get_group_type( bp_get_current_group_id(), false ) ) { 3401 foreach ( $group_types as $group_type ) { 3402 $bp_classes[] = sprintf( 'group-type-%s', esc_attr( $group_type ) ); 3403 } 3404 } 3391 3405 } 3392 3406
Note: See TracChangeset
for help on using the changeset viewer.