Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
03/22/2010 11:34:23 AM (15 years ago)
Author:
apeatling
Message:

Added new install/upgrade wizard. Removed root components and replaced them with actual WordPress pages. Testing on WordPress vhost/novhost and root profile support still to do.

File:
1 edited

Legend:

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

    r2842 r2863  
    907907
    908908    } else if ( $bp->is_directory ) {
    909         if ( !$bp->current_component )
    910             $title = sprintf( __( '%s Directory', 'buddypress' ), ucwords( BP_MEMBERS_SLUG ) );
    911         else
    912             $title = sprintf( __( '%s Directory', 'buddypress' ), ucwords( $bp->current_component ) );
     909        $title = get_the_title();
    913910
    914911    } else if ( bp_is_register_page() ) {
     912
    915913        $title = __( 'Create an Account', 'buddypress' );
    916914
     
    14861484    global $bp;
    14871485
    1488     if ( BP_ACTIVITY_SLUG == $bp->current_component )
     1486    if ( $bp->activity->name == $bp->current_component )
    14891487        return true;
    14901488
     
    14951493    global $bp;
    14961494
    1497     if ( BP_ACTIVITY_SLUG == $bp->current_component && 'my-friends' == $bp->current_action )
     1495    if ( $bp->activity->name == $bp->current_component && 'my-friends' == $bp->current_action )
    14981496        return true;
    14991497
     
    15401538    global $bp;
    15411539
    1542     if ( BP_GROUPS_SLUG == $bp->current_component )
     1540    if ( $bp->groups->name == $bp->current_component )
    15431541        return true;
    15441542
     
    16671665    global $bp;
    16681666
    1669     if ( BP_BLOGS_SLUG == $bp->current_component )
     1667    if ( $bp->blogs->name == $bp->current_component )
    16701668        return true;
    16711669
     
    16761674    global $bp;
    16771675
    1678     if ( BP_BLOGS_SLUG == $bp->current_component && 'recent-posts' == $bp->current_action )
     1676    if ( $bp->blogs->name == $bp->current_component && 'recent-posts' == $bp->current_action )
    16791677        return true;
    16801678
     
    16851683    global $bp;
    16861684
    1687     if ( BP_BLOGS_SLUG == $bp->current_component && 'recent-comments' == $bp->current_action )
     1685    if ( $bp->blogs->name == $bp->current_component && 'recent-comments' == $bp->current_action )
    16881686        return true;
    16891687
Note: See TracChangeset for help on using the changeset viewer.