mirror of
https://gh.wpcy.net/https://github.com/buddypress/buddypress.git
synced 2026-05-31 05:04:29 +08:00
git-svn-id: https://buddypress.svn.wordpress.org/trunk@1798 cdf35c40-ae34-48e0-9cc9-0c9da1808c22
16 lines
518 B
PHP
16 lines
518 B
PHP
<?php
|
|
|
|
function xprofile_add_admin_css() {
|
|
wp_enqueue_style( 'xprofile-admin-css', BP_PLUGIN_URL . '/bp-xprofile/admin/css/admin.css' );
|
|
}
|
|
add_action( 'admin_menu', 'xprofile_add_admin_css' );
|
|
|
|
function xprofile_add_admin_js() {
|
|
if ( strpos( $_GET['page'], 'xprofile' ) !== false ) {
|
|
wp_enqueue_script( array( "jquery-ui-sortable" ) );
|
|
wp_enqueue_script( 'xprofile-admin-js', BP_PLUGIN_URL . '/bp-xprofile/admin/js/admin.js', array( 'jquery' ) );
|
|
}
|
|
}
|
|
add_action( 'admin_menu', 'xprofile_add_admin_js', 1 );
|
|
|
|
?>
|