Skip to:
Content

BuddyPress.org

Changeset 1022


Ignore:
Timestamp:
02/06/2009 03:08:51 AM (17 years ago)
Author:
apeatling
Message:

Updates to member theme to support new $bp object.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/buddypress-theme/member-themes/buddypress-member/functions.php

    r1021 r1022  
    1111        global $bp, $is_single_group;
    1212
    13         if ( !bp_is_home() && $bp->current_component == 'profile' ||
    14                                                   $bp->current_component == 'blog' ||
    15                                                   $bp->current_component == 'friends' ||
    16                                                   $bp->current_component == 'blogs' ) {
    17                 if ( $bp->displayed_user->id != $bp->loggedin_user->id )
    18                         echo ' class="arrow"';
     13        if ( !bp_is_home() && $bp->current_component == $bp->profile->slug || $bp->current_component == $bp->friends->slug  || $bp->current_component == $bp->blogs->slug ) {
     14                echo ' class="arrow"';
    1915        }
    2016       
    21         if ( ( $bp->current_component == 'groups' && $is_single_group ) || ( $bp->current_component == 'groups' && !bp_is_home() ) )
     17        if ( ( $bp->current_component == $bp->groups->slug && $is_single_group ) || ( $bp->current_component == $bp->groups->slug && !bp_is_home() ) )
    2218                echo ' class="arrow"'; 
    2319}
     
    2622        global $bp;
    2723
    28         if ( ($bp->displayed_user->id != $bp->loggedin_user->id) )
     24        if ( ( !bp_is_home() ) )
    2925                echo ' class="icons"';
    3026}
Note: See TracChangeset for help on using the changeset viewer.