Ticket #3247: #3247-add-fields-to-coment-form.patch
| File #3247-add-fields-to-coment-form.patch, 1.2 KB (added by , 15 years ago) |
|---|
-
bp-themes/bp-default/comments.php
1 1 <?php 2 // comment_form() args 3 4 $fields = array( 5 'comment_notes_after' => '<p class="form-allowed-tags">' . sprintf( __( 'You may use these <abbr title="HyperText Markup 6 Language">HTML</abbr> tags and attributes: %s' ), ' <code>' . allowed_tags() . '</code>' ) . '</p>', 7 // if non logged in comments are allowed 'email not published' shown. 8 'comment_notes_before' => '<p class="comment-notes">' . __( 'Your email address will not be published.' ) . ( $req ? $required_text : '' ) . '</p>' 9 ); 10 2 11 if ( post_password_required() ) { 3 12 echo '<h3 class="comments-header">' . __( 'Password Protected', 'buddypress' ) . '</h3>'; 4 13 echo '<p class="alert password-protected">' . __( 'Enter the password to view comments.', 'buddypress' ) . '</p>'; … … 54 63 <?php endif; ?> 55 64 56 65 <?php if ( comments_open() ) : ?> 57 <?php comment_form( ) ?>66 <?php comment_form( $fields ) ?> 58 67 <?php endif; ?> 59 68 60 69 <?php if ( !empty( $num_trackbacks ) ) : ?>