diff --git a/functions.php b/functions.php index f97c606..d7a1e4d 100644 --- a/functions.php +++ b/functions.php @@ -156,59 +156,92 @@ function melville_remove_gallery_css( $css ) { add_filter( 'gallery_style', 'melville_remove_gallery_css' ); if ( ! function_exists( 'melville_comment' ) ) : -/** - * Template for comments and pingbacks. - * - * To override this walker in a child theme without modifying the comments template - * simply create your own twentyten_comment(), and that function will be used instead. - * - * Used as a callback by wp_list_comments() for displaying the comments. - * - * @since Twenty Ten 1.0 - */ -function melville_comment( $comment, $args, $depth ) { - $GLOBALS['comment'] = $comment; - switch ( $comment->comment_type ) : - case '' : - ?> -
  • id="li-comment-"> + /** + * Template for comments and pingbacks. + * + * To override this walker in a child theme without modifying the comments template + * simply create your own twentyten_comment(), and that function will be used instead. + * + * Used as a callback by wp_list_comments() for displaying the comments. + * + * @since Twenty Ten 1.0 + * + * @param WP_Comment $comment The comment object. + * @param array $args An array of arguments. @see get_comment_reply_link() + * @param int $depth The depth of the comment. + */ + function melville_comment( $comment, $args, $depth ) { + $GLOBALS['comment'] = $comment; + switch ( $comment->comment_type ) : + case '': + case 'comment': + ?> +
  • id="li-comment-">
    -
    - - said:', 'twentyten' ), sprintf( '%s', get_comment_author_link() ) ); ?> -
    - comment_approved == '0' ) : ?> - +
    + + says:', 'twentyten' ), sprintf( '%s', get_comment_author_link() ) ); + ?> +
    + + + + comment_approved ) : ?> +
    - + - + -
    +
    -
    - $depth, 'max_depth' => $args['max_depth'] ) ) ); ?> -
    -
    +
    + $depth, + 'max_depth' => $args['max_depth'], + ) + ) + ); + ?> +
    + - -
  • -

    - +
  • +

    +