Changeset 5868 for trunk/bp-core/bp-core-buddybar.php
- Timestamp:
- 02/28/2012 10:05:51 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/bp-core/bp-core-buddybar.php
r5758 r5868 429 429 } 430 430 431 // **** Default BuddyPress adminbar logo ********431 // **** Default BuddyPress Toolbar logo ******** 432 432 function bp_adminbar_logo() { 433 433 echo '<a href="' . bp_get_root_domain() . '" id="admin-bar-logo">' . get_blog_option( bp_get_root_blog_id(), 'blogname' ) . '</a>'; … … 552 552 553 553 /** 554 * Retrieve the adminbar display preference of a user based on context.554 * Retrieve the Toolbar display preference of a user based on context. 555 555 * 556 556 * This is a direct copy of WP's private _get_admin_bar_pref() … … 563 563 * @uses get_user_option() 564 564 * 565 * @return bool Whether the adminbar should be showing for this user.565 * @return bool Whether the Toolbar should be showing for this user. 566 566 */ 567 567 function bp_get_admin_bar_pref( $context, $user = 0 ) { … … 574 574 575 575 /** 576 * Handle the Admin Bar/BuddyBar business576 * Handle the Toolbar/BuddyBar business 577 577 * 578 578 * @since 1.2.0 … … 594 594 global $wp_version; 595 595 596 // Don't show if adminbar is disabled for non-logged in users596 // Don't show if Toolbar is disabled for non-logged in users 597 597 if ( (int) bp_get_option( 'hide-loggedout-adminbar' ) ) 598 598 return; 599 599 600 // Show the WordPress adminbar600 // Show the WordPress Toolbar 601 601 if ( bp_use_wp_admin_bar() && $wp_version >= 3.1 ) { 602 // Respect user's adminbar display preferences602 // Respect user's Toolbar display preferences 603 603 if ( is_user_logged_in() && ( bp_get_admin_bar_pref( 'front', bp_loggedin_user_id() ) || bp_get_admin_bar_pref( 'admin', bp_loggedin_user_id() ) ) ) 604 604 return; … … 606 606 show_admin_bar( true ); 607 607 608 // Hide the WordPress adminbar608 // Hide the WordPress Toolbar 609 609 } elseif ( !bp_use_wp_admin_bar() ) { 610 610 611 // Keep the WP adminbar from loading611 // Keep the WP Toolbar from loading 612 612 show_admin_bar( false ); 613 613 614 // Actions used to build the BP adminbar614 // Actions used to build the BP Toolbar 615 615 add_action( 'bp_adminbar_logo', 'bp_adminbar_logo' ); 616 616 add_action( 'bp_adminbar_menus', 'bp_adminbar_login_menu', 2 ); … … 619 619 add_action( 'bp_adminbar_menus', 'bp_adminbar_random_menu', 100 ); 620 620 621 // Actions used to append BP adminbar to footer621 // Actions used to append BP Toolbar to footer 622 622 add_action( 'wp_footer', 'bp_core_admin_bar', 8 ); 623 623 add_action( 'admin_footer', 'bp_core_admin_bar' );
Note: See TracChangeset
for help on using the changeset viewer.