| | 1293 | |
| | 1294 | function bp_is_active( $component ) { |
| | 1295 | return false; |
| | 1296 | } |
| | 1297 | |
| | 1298 | function bp_page_title() { |
| | 1299 | wp_title(); |
| | 1300 | } |
| | 1301 | |
| | 1302 | function bp_site_name() { |
| | 1303 | echo apply_filters( 'bp_site_name', get_bloginfo( 'name', 'display' ) ); |
| | 1304 | } |
| | 1305 | |
| | 1306 | function bp_search_form_enabled() { |
| | 1307 | return false; |
| | 1308 | } |
| | 1309 | |
| | 1310 | function bp_core_get_userlink( $user_id, $no_anchor = false, $just_link = false ) { |
| | 1311 | return ''; |
| | 1312 | } |
| | 1313 | |
| | 1314 | function bp_loggedin_user_domain() { |
| | 1315 | return ''; |
| | 1316 | } |
| | 1317 | |
| | 1318 | function bp_loggedin_user_avatar( $args = '' ) { |
| | 1319 | } |
| | 1320 | |
| | 1321 | function bp_loggedin_user_id() { |
| | 1322 | $user = wp_get_current_user(); |
| | 1323 | return $user->id; |
| | 1324 | } |
| | 1325 | |
| | 1326 | function bp_get_root_domain() { |
| | 1327 | global $current_blog; |
| | 1328 | |
| | 1329 | if ( defined( 'BP_ENABLE_MULTIBLOG' ) ) |
| | 1330 | $domain = get_home_url( $current_blog->blog_id ); |
| | 1331 | else |
| | 1332 | $domain = get_home_url( BP_ROOT_BLOG ); |
| | 1333 | |
| | 1334 | return apply_filters( 'bp_get_root_domain', $domain ); |
| | 1335 | } |
| | 1336 | |
| | 1337 | function bp_current_component() { |
| | 1338 | return 'members'; |
| | 1339 | } |