Poder dedicar una canción desde la lista de miembros
git-svn-id: https://192.168.0.254/svn/Proyectos.ASong2U_Web/trunk@18 cd1a4ea2-8c7f-e448-aada-19d1fee9e1d6
This commit is contained in:
parent
d9b283d22d
commit
6dd1672cd6
@ -513,20 +513,22 @@ add_action('bp_init', 'check_country_field');
|
||||
function bp_member_add_dedicate_a_song_button() {
|
||||
global $bp;
|
||||
global $members_template;
|
||||
|
||||
$friend_id = bp_get_member_user_id();
|
||||
|
||||
$button = array(
|
||||
'id' => 'dedicate-song',
|
||||
'component' => 'friends',
|
||||
'component' => 'dedications',
|
||||
'must_be_logged_in' => true,
|
||||
'block_self' => true,
|
||||
'wrapper_class' => 'friendship-button dedicate-song',
|
||||
'wrapper_id' => 'friendship-button-' . $potential_friend_id,
|
||||
'link_href' => wp_nonce_url( $bp->loggedin_user->domain . bp_get_friends_slug() . '/add-friend/' . $potential_friend_id . '/', 'friends_add_friend' ),
|
||||
'wrapper_class' => 'dedicate-button dedicate-song',
|
||||
'wrapper_id' => 'dedicate-button-' . $friend_id,
|
||||
'link_href' => wp_nonce_url( $bp->loggedin_user->domain . bp_get_dedication_slug() . '/new-dedication/' . $friend_id . '/', 'dedications_new_dedication' ),
|
||||
'link_text' => __( 'Dedicate a song', 'buddypress' ),
|
||||
'link_title' => __( 'Dedicate a song', 'buddypress' ),
|
||||
'link_id' => 'friend-' . $potential_friend_id,
|
||||
'link_id' => 'member-' . $friend_id,
|
||||
'link_rel' => 'add',
|
||||
'link_class' => 'friendship-button dedicate-song add'
|
||||
'link_class' => 'dedicate-button dedicate-song add'
|
||||
);
|
||||
|
||||
if ( !bp_is_my_profile() ) {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user