From 3227c4874245b649f6a1c4a3814f25cd10a6a6f7 Mon Sep 17 00:00:00 2001 From: "Philip M. Hofer (Frumph)" Date: Mon, 30 Nov 2009 13:28:11 -0800 Subject: [PATCH] Comment Functions CHange removing static images for the pingback and trackback Signed-off-by: Philip M. Hofer (Frumph) --- functions/comment-functions.php | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/functions/comment-functions.php b/functions/comment-functions.php index 09abd52..72a95c5 100644 --- a/functions/comment-functions.php +++ b/functions/comment-functions.php @@ -21,13 +21,7 @@ function comicpress_avatar() { $comment_type = get_comment_type(); - if($comment_type == 'trackback') : - $avatar = '/images/trackback.png'; - - elseif($comment_type == 'pingback') : - $avatar = '/images/pingback.png'; - - elseif(get_settings('avatar_default')): + if(get_settings('avatar_default')): $avatar = get_settings('avatar_default'); endif; @@ -41,7 +35,8 @@ function comicpress_avatar() { echo str_replace("alt='", "alt='".wp_specialchars(get_comment_author(), 1)."' title='".wp_specialchars(get_comment_author(), 1), comicpress_get_avatar($id_or_email, 80)); } else { if ($comment_type == 'pingback' || $comment_type == 'trackback') { - echo ''; + if ($comment_type == 'pingback') echo '
'; + if ($comment_type == 'trackback') echo '
'; } else { echo ''; }