buddypress/0.1.4/bp-friends/bp-friends-cssjs.php
Andy Peatling bba5c666bd Tagging 0.1.4 of friends component
git-svn-id: https://buddypress.svn.wordpress.org/tags/friends@327 cdf35c40-ae34-48e0-9cc9-0c9da1808c22
2008-09-11 20:04:18 +00:00

21 lines
No EOL
583 B
PHP

<?php
/**************************************************************************
friends_add_js()
Inserts the Javascript needed for managing friends.
**************************************************************************/
function friends_add_js() {
global $bp;
if ( !isset($_GET['page']) )
$_GET['page'] = null;
if ( $bp['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' );
?>