Changeset 1798 for trunk/bp-xprofile/bp-xprofile-cssjs.php
- Timestamp:
- 09/06/2009 01:07:21 AM (16 years ago)
- File:
-
- 1 edited
-
trunk/bp-xprofile/bp-xprofile-cssjs.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/bp-xprofile/bp-xprofile-cssjs.php
r1636 r1798 2 2 3 3 function xprofile_add_admin_css() { 4 wp_enqueue_style( 'xprofile-admin-css', BP_PLUGIN_URL . '/bp-xprofile/admin/css/admin.css' ); 5 } 6 add_action( 'admin_menu', 'xprofile_add_admin_css' ); 7 8 function xprofile_add_admin_js() { 4 9 if ( strpos( $_GET['page'], 'xprofile' ) !== false ) { 5 echo '<link rel="stylesheet" href="' . BP_PLUGIN_URL . '/bp-xprofile/css/admin.css' . '" type="text/css" />'; 10 wp_enqueue_script( array( "jquery-ui-sortable" ) ); 11 wp_enqueue_script( 'xprofile-admin-js', BP_PLUGIN_URL . '/bp-xprofile/admin/js/admin.js', array( 'jquery' ) ); 6 12 } 7 13 } 8 add_action( 'admin_head', 'xprofile_add_admin_css' ); 9 10 function xprofile_add_admin_js() { 11 if ( strpos( $_GET['page'], 'xprofile' ) !== false ) 12 echo '<script type="text/javascript" src="' . BP_PLUGIN_URL . '/bp-xprofile/js/admin.js' . '"></script>'; 13 } 14 add_action( 'admin_head', 'xprofile_add_admin_js' ); 14 add_action( 'admin_menu', 'xprofile_add_admin_js', 1 ); 15 15 16 16 ?>
Note: See TracChangeset
for help on using the changeset viewer.