Changeset 1249 for trunk/bp-themes/buddypress-member/css/loader.php
- Timestamp:
- 03/25/2009 03:58:53 PM (17 years ago)
- File:
-
- 1 edited
-
trunk/bp-themes/buddypress-member/css/loader.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/bp-themes/buddypress-member/css/loader.php
r1056 r1249 1 1 <?php 2 /* Set the content type to CSS */ 3 header('Content-type: text/css'); 4 ?> 2 5 3 /* Load the WP environment */ 4 require_once( preg_replace('%(.*)[/\\\\]wp-content[/\\\\].*%', '\1', $_SERVER['SCRIPT_FILENAME'] ) . '/wp-load.php' ); 6 @import url(base.css); 7 @import url(settings.css); 5 8 6 /* Set the content type to CSS */ 7 header('Content-type: text/css'); 9 @import url(activity.css); 10 @import url(blogs.css); 11 @import url(directories.css); 12 @import url(friends.css); 13 @import url(groups.css); 14 @import url(messaging.css); 15 @import url(wire.css); 16 @import url(profiles.css); 17 @import url(forums.css); 8 18 9 /* Load the base and settings css as they will always be present */ 10 if ( file_exists('base.css') ) 11 echo "@import url(base.css);\n"; 12 13 if ( file_exists('settings.css') ) 14 echo "@import url(settings.css);\n"; 15 16 /* Load CSS for components that are installed */ 17 18 /* Activity Streams */ 19 if ( function_exists('bp_activity_user_install') && file_exists('activity.css') ) 20 echo "@import url(activity.css);\n"; 21 22 /* Blogs */ 23 if ( function_exists('bp_blogs_install') && file_exists('blogs.css') ) 24 echo "@import url(blogs.css);\n"; 25 26 /* Friends */ 27 if ( function_exists('friends_install') && file_exists('friends.css') ) 28 echo "@import url(friends.css);\n"; 29 30 /* Groups */ 31 if ( function_exists('groups_install') && file_exists('groups.css') ) 32 echo "@import url(groups.css);\n"; 33 34 /* Messages */ 35 if ( function_exists('messages_install') && file_exists('messaging.css') ) 36 echo "@import url(messaging.css);\n"; 37 38 /* Wire */ 39 if ( function_exists('bp_wire_install') && file_exists('wire.css') ) 40 echo "@import url(wire.css);\n"; 41 42 /* Profiles */ 43 if ( function_exists('xprofile_install') && file_exists('profiles.css') ) 44 echo "@import url(profiles.css);\n"; 45 46 /* Forums */ 47 if ( function_exists('bp_forums_setup') && file_exists('forums.css') ) 48 echo "@import url(forums.css);\n"; 49 50 /* If the root blog is set up for right to left reading, include the rtl.css file */ 51 if ( get_bloginfo( 1, 'text_direction' ) == 'rtl' && file_exists( 'rtl.css' ) ) 52 echo "@import url(rtl.css);\n"; 53 19 <?php 54 20 /* If there are any custom component css files inside the /custom-components/ dir, load them. */ 55 21 if ( is_dir( './custom-components' ) ) { … … 66 32 if ( file_exists('custom.css') ) 67 33 echo "@import url(custom.css);\n"; 68 69 do_action( 'bp_custom_member_styles' );70 71 34 ?>
Note:
See TracChangeset
for help on using the changeset viewer.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)