'
' . ' ' . '
', 'email' => '
' . '
', 'url' => '
' . '
' ); return $fields; } add_filter( 'comment_form_defaults', 'bootstrap_comment_form' ); function bootstrap_comment_form( $args ) { $args['comment_field'] = '
'; $args['class_submit'] = 'btn btn-default btn-cta'; // since WP 4.1 return $args; } if ( ! function_exists( 'brood_comment' ) ) : /** * Template for comments and pingbacks. * * To override this walker in a child theme without modifying the comments template * simply create your own brood_comment(), and that function will be used instead. * * Used as a callback by wp_list_comments() for displaying the comments. * * @since brood 1.0 */ function brood_comment( $comment, $args, $depth ) { $GLOBALS['comment'] = $comment; switch ( $comment->comment_type ) : case 'pingback' : case 'trackback' : // Display trackbacks differently than normal comments. ?>
  • id="comment-">

    ', '' ); ?>

  • id="li-comment-">

    user_id === $post->post_author ) ? '' . __( 'Post author', 'brood' ) . '' : '' ); ?>

    ', esc_url( get_comment_link( $comment->comment_ID ) ), get_comment_time( 'c' ), /* translators: 1: date, 2: time */ sprintf( __( '%1$s at %2$s', 'brood' ), get_comment_date(), get_comment_time() ) ); ?>

    __( 'Reply', 'brood' ), 'after' => ' ', 'depth' => $depth, 'max_depth' => $args['max_depth'] ) ) ); ?>