Changeset 1209 for trunk/bp-xprofile/bp-xprofile-cssjs.php
- Timestamp:
- 03/15/2009 07:43:18 AM (17 years ago)
- File:
-
- 1 edited
-
trunk/bp-xprofile/bp-xprofile-cssjs.php (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/bp-xprofile/bp-xprofile-cssjs.php
r1052 r1209 9 9 function xprofile_add_css() { 10 10 if ( $_SERVER['SCRIPT_NAME'] == '/wp-signup.php' ) 11 wp_enqueue_style( 'bp-xprofile-signup', site_url( MUPLUGINDIR . '/bp-xprofile/css/signup.css' ));11 wp_enqueue_style( 'bp-xprofile-signup', WPMU_PLUGIN_URL . '/bp-xprofile/css/signup.css' ); 12 12 13 13 wp_print_styles(); … … 17 17 function xprofile_add_structure_css() { 18 18 /* Enqueue the structure CSS file to give basic positional formatting for xprofile pages */ 19 wp_enqueue_style( 'bp-xprofile-structure', site_url( MUPLUGINDIR . '/bp-xprofile/css/structure.css' ));19 wp_enqueue_style( 'bp-xprofile-structure', WPMU_PLUGIN_URL . '/bp-xprofile/css/structure.css' ); 20 20 } 21 21 add_action( 'bp_styles', 'xprofile_add_structure_css' ); … … 23 23 function xprofile_add_admin_css() { 24 24 if ( strpos( $_GET['page'], 'xprofile' ) !== false ) { 25 echo '<link rel="stylesheet" href="' . site_url( MUPLUGINDIR . '/bp-xprofile/css/admin.css' ). '" type="text/css" />';25 echo '<link rel="stylesheet" href="' . WPMU_PLUGIN_URL . '/bp-xprofile/css/admin.css' . '" type="text/css" />'; 26 26 } 27 27 } … … 30 30 function xprofile_add_admin_js() { 31 31 if ( strpos( $_GET['page'], 'xprofile' ) !== false ) 32 echo '<script type="text/javascript" src="' . site_url( MUPLUGINDIR . '/bp-xprofile/js/admin.js' ). '"></script>';32 echo '<script type="text/javascript" src="' . WPMU_PLUGIN_URL . '/bp-xprofile/js/admin.js' . '"></script>'; 33 33 } 34 34 add_action( 'admin_head', 'xprofile_add_admin_js' );
Note: See TracChangeset
for help on using the changeset viewer.