Changeset 5599 for trunk/bp-xprofile/bp-xprofile-cssjs.php
- Timestamp:
- 12/24/2011 06:11:28 PM (14 years ago)
- File:
-
- 1 edited
-
trunk/bp-xprofile/bp-xprofile-cssjs.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/bp-xprofile/bp-xprofile-cssjs.php
r5574 r5599 1 1 <?php 2 2 3 // Exit if accessed directly 3 4 if ( !defined( 'ABSPATH' ) ) exit; 4 5 6 /** 7 * Enqueue the CSS for XProfile admin styling 8 * 9 * @since BuddyPress (1.1) 10 */ 5 11 function xprofile_add_admin_css() { 6 $version = '20111212'; 12 $version = '20111224'; 13 7 14 if ( !empty( $_GET['page'] ) && strpos( $_GET['page'], 'bp-profile-setup' ) !== false ) { 8 if ( defined( 'SCRIPT_DEBUG' ) && SCRIPT_DEBUG ) 15 if ( defined( 'SCRIPT_DEBUG' ) && SCRIPT_DEBUG ) { 9 16 wp_enqueue_style( 'xprofile-admin-css', BP_PLUGIN_URL . 'bp-xprofile/admin/css/admin.dev.css', array(), $version ); 10 else17 } else { 11 18 wp_enqueue_style( 'xprofile-admin-css', BP_PLUGIN_URL . 'bp-xprofile/admin/css/admin.css', array(), $version ); 19 } 12 20 } 13 21 } 14 22 add_action( bp_core_admin_hook(), 'xprofile_add_admin_css' ); 15 23 24 /** 25 * Enqueue the jQuery libraries for handling drag/drop/sort 26 * 27 * @since BuddyPres (1.5) 28 */ 16 29 function xprofile_add_admin_js() { 17 30 if ( !empty( $_GET['page'] ) && strpos( $_GET['page'], 'bp-profile-setup' ) !== false ) { … … 23 36 wp_enqueue_script( 'jquery-ui-sortable' ); 24 37 25 $version = '20111212'; 26 if ( defined( 'SCRIPT_DEBUG' ) && SCRIPT_DEBUG ) 38 $version = '20111224'; 39 40 if ( defined( 'SCRIPT_DEBUG' ) && SCRIPT_DEBUG ) { 27 41 wp_enqueue_script( 'xprofile-admin-js', BP_PLUGIN_URL . 'bp-xprofile/admin/js/admin.dev.js', array( 'jquery', 'jquery-ui-sortable' ), $version ); 28 else42 } else { 29 43 wp_enqueue_script( 'xprofile-admin-js', BP_PLUGIN_URL . 'bp-xprofile/admin/js/admin.js', array( 'jquery', 'jquery-ui-sortable' ), $version ); 44 } 30 45 } 31 46 } 32 47 add_action( bp_core_admin_hook(), 'xprofile_add_admin_js', 1 ); 48 33 49 ?>
Note: See TracChangeset
for help on using the changeset viewer.