Warning: This function has been deprecated.
bp_core_load_buddybar_css()
Enqueue the BuddyBar CSS.
Description Description
Source Source
File: bp-core/deprecated/2.1.php
function bp_core_load_buddybar_css() {
if ( bp_use_wp_admin_bar() || ( (int) bp_get_option( 'hide-loggedout-adminbar' ) && !is_user_logged_in() ) || ( defined( 'BP_DISABLE_ADMIN_BAR' ) && BP_DISABLE_ADMIN_BAR ) ) {
return;
}
$min = bp_core_get_minified_asset_suffix();
if ( file_exists( get_stylesheet_directory() . '/_inc/css/adminbar.css' ) ) { // Backwards compatibility
$stylesheet = get_stylesheet_directory_uri() . '/_inc/css/adminbar.css';
} else {
$stylesheet = buddypress()->plugin_url . "bp-core/css/buddybar{$min}.css";
}
wp_enqueue_style( 'bp-admin-bar', apply_filters( 'bp_core_buddybar_rtl_css', $stylesheet ), array(), bp_get_version() );
wp_style_add_data( 'bp-admin-bar', 'rtl', 'replace' );
if ( $min ) {
wp_style_add_data( 'bp-admin-bar', 'suffix', $min );
}
}
Changelog Changelog
| Version | Description |
|---|---|
| 2.1.0 | Introduced. |