'
' . '
', 'email' => '
' . '
', 'url' => '
' . '
', ); return $fields; } add_filter( 'comment_form_defaults', 'bootredux_bootstrap_comment_form' ); /** * Builds the form. * * @param string $args Arguments for form's fields. * * @return mixed */ function bootredux_bootstrap_comment_form( $args ) { $args['class_form'] = 'alert alert-secondary'; $args['title_reply'] = __('Leave a response', 'bootredux'); $args['title_reply_to'] = __( 'Reply to %s', 'bootredux' ); $args['cancel_reply_link'] = __( 'Cancel Reply', 'bootredux' ); $args['comment_notes_before'] = __( '', 'bootredux' ); $args['comment_field'] = '
'; $args['class_submit'] = 'btn btn-primary'; // since WP 4.1. return $args; } if ( ! function_exists( 'bootredux_starter_comment' ) ) : /** * Template for comments and pingbacks. * * Used as a callback by wp_list_comments() for displaying the comments. */ function bootredux_comment( $comment, $args, $depth ) { // $GLOBALS['comment'] = $comment; if ( 'pingback' == $comment->comment_type || 'trackback' == $comment->comment_type ) : ?>
  • >
    ', '' ); ?>
  • >
    says:', 'bootredux' ), sprintf( '%s', get_comment_author_link() ) ); ?>
    comment_approved ) : ?>

    ', '' ); ?>
    'div-comment', 'depth' => $depth, 'max_depth' => $args['max_depth'], 'before' => '
    ', 'after' => '
    ' ) ) ); ?>