Changeset 8769
- Timestamp:
- 08/09/2014 01:05:19 PM (11 years ago)
- Location:
- trunk/src/bp-core
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/bp-core/bp-core-cssjs.php
r8765 r8769 47 47 function bp_core_register_common_styles() { 48 48 $ext = defined( 'SCRIPT_DEBUG' ) && SCRIPT_DEBUG ? '.css' : '.min.css'; 49 $rtl = is_rtl() ? '-rtl' : ''; 49 50 $url = buddypress()->plugin_url . 'bp-core/css/'; 50 51 51 52 $styles = apply_filters( 'bp_core_register_common_styles', array( 52 53 'bp-admin-bar' => array( 53 'file' => apply_filters( 'bp_core_admin_bar_css', "{$url}admin-bar{$ ext}" ),54 'file' => apply_filters( 'bp_core_admin_bar_css', "{$url}admin-bar{$rtl}{$ext}" ), 54 55 'dependencies' => array( 'admin-bar' ) 55 56 ) -
trunk/src/bp-core/deprecated/2.1.php
r8737 r8769 44 44 function bp_core_register_deprecated_styles() { 45 45 $ext = defined( 'SCRIPT_DEBUG' ) && SCRIPT_DEBUG ? '.css' : '.min.css'; 46 $rtl = is_rtl() ? '-rtl' : ''; 46 47 $url = buddypress()->plugin_url . 'bp-core/deprecated/css/'; 47 48 48 49 $styles = apply_filters( 'bp_core_register_deprecated_styles', array( 49 50 // Messages 50 'bp-messages-autocomplete' => 'autocomplete/jquery.autocompletefb', 51 'bp-messages-autocomplete' => array( 52 'file' => "{$url}autocomplete/jquery.autocompletefb{$rtl}{$ext}", 53 'dependencies' => array(), 54 ) 51 55 ) ); 52 56 53 foreach ( $styles as $id => $ file ) {54 wp_register_style( $id, $ url . $file . $ext, array(), bp_get_version() );57 foreach ( $styles as $id => $style ) { 58 wp_register_style( $id, $style['file'], $style['dependencies'], bp_get_version() ); 55 59 } 56 60 }
Note: See TracChangeset
for help on using the changeset viewer.