Changeset 1076 for trunk/bp-core/bp-core-cssjs.php
- Timestamp:
- 02/12/2009 07:06:09 PM (17 years ago)
- File:
-
- 1 edited
-
trunk/bp-core/bp-core-cssjs.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/bp-core/bp-core-cssjs.php
r1052 r1076 41 41 */ 42 42 function bp_core_add_css() { 43 if ( is_user_logged_in() || ( (int)get_site_option( 'show-loggedout-adminbar' ) && !is_user_logged_in() ) ) {44 wp_enqueue_style( 'bp-admin-bar', site_url( MUPLUGINDIR . '/bp-core/css/admin-bar.css' ) );45 46 if ( 'rtl' == get_bloginfo('text_direction') && file_exists( ABSPATH . MUPLUGINDIR . '/bp-core/css/admin-bar-rtl.css' ) )47 wp_enqueue_style( 'bp-admin-bar-rtl', site_url( MUPLUGINDIR . '/bp-core/css/admin-bar-rtl.css' ) );48 }49 50 43 // Enable a sitewide CSS file that will apply styles to both the home blog theme 51 44 // and the member theme. … … 56 49 } 57 50 add_action( 'wp_head', 'bp_core_add_css' ); 51 52 /** 53 * bp_core_admin_bar_css() 54 * 55 * Add the CSS required for the global admin bar. 56 * 57 * @package BuddyPress Core 58 */ 59 function bp_core_admin_bar_css() { 60 if ( is_user_logged_in() || ( (int)get_site_option( 'show-loggedout-adminbar' ) && !is_user_logged_in() ) ) { 61 wp_enqueue_style( 'bp-admin-bar', site_url( MUPLUGINDIR . '/bp-core/css/admin-bar.css' ) ); 62 63 if ( 'rtl' == get_bloginfo('text_direction') && file_exists( ABSPATH . MUPLUGINDIR . '/bp-core/css/admin-bar-rtl.css' ) ) 64 wp_enqueue_style( 'bp-admin-bar-rtl', site_url( MUPLUGINDIR . '/bp-core/css/admin-bar-rtl.css' ) ); 65 } 66 } 67 add_action( 'wp_head', 'bp_core_admin_bar_css' ); 58 68 59 69 /**
Note: See TracChangeset
for help on using the changeset viewer.