From 07c3a9e9f2d07850d5178c43e417d96bd7a23eec Mon Sep 17 00:00:00 2001 From: mindfaucet Date: Tue, 1 Dec 2009 16:12:59 -0700 Subject: [PATCH] Comments/pingbacks styling and adjustments... --- functions/comment-functions.php | 29 +++++++++++++---------------- style.css | 19 ++++++++++++------- 2 files changed, 25 insertions(+), 23 deletions(-) diff --git a/functions/comment-functions.php b/functions/comment-functions.php index 0a2577e..d6f228f 100644 --- a/functions/comment-functions.php +++ b/functions/comment-functions.php @@ -27,23 +27,22 @@ function comicpress_avatar() { endif; // $avatar = apply_filters('comicpress_avatar', $avatar); - if($url == true && $url != 'http://') - echo ''; - $id_or_email = get_comment_author_email(); - if (empty($id_or_email)) $id_or_email = get_comment_author(); - if(function_exists('comicpress_get_avatar') && $comment_type != 'pingback' && $comment_type != 'trackback' ) { - echo str_replace("alt='", "alt='".wp_specialchars(get_comment_author(), 1)."' title='".wp_specialchars(get_comment_author(), 1), comicpress_get_avatar($id_or_email, 64)); - } else { - if ($comment_type == 'pingback' || $comment_type == 'trackback') { - if ($comment_type == 'pingback') echo '
'; - if ($comment_type == 'trackback') echo '
'; + if ($comment_type != 'pingback' && $comment_type != 'trackback') { + echo '
'; + if($url == true && $url != 'http://') + echo ''; + $id_or_email = get_comment_author_email(); + if (empty($id_or_email)) $id_or_email = get_comment_author(); + if(function_exists('comicpress_get_avatar') && $comment_type != 'pingback' && $comment_type != 'trackback' ) { + echo str_replace("alt='", "alt='".wp_specialchars(get_comment_author(), 1)."' title='".wp_specialchars(get_comment_author(), 1), comicpress_get_avatar($id_or_email, 64)); } else { echo ''; } + if($url == true && $url != 'http://') + echo ''; + echo '
'; } - if($url == true && $url != 'http://') - echo ''; } /** @@ -118,9 +117,7 @@ function comicpress_comments_callback($comment, $args, $depth) {
  • > -
    - -
    +
    @@ -131,7 +128,7 @@ function comicpress_comments_callback($comment, $args, $depth) {