blog_id != BP_ROOT_BLOG ) || is_admin() ) {
$stylesheet = get_blog_option( BP_ROOT_BLOG, 'stylesheet' );
if ( file_exists( WP_CONTENT_DIR . '/themes/' . $stylesheet . '/_inc/css/adminbar.css' ) )
wp_enqueue_style( 'bp-admin-bar', apply_filters( 'bp_core_admin_bar_css', WP_CONTENT_URL . '/themes/' . $stylesheet . '/_inc/css/adminbar.css' ) );
else
wp_enqueue_style( 'bp-admin-bar', apply_filters( 'bp_core_admin_bar_css', BP_PLUGIN_URL . '/bp-themes/bp-default/_inc/css/adminbar.css' ) );
}
}
add_action( 'init', 'bp_core_add_admin_bar_css' );
/**
* bp_core_admin_menu_icon_css()
*
* Add a hover-able icon to the "BuddyPress" wp-admin area menu.
*
* @package BuddyPress Core
*/
function bp_core_admin_menu_icon_css() {
global $bp;
?>
blog_id != BP_ROOT_BLOG )
return false;
?>
avatar_admin->image->dir ) );
$aspect_ratio = 1;
/* Calculate Aspect Ratio */
if ( (int) constant( 'BP_AVATAR_FULL_HEIGHT' ) && ( (int) constant( 'BP_AVATAR_FULL_WIDTH' ) != (int) constant( 'BP_AVATAR_FULL_HEIGHT' ) ) )
$aspect_ratio = (int) constant( 'BP_AVATAR_FULL_WIDTH' ) / (int) constant( 'BP_AVATAR_FULL_HEIGHT' );
?>
var ajaxurl = "' . site_url( 'wp-load.php' ) . '";
';
}
add_action( 'wp_head', 'bp_core_add_ajax_url_js' );
/**
* bp_core_override_adminbar_css()
*
* Overrides the theme's admin bar CSS to hide the adminbar if disabled.
*
* @package BuddyPress Core
*/
function bp_core_override_adminbar_css() {
global $bp;
if ( defined( 'BP_DISABLE_ADMIN_BAR' ) || ( (int)get_site_option( 'hide-loggedout-adminbar' ) && !is_user_logged_in() ) ) {
?>