| 1 | <?php |
|---|
| 2 | /** |
|---|
| 3 | * BP Nouveau Activity Comment form template. |
|---|
| 4 | * |
|---|
| 5 | * @since 3.0.0 |
|---|
| 6 | * @version 3.0.0 |
|---|
| 7 | */ |
|---|
| 8 | |
|---|
| 9 | if ( ! bp_nouveau_current_user_can( 'comment_activity' ) || ! bp_activity_can_comment() ) { |
|---|
| 10 | return; |
|---|
| 11 | } ?> |
|---|
| 12 | |
|---|
| 13 | <form action="<?php bp_activity_comment_form_action(); ?>" method="post" id="ac-form-<?php bp_activity_id(); ?>" class="ac-form"<?php bp_activity_comment_form_nojs_display(); ?>> |
|---|
| 14 | |
|---|
| 15 | <div class="ac-reply-avatar"><?php bp_loggedin_user_avatar( array( 'type' => 'thumb' ) ); ?></div> |
|---|
| 16 | <div class="ac-reply-content"> |
|---|
| 17 | <div class="ac-textarea"> |
|---|
| 18 | <label for="ac-input-<?php bp_activity_id(); ?>" class="bp-screen-reader-text"><?php _e( 'Comment', 'buddypress' ); ?></label> |
|---|
| 19 | <textarea id="ac-input-<?php bp_activity_id(); ?>" class="ac-input bp-suggestions" name="ac_input_<?php bp_activity_id(); ?>"></textarea> |
|---|
| 20 | </div> |
|---|
| 21 | <? |
|---|
| 22 | /** |
|---|
| 23 | * Fires after the activity comment form |
|---|
| 24 | */ |
|---|
| 25 | do_action( 'bp_activity_inside_comments' ); |
|---|
| 26 | ?> |
|---|
| 27 | <input type="submit" name="ac_form_submit" value="<?php esc_attr_e( 'Post', 'buddypress' ); ?>" /> <button type="button" class="ac-reply-cancel"><?php _e( 'Cancel', 'buddypress' ); ?></button> |
|---|
| 28 | <input type="hidden" name="comment_form_id" value="<?php bp_activity_id(); ?>" /> |
|---|
| 29 | </div> |
|---|
| 30 | |
|---|
| 31 | <?php wp_nonce_field( 'new_activity_comment', '_wpnonce_new_activity_comment' ); ?> |
|---|
| 32 | |
|---|
| 33 | </form> |
|---|