Changeset 2863 for trunk/bp-core/bp-core-templatetags.php
- Timestamp:
- 03/22/2010 11:34:23 AM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/bp-core/bp-core-templatetags.php
r2842 r2863 907 907 908 908 } 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(); 913 910 914 911 } else if ( bp_is_register_page() ) { 912 915 913 $title = __( 'Create an Account', 'buddypress' ); 916 914 … … 1486 1484 global $bp; 1487 1485 1488 if ( BP_ACTIVITY_SLUG== $bp->current_component )1486 if ( $bp->activity->name == $bp->current_component ) 1489 1487 return true; 1490 1488 … … 1495 1493 global $bp; 1496 1494 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 ) 1498 1496 return true; 1499 1497 … … 1540 1538 global $bp; 1541 1539 1542 if ( BP_GROUPS_SLUG== $bp->current_component )1540 if ( $bp->groups->name == $bp->current_component ) 1543 1541 return true; 1544 1542 … … 1667 1665 global $bp; 1668 1666 1669 if ( BP_BLOGS_SLUG== $bp->current_component )1667 if ( $bp->blogs->name == $bp->current_component ) 1670 1668 return true; 1671 1669 … … 1676 1674 global $bp; 1677 1675 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 ) 1679 1677 return true; 1680 1678 … … 1685 1683 global $bp; 1686 1684 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 ) 1688 1686 return true; 1689 1687
Note: See TracChangeset
for help on using the changeset viewer.