buddypress/0.1.1/bp-friends/bp-friends-cssjs.php
Andy Peatling aa4c01bfbe tagging 0.1.1 friends
git-svn-id: https://buddypress.svn.wordpress.org/tags/friends@240 cdf35c40-ae34-48e0-9cc9-0c9da1808c22
2008-07-21 22:38:10 +00:00

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
}
?>