buddypress/1.0rc1/bp-friends/bp-friends-cssjs.php
Andy Peatling f6f7ec088f Tagging bp-friends RC1 (file+folder)
git-svn-id: https://buddypress.svn.wordpress.org/tags/friends@1117 cdf35c40-ae34-48e0-9cc9-0c9da1808c22
2009-02-13 02:47:09 +00:00

22 lines
No EOL
778 B
PHP

<?php
/**************************************************************************
friends_add_js()
Inserts the Javascript needed for managing friends.
**************************************************************************/
function friends_add_js() {
global $bp;
if ( $bp->current_component == $bp->friends->slug )
wp_enqueue_script( 'bp-friends-js', site_url( MUPLUGINDIR . '/bp-friends/js/general.js' ) );
}
add_action( 'template_redirect', 'friends_add_js', 1 );
function friends_add_structure_css() {
/* Enqueue the structure CSS file to give basic positional formatting for components */
wp_enqueue_style( 'bp-friends-structure', site_url( MUPLUGINDIR . '/bp-friends/css/structure.css' ) );
}
add_action( 'bp_styles', 'friends_add_structure_css' );
?>