Ticket #4736: trac4736_bp_ajax_missing_buttons.patch
| File trac4736_bp_ajax_missing_buttons.patch, 2.2 KB (added by , 13 years ago) |
|---|
-
bp-themes/bp-default/functions.php
112 112 add_theme_support( 'custom-header', $custom_header_args ); 113 113 } 114 114 115 if ( !is_admin() ) { 116 // Register buttons for the relevant component templates 117 // Friends button 118 if ( bp_is_active( 'friends' ) ) 119 add_action( 'bp_member_header_actions', 'bp_add_friend_button', 5 ); 115 // Register buttons for the relevant component templates 116 // Friends button 117 if ( bp_is_active( 'friends' ) ) 118 add_action( 'bp_member_header_actions', 'bp_add_friend_button', 5 ); 120 119 121 // Activity button122 if ( bp_is_active( 'activity' ) )123 add_action( 'bp_member_header_actions', 'bp_send_public_message_button', 20 );120 // Activity button 121 if ( bp_is_active( 'activity' ) ) 122 add_action( 'bp_member_header_actions', 'bp_send_public_message_button', 20 ); 124 123 125 // Messages button126 if ( bp_is_active( 'messages' ) )127 add_action( 'bp_member_header_actions', 'bp_send_private_message_button', 20 );124 // Messages button 125 if ( bp_is_active( 'messages' ) ) 126 add_action( 'bp_member_header_actions', 'bp_send_private_message_button', 20 ); 128 127 129 // Group buttons 130 if ( bp_is_active( 'groups' ) ) { 131 add_action( 'bp_group_header_actions', 'bp_group_join_button', 5 ); 132 add_action( 'bp_group_header_actions', 'bp_group_new_topic_button', 20 ); 133 add_action( 'bp_directory_groups_actions', 'bp_group_join_button' ); 134 } 135 136 // Blog button 137 if ( bp_is_active( 'blogs' ) ) 138 add_action( 'bp_directory_blogs_actions', 'bp_blogs_visit_blog_button' ); 128 // Group buttons 129 if ( bp_is_active( 'groups' ) ) { 130 add_action( 'bp_group_header_actions', 'bp_group_join_button', 5 ); 131 add_action( 'bp_group_header_actions', 'bp_group_new_topic_button', 20 ); 132 add_action( 'bp_directory_groups_actions', 'bp_group_join_button' ); 139 133 } 134 135 // Blog button 136 if ( bp_is_active( 'blogs' ) ) 137 add_action( 'bp_directory_blogs_actions', 'bp_blogs_visit_blog_button' ); 140 138 } 141 139 add_action( 'after_setup_theme', 'bp_dtheme_setup' ); 142 140 endif;