Comment Functions CHange removing static images for the pingback and trackback
Signed-off-by: Philip M. Hofer (Frumph) <frumph_dragon@yahoo.com>
This commit is contained in:
parent
b12cf93083
commit
3227c48742
|
@ -21,13 +21,7 @@ function comicpress_avatar() {
|
||||||
|
|
||||||
$comment_type = get_comment_type();
|
$comment_type = get_comment_type();
|
||||||
|
|
||||||
if($comment_type == 'trackback') :
|
if(get_settings('avatar_default')):
|
||||||
$avatar = '/images/trackback.png';
|
|
||||||
|
|
||||||
elseif($comment_type == 'pingback') :
|
|
||||||
$avatar = '/images/pingback.png';
|
|
||||||
|
|
||||||
elseif(get_settings('avatar_default')):
|
|
||||||
$avatar = get_settings('avatar_default');
|
$avatar = get_settings('avatar_default');
|
||||||
|
|
||||||
endif;
|
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));
|
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 {
|
} else {
|
||||||
if ($comment_type == 'pingback' || $comment_type == 'trackback') {
|
if ($comment_type == 'pingback' || $comment_type == 'trackback') {
|
||||||
echo '<img src="'.get_template_directory_uri().'/'.$avatar.'" class="photo trackping" />';
|
if ($comment_type == 'pingback') echo '<div class="pingback"></div>';
|
||||||
|
if ($comment_type == 'trackback') echo '<div class="trackback"></div>';
|
||||||
} else {
|
} else {
|
||||||
echo '<img src="'.get_template_directory_uri().'/'.$avatar.'" class="avatar photo" />';
|
echo '<img src="'.get_template_directory_uri().'/'.$avatar.'" class="avatar photo" />';
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue