bp_core_load_buddybar_css

Enqueue the BuddyBar CSS.

Description

bp_core_load_buddybar_css(); 

Usage

  1. if ( !function_exists( 'bp_core_load_buddybar_css' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'buddypress/bp-core/deprecated/2.1.php'; 
  3.  
  4.  
  5. // NOTICE! Understand what this does before running. 
  6. $result = bp_core_load_buddybar_css(); 
  7.  

Defined (1)

The function is defined in the following location(s).

/bp-core/deprecated/2.1.php  
  1. function bp_core_load_buddybar_css() { 
  2.  
  3. 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 ) ) { 
  4. return; 
  5.  
  6.  
  7. if ( file_exists( get_stylesheet_directory() . '/_inc/css/adminbar.css' ) ) { // Backwards compatibility 
  8. $stylesheet = get_stylesheet_directory_uri() . '/_inc/css/adminbar.css'; 
  9. } else { 
  10. $stylesheet =buddypress)->plugin_url . "bp-core/css/buddybar{$min}.css"; 
  11.  
  12. wp_enqueue_style( 'bp-admin-bar', apply_filters( 'bp_core_buddybar_rtl_css', $stylesheet ), array(), bp_get_version() ); 
  13.  
  14. wp_style_add_data( 'bp-admin-bar', 'rtl', true ); 
  15. if ( $min ) { 
  16. wp_style_add_data( 'bp-admin-bar', 'suffix', $min );