function x_buddypress_get_the_title() { if (x_is_buddypress_user()) { $output = bp_get_displayed_user_fullname(); } else { if (x_is_buddypress_component('activity')) { $output = x_get_option('x_buddypress_activity_title', __('Activity', '__x__')); } else { if (x_is_buddypress_component('groups')) { if (x_is_buddypress_group()) { $output = bp_get_current_group_name(); } else { $output = x_get_option('x_buddypress_groups_title', __('Groups', '__x__')); } } else { if (x_is_buddypress_component('members')) { $output = x_get_option('x_buddypress_members_title', __('Members', '__x__')); } else { if (x_is_buddypress_component('blogs')) { $output = x_get_option('x_buddypress_blogs_title', __('Sites', '__x__')); } else { if (x_is_buddypress_component('register')) { $output = x_get_option('x_buddypress_register_title', __('Create an Account', '__x__')); } else { if (x_is_buddypress_component('activate')) { $output = x_get_option('x_buddypress_activate_title', __('Activate Your Account', '__x__')); } else { $output = get_the_title(); } } } } } } } return $output; }
function x_buddypress_get_the_title() { if (x_is_buddypress_user()) { $output = bp_get_displayed_user_fullname(); } else { if (x_is_buddypress_component('activity')) { $output = x_get_option('x_buddypress_activity_title'); } else { if (x_is_buddypress_component('groups')) { if (x_is_buddypress_group()) { $output = bp_get_current_group_name(); } else { $output = x_get_option('x_buddypress_groups_title'); } } else { if (x_is_buddypress_component('members')) { $output = x_get_option('x_buddypress_members_title'); } else { if (x_is_buddypress_component('blogs')) { $output = x_get_option('x_buddypress_blogs_title'); } else { if (x_is_buddypress_component('register')) { $output = x_get_option('x_buddypress_register_title'); } else { if (x_is_buddypress_component('activate')) { $output = x_get_option('x_buddypress_activate_title'); } else { $output = get_the_title(); } } } } } } } return $output; }