diff options
Diffstat (limited to 'themes/mantra/includes/theme-comments.php')
-rw-r--r-- | themes/mantra/includes/theme-comments.php | 21 |
1 files changed, 10 insertions, 11 deletions
diff --git a/themes/mantra/includes/theme-comments.php b/themes/mantra/includes/theme-comments.php index 51655495..fd1bda6e 100644 --- a/themes/mantra/includes/theme-comments.php +++ b/themes/mantra/includes/theme-comments.php @@ -19,7 +19,15 @@ if ( ! function_exists( 'mantra_comment' ) ) : function mantra_comment( $comment, $args, $depth ) { $GLOBALS['comment'] = $comment; switch ( $comment->comment_type ) : - case '' : + case 'pingback' : + case 'trackback': + ?> + <li class="post pingback"> + <p><?php _e( 'Pingback: ', 'mantra' ); ?><?php comment_author_link(); ?><?php edit_comment_link( __('(Edit)', 'mantra'), ' ' ); ?></p> + <?php + break; + case '': + default: ?> <li <?php comment_class(); ?> id="li-comment-<?php comment_ID(); ?>"> <div id="comment-<?php comment_ID(); ?>"> @@ -27,8 +35,6 @@ function mantra_comment( $comment, $args, $depth ) { <?php echo get_avatar( $comment, 40 ); ?><?php printf( '%s <span class="says">'.__('says:', 'mantra' ).'</span>', sprintf( '<cite class="fn">%s</cite>', get_comment_author_link() ) ); ?> - - </div><!-- .comment-author .vcard --> <div class="comment-meta commentmetadata"><a href="<?php echo esc_url( get_comment_link( $comment->comment_ID ) ); ?>"> @@ -51,14 +57,7 @@ function mantra_comment( $comment, $args, $depth ) { </div><!-- #comment-## --> <?php - break; - case 'pingback' : - case 'trackback' : - ?> - <li class="post pingback"> - <p><?php _e( 'Pingback: ', 'mantra' ); ?><?php comment_author_link(); ?><?php edit_comment_link( __('(Edit)', 'mantra'), ' ' ); ?></p> - <?php - break; + break; endswitch; } endif; |