Changeset 5525
- Timestamp:
- 12/12/2011 02:41:46 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/bp-xprofile/bp-xprofile-cssjs.php
r4827 r5525 4 4 5 5 function xprofile_add_admin_css() { 6 $version = '20111212'; 6 7 if ( !empty( $_GET['page'] ) && strpos( $_GET['page'], 'bp-profile-setup' ) !== false ) { 7 8 if ( defined( 'SCRIPT_DEBUG' ) && SCRIPT_DEBUG ) 8 wp_enqueue_style( 'xprofile-admin-css', BP_PLUGIN_URL . '/bp-xprofile/admin/css/admin.dev.css', array(), '20110723');9 wp_enqueue_style( 'xprofile-admin-css', BP_PLUGIN_URL . '/bp-xprofile/admin/css/admin.dev.css', array(), $version ); 9 10 else 10 wp_enqueue_style( 'xprofile-admin-css', BP_PLUGIN_URL . '/bp-xprofile/admin/css/admin.css', array(), '20110723');11 wp_enqueue_style( 'xprofile-admin-css', BP_PLUGIN_URL . '/bp-xprofile/admin/css/admin.css', array(), $version ); 11 12 } 12 13 } … … 15 16 function xprofile_add_admin_js() { 16 17 if ( !empty( $_GET['page'] ) && strpos( $_GET['page'], 'bp-profile-setup' ) !== false ) { 17 wp_enqueue_script( 'jquery-ui-core' );18 wp_enqueue_script( 'jquery-ui-tabs' );19 wp_enqueue_script( 'jquery-ui-mouse' );18 wp_enqueue_script( 'jquery-ui-core' ); 19 wp_enqueue_script( 'jquery-ui-tabs' ); 20 wp_enqueue_script( 'jquery-ui-mouse' ); 20 21 wp_enqueue_script( 'jquery-ui-draggable' ); 21 22 wp_enqueue_script( 'jquery-ui-droppable' ); 22 wp_enqueue_script( 'jquery-ui-sortable' );23 wp_enqueue_script( 'jquery-ui-sortable' ); 23 24 25 $version = '20111212'; 24 26 if ( defined( 'SCRIPT_DEBUG' ) && SCRIPT_DEBUG ) 25 wp_enqueue_script( 'xprofile-admin-js', BP_PLUGIN_URL . '/bp-xprofile/admin/js/admin.dev.js', array( 'jquery', 'jquery-ui-sortable' ), '20110723');27 wp_enqueue_script( 'xprofile-admin-js', BP_PLUGIN_URL . '/bp-xprofile/admin/js/admin.dev.js', array( 'jquery', 'jquery-ui-sortable' ), $version ); 26 28 else 27 wp_enqueue_script( 'xprofile-admin-js', BP_PLUGIN_URL . '/bp-xprofile/admin/js/admin.js', array( 'jquery', 'jquery-ui-sortable' ), '20110723');29 wp_enqueue_script( 'xprofile-admin-js', BP_PLUGIN_URL . '/bp-xprofile/admin/js/admin.js', array( 'jquery', 'jquery-ui-sortable' ), $version ); 28 30 } 29 31 }
Note: See TracChangeset
for help on using the changeset viewer.