Ticket #3749: 3749.01.patch
File 3749.01.patch, 1.3 KB (added by , 14 years ago) |
---|
-
bp-themes/bp-default/functions.php
105 105 // Register buttons for the relevant component templates 106 106 // Friends button 107 107 if ( bp_is_active( 'friends' ) ) 108 add_action( 'bp_member_header_actions', 'bp_add_friend_button' );108 add_action( 'bp_member_header_actions', 'bp_add_friend_button', 9 ); 109 109 110 110 // Activity button 111 111 if ( bp_is_active( 'activity' ) ) 112 add_action( 'bp_member_header_actions', 'bp_send_public_message_button' );112 add_action( 'bp_member_header_actions', 'bp_send_public_message_button', 20 ); 113 113 114 114 // Messages button 115 115 if ( bp_is_active( 'messages' ) ) 116 add_action( 'bp_member_header_actions', 'bp_send_private_message_button' );116 add_action( 'bp_member_header_actions', 'bp_send_private_message_button', 20 ); 117 117 118 118 // Group buttons 119 119 if ( bp_is_active( 'groups' ) ) { 120 add_action( 'bp_group_header_actions', 'bp_group_join_button' );121 add_action( 'bp_group_header_actions', 'bp_group_new_topic_button' );120 add_action( 'bp_group_header_actions', 'bp_group_join_button', 9 ); 121 add_action( 'bp_group_header_actions', 'bp_group_new_topic_button', 20 ); 122 122 add_action( 'bp_directory_groups_actions', 'bp_group_join_button' ); 123 123 } 124 124