Changeset 8429
- Timestamp:
- 05/18/2014 07:28:01 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/bp-activity/bp-activity-template.php
r8428 r8429 3397 3397 // Set default context based on current page 3398 3398 if ( empty( $context ) ) { 3399 3400 // On member pages, default to 'member', unless this 3401 // is a user's Groups activity 3399 3402 if ( bp_is_user() ) { 3400 switch ( bp_current_action() ) { 3401 case bp_get_groups_slug() : 3402 $context = 'member_groups'; 3403 break; 3404 3405 default : 3406 $context = 'member'; 3407 break; 3403 if ( bp_is_active( 'groups' ) && bp_is_current_action( bp_get_groups_slug() ) ) { 3404 $context = 'member_groups'; 3405 } else { 3406 $context = 'member'; 3408 3407 } 3408 3409 // On individual group pages, default to 'group' 3409 3410 } else if ( bp_is_active( 'groups' ) && bp_is_group() ) { 3410 3411 $context = 'group'; 3412 3413 // 'activity' everywhere else 3411 3414 } else { 3412 3415 $context = 'activity';
Note: See TracChangeset
for help on using the changeset viewer.