| 853 | if ( is_user_logged_in() ) { |
| 854 | $content .= '<form action="' . bp_get_activity_comment_form_action() . '" method="post" id="ac-form-' . $comment_child->id . '" class="ac-form">'; |
| 855 | |
| 856 | $content .= '<div class="ac-reply-avatar">' . bp_get_loggedin_user_avatar( 'width=' . BP_AVATAR_THUMB_WIDTH . '&height=' . BP_AVATAR_THUMB_HEIGHT ) . '</div>'; |
| 857 | |
| 858 | $content .= '<div class="ac-reply-content">'; |
| 859 | |
| 860 | $content .= '<div class="ac-textarea"> <textarea id="ac-input-' . $comment_child->id . '" class="ac-input" name="ac_input_' . $comment_child->id . ' "></textarea></div>'; |
| 861 | |
| 862 | $content .= '<input type="submit" name="ac_form_submit" value="' . __( 'Post', 'buddypress' ) . ' →" />'; |
| 863 | |
| 864 | $content .= ' ' . __( 'or press esc to cancel.', 'buddypress' ); |
| 865 | |
| 866 | $content .= '<input type="hidden" name="comment_form_id" value="' . $comment_child->id . '" />'; |
| 867 | |
| 868 | $content .= '</div>'; |
| 869 | |
| 870 | $content .= wp_nonce_field( 'new_activity_comment', '_wpnonce_new_activity_comment' ); |
| 871 | |
| 872 | $content .= '</form>'; |
| 873 | } |
| 874 | |