buddypress/0.1.2/bp-friends/bp-friends-cssjs.php
Andy Peatling 53256dc84e Tagging friends 0.1.2
git-svn-id: https://buddypress.svn.wordpress.org/tags/friends@279 cdf35c40-ae34-48e0-9cc9-0c9da1808c22
2008-08-13 22:43:17 +00:00

35 lines
No EOL
943 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 ( strpos( $_GET['page'], 'friends' ) !== false || $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' );
add_action( 'admin_menu', 'friends_add_js' );
/**************************************************************************
add_css()
Inserts the CSS needed to style the friends pages.
**************************************************************************/
function friends_add_css()
{
?>
<?php
}
?>