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/tags/friends@224 cdf35c40-ae34-48e0-9cc9-0c9da1808c22
34 lines
No EOL
965 B
PHP
34 lines
No EOL
965 B
PHP
<?php
|
|
/**************************************************************************
|
|
friends_add_js()
|
|
|
|
Inserts the Javascript needed for managing friends.
|
|
**************************************************************************/
|
|
|
|
function friends_add_js() {
|
|
global $bp_friends_image_base;
|
|
global $current_action, $current_component;
|
|
global $bp_friends_slug;
|
|
|
|
if ( strpos( $_GET['page'], 'friends' ) !== false || $current_component == $bp_friends_slug ) {
|
|
echo '
|
|
<script src="' . get_option('siteurl') . '/wp-content/mu-plugins/bp-friends/js/general.js" type="text/javascript"></script>';
|
|
}
|
|
}
|
|
add_action( 'wp_head', 'friends_add_js' );
|
|
add_action( 'admin_menu', 'friends_add_js' );
|
|
|
|
/**************************************************************************
|
|
add_css()
|
|
|
|
Inserts the CSS needed to style the friends pages.
|
|
**************************************************************************/
|
|
|
|
function friends_add_css()
|
|
{
|
|
?>
|
|
|
|
<?php
|
|
}
|
|
|
|
?>
|