Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
12/15/2009 03:03:18 PM (17 years ago)
Author:
apeatling
Message:

Added styles for "updated" messages. Fixed navigation tab highlighting when viewing a group and member.

File:
1 edited

Legend:

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

    r2168 r2184  
    13771377}
    13781378
     1379function bp_is_member() {
     1380        global $bp;
     1381
     1382        if ( $bp->displayed_user->id )
     1383                return true;
     1384
     1385        return false;
     1386}
     1387
    13791388function bp_is_user_activity() {
    13801389        global $bp;
     
    14441453
    14451454        if ( BP_GROUPS_SLUG == $bp->current_component && ( !$bp->current_action || 'my-groups' == $bp->current_action ) )
     1455                return true;
     1456
     1457        return false;
     1458}
     1459
     1460function bp_is_group() {
     1461        global $bp;
     1462
     1463        if ( BP_GROUPS_SLUG == $bp->current_component && $bp->groups->current_group )
    14461464                return true;
    14471465
Note: See TracChangeset for help on using the changeset viewer.