buddypress/1.0b1/bp-friends/bp-friends-cssjs.php
Andy Peatling eb977b31c8 Tagging 1.0b1 friends.
git-svn-id: https://buddypress.svn.wordpress.org/tags/friends@782 cdf35c40-ae34-48e0-9cc9-0c9da1808c22
2008-12-15 23:40:53 +00:00

22 lines
No EOL
799 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() . '/wp-content/mu-plugins/bp-friends/js/general.js' );
}
add_action( 'template_redirect', 'friends_add_js' );
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() . '/wp-content/mu-plugins/bp-friends/css/structure.css' );
}
add_action( 'bp_styles', 'friends_add_structure_css' );
?>