Skip to:
Content

BuddyPress.org

Changeset 5066


Ignore:
Timestamp:
08/30/2011 06:44:58 AM (14 years ago)
Author:
johnjamesjacoby
Message:

Introduce bp_is_user_groups_activity() to match bp_is_user_friends_activity()

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/bp-core/bp-core-template.php

    r5058 r5066  
    11051105    global $bp;
    11061106
    1107     if ( bp_is_current_component( 'activity' ) && bp_is_current_action( 'my-friends' ) )
     1107    if ( bp_is_current_component( 'activity' ) && bp_is_current_action( bp_get_friends_slug() ) )
     1108        return true;
     1109
     1110    return false;
     1111}
     1112
     1113function bp_is_user_groups_activity() {
     1114    global $bp;
     1115
     1116    if ( bp_is_current_component( 'activity' ) && bp_is_current_action( bp_get_groups_slug() ) )
    11081117        return true;
    11091118
     
    15261535        if ( bp_is_user_friends_activity() )
    15271536            $bp_classes[] = 'friends-activity';
     1537
     1538        if ( bp_is_user_groups_activity() )
     1539            $bp_classes[] = 'groups-activity';
    15281540
    15291541        if ( is_user_logged_in() )
Note: See TracChangeset for help on using the changeset viewer.