function gconnect_member_header() { if (bp_is_active('friends')) { bp_add_friend_button(); } if (bp_is_active('activity')) { bp_send_public_message_button(); } if (bp_is_active('messages')) { bp_send_private_message_button(); } }
?> <div id="main-button" class="<?php if (!empty($action_output)) { echo 'primary-btn'; } ?> "> <?php if ($showing == "follows") { bp_follow_add_follow_button(); } elseif ($showing == "friends") { if (!bp_is_friend(bp_displayed_user_id())) { bp_add_friend_button(); } elseif (bp_is_active('messages')) { bp_send_private_message_button(); } else { bp_send_public_message_button(); } } else { bp_send_public_message_button(); } ?> </div> <?php if (!empty($action_output)) { //only show if output exists ?> <!-- more items -->