Merge pull request #678 from JPKCom/master - Nice one! @JPKCom
Added cookies checkbox support for inc/custom-comments.php
This commit is contained in:
commit
f36cb0150c
|
@ -33,6 +33,8 @@ if ( ! function_exists( 'understrap_bootstrap_comment_form_fields' ) ) {
|
|||
'url' => '<div class="form-group comment-form-url"><label for="url">' . __( 'Website',
|
||||
'understrap' ) . '</label> ' .
|
||||
'<input class="form-control" id="url" name="url" ' . ( $html5 ? 'type="url"' : 'type="text"' ) . ' value="' . esc_attr( $commenter['comment_author_url'] ) . '" size="30"></div>',
|
||||
'cookies' => '<div class="form-group form-check comment-form-cookies-consent"><input class="form-check-input" id="wp-comment-cookies-consent" name="wp-comment-cookies-consent" type="checkbox" value="yes"' . $consent . ' /> ' .
|
||||
'<label class="form-check-label" for="wp-comment-cookies-consent">' . __( 'Save my name, email, and website in this browser for the next time I comment.' ) . '</label></div>',
|
||||
);
|
||||
|
||||
return $fields;
|
||||
|
|
Reference in New Issue