Changeset 6264 for trunk/bp-xprofile/bp-xprofile-cssjs.php
- Timestamp:
- 08/24/2012 06:10:17 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/bp-xprofile/bp-xprofile-cssjs.php
r6259 r6264 18 18 function xprofile_add_admin_css() { 19 19 if ( !empty( $_GET['page'] ) && strpos( $_GET['page'], 'bp-profile-setup' ) !== false ) { 20 if ( defined( 'SCRIPT_DEBUG' ) && SCRIPT_DEBUG ) { 21 wp_enqueue_style( 'xprofile-admin-css', BP_PLUGIN_URL . 'bp-xprofile/admin/css/admin.dev.css', array(), bp_get_version() ); 22 } else { 23 wp_enqueue_style( 'xprofile-admin-css', BP_PLUGIN_URL . 'bp-xprofile/admin/css/admin.css', array(), bp_get_version() ); 24 } 20 $min = defined( 'SCRIPT_DEBUG' ) && SCRIPT_DEBUG ? '' : '.min'; 21 wp_enqueue_style( 'xprofile-admin-css', BP_PLUGIN_URL . "bp-xprofile/admin/css/admin{$min}.css", array(), bp_get_version() ); 25 22 } 26 23 } … … 41 38 wp_enqueue_script( 'jquery-ui-sortable' ); 42 39 43 if ( defined( 'SCRIPT_DEBUG' ) && SCRIPT_DEBUG ) { 44 wp_enqueue_script( 'xprofile-admin-js', BP_PLUGIN_URL . 'bp-xprofile/admin/js/admin.dev.js', array( 'jquery', 'jquery-ui-sortable' ), bp_get_version() ); 45 } else { 46 wp_enqueue_script( 'xprofile-admin-js', BP_PLUGIN_URL . 'bp-xprofile/admin/js/admin.js', array( 'jquery', 'jquery-ui-sortable' ), bp_get_version() ); 47 } 40 $min = defined( 'SCRIPT_DEBUG' ) && SCRIPT_DEBUG ? '' : '.min'; 41 wp_enqueue_script( 'xprofile-admin-js', BP_PLUGIN_URL . "bp-xprofile/admin/js/admin{$min}.js", array( 'jquery', 'jquery-ui-sortable' ), bp_get_version() ); 48 42 } 49 43 }
Note: See TracChangeset
for help on using the changeset viewer.