| 940 | | if ( !$bp->current_component ) |
| 941 | | $title = sprintf( __( '%s Directory', 'buddypress' ), ucwords( BP_MEMBERS_SLUG ) ); |
| 942 | | else |
| 943 | | $title = sprintf( __( '%s Directory', 'buddypress' ), ucwords( $bp->current_component ) ); |
| | 940 | if ( !$bp->current_component || BP_MEMBERS_SLUG == $bp->current_component ) { |
| | 941 | $title = __( 'Members Directory', 'buddypress' ); |
| | 942 | |
| | 943 | } else if ( BP_GROUPS_SLUG == $bp->current_component ) { |
| | 944 | $title = __( 'Groups Directory', 'buddypress' ); |
| | 945 | |
| | 946 | } else if ( BP_FORUMS_SLUG == $bp->current_component ) { |
| | 947 | $title = __( 'Forums Directory', 'buddypress' ); |
| | 948 | |
| | 949 | } else if ( BP_BLOGS_SLUG == $bp->current_component ) { |
| | 950 | $title = __( 'Blogs Directory', 'buddypress' ); |
| | 951 | |
| | 952 | } else if ( BP_ACTIVITY_SLUG == $bp->current_component ) { |
| | 953 | $title = __( 'Activity Directory', 'buddypress' ); |
| | 954 | } |