Changeset 4027
- Timestamp:
- 02/08/2011 10:36:57 PM (13 years ago)
- Location:
- trunk
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/bp-core/bp-core-buddybar.php
r3982 r4027 295 295 global $bp; 296 296 297 if ( defined( 'BP_DISABLE_ADMIN_BAR' ) )297 if ( defined( 'BP_DISABLE_ADMIN_BAR' ) && BP_DISABLE_ADMIN_BAR ) 298 298 return false; 299 299 … … 450 450 // TODO: Add BP support to WP admin bar 451 451 return; 452 452 453 } elseif ( !defined( 'BP_DISABLE_ADMIN_BAR' ) || !BP_DISABLE_ADMIN_BAR ) { 453 454 // Keep the WP admin bar from loading 454 455 show_admin_bar( false ); 455 456 457 // Admin bar styles 458 $stylesheet = get_blog_option( BP_ROOT_BLOG, 'stylesheet' ); 459 460 if ( file_exists( WP_CONTENT_DIR . '/themes/' . $stylesheet . '/_inc/css/adminbar.css' ) ) 461 wp_enqueue_style( 'bp-admin-bar', apply_filters( 'bp_core_admin_bar_css', WP_CONTENT_URL . '/themes/' . $stylesheet . '/_inc/css/adminbar.css' ), array(), BP_VERSION ); 462 else 463 wp_enqueue_style( 'bp-admin-bar', apply_filters( 'bp_core_admin_bar_css', BP_PLUGIN_URL . '/bp-themes/bp-default/_inc/css/adminbar.css' ), array(), BP_VERSION ); 464 456 465 // Actions used to build the BP admin bar 457 466 add_action( 'bp_adminbar_logo', 'bp_adminbar_logo' ); -
trunk/bp-core/bp-core-cssjs.php
r4018 r4027 1 1 <?php 2 3 /**4 * bp_core_add_admin_bar_css()5 *6 * Add the CSS needed for the admin bar on blogs (other than the root) and in the admin area.7 *8 * @package BuddyPress Core9 * @uses get_option() Selects a site setting from the DB.10 */11 function bp_core_add_admin_bar_css() {12 global $bp, $current_blog;13 14 if ( defined( 'BP_DISABLE_ADMIN_BAR' ) )15 return false;16 17 if ( ( is_multisite() && $current_blog->blog_id != BP_ROOT_BLOG ) || is_admin() ) {18 $stylesheet = get_blog_option( BP_ROOT_BLOG, 'stylesheet' );19 20 if ( file_exists( WP_CONTENT_DIR . '/themes/' . $stylesheet . '/_inc/css/adminbar.css' ) )21 wp_enqueue_style( 'bp-admin-bar', apply_filters( 'bp_core_admin_bar_css', WP_CONTENT_URL . '/themes/' . $stylesheet . '/_inc/css/adminbar.css' ), array(), BP_VERSION );22 else23 wp_enqueue_style( 'bp-admin-bar', apply_filters( 'bp_core_admin_bar_css', BP_PLUGIN_URL . '/bp-themes/bp-default/_inc/css/adminbar.css' ), array(), BP_VERSION );24 }25 }26 add_action( 'bp_init', 'bp_core_add_admin_bar_css' );27 28 2 /** 29 3 * bp_core_admin_menu_icon_css() -
trunk/bp-themes/bp-default/style.css
r3771 r4027 22 22 */ 23 23 @import url( _inc/css/default.css ); 24 25 /***26 * The admin bar default styles27 */28 @import url( _inc/css/adminbar.css );
Note: See TracChangeset
for help on using the changeset viewer.