mirror of
https://gh.wpcy.net/https://github.com/buddypress/buddypress.git
synced 2026-05-31 05:04:29 +08:00
git-svn-id: https://buddypress.svn.wordpress.org/tags/friends@1117 cdf35c40-ae34-48e0-9cc9-0c9da1808c22
22 lines
No EOL
778 B
PHP
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' );
|
|
|
|
?>
|