Modified comments.php so that the default avatars are displayed according to the setting in Admin > Settings > Discussion > Avatars > Default Avatar
This commit is contained in:
@@ -3,7 +3,7 @@
|
|||||||
<li <?php comment_class(); ?>>
|
<li <?php comment_class(); ?>>
|
||||||
<article id="comment-<?php comment_ID(); ?>">
|
<article id="comment-<?php comment_ID(); ?>">
|
||||||
<header class="comment-author vcard">
|
<header class="comment-author vcard">
|
||||||
<?php echo get_avatar($comment,$size='32',$default='<path_to_url>' ); ?>
|
<?php echo get_avatar($comment,$size='32'); ?>
|
||||||
<?php printf(__('<cite class="fn">%s</cite>'), get_comment_author_link()) ?>
|
<?php printf(__('<cite class="fn">%s</cite>'), get_comment_author_link()) ?>
|
||||||
<time datetime="<?php echo comment_date('c') ?>"><a href="<?php echo htmlspecialchars( get_comment_link( $comment->comment_ID ) ) ?>"><?php printf(__('%1$s'), get_comment_date(), get_comment_time()) ?></a></time>
|
<time datetime="<?php echo comment_date('c') ?>"><a href="<?php echo htmlspecialchars( get_comment_link( $comment->comment_ID ) ) ?>"><?php printf(__('%1$s'), get_comment_date(), get_comment_time()) ?></a></time>
|
||||||
<?php edit_comment_link(__('(Edit)'),' ','') ?>
|
<?php edit_comment_link(__('(Edit)'),' ','') ?>
|
||||||
@@ -96,4 +96,4 @@
|
|||||||
</form>
|
</form>
|
||||||
<?php endif; // If registration required and not logged in ?>
|
<?php endif; // If registration required and not logged in ?>
|
||||||
</section>
|
</section>
|
||||||
<?php endif; // if you delete this the sky will fall on your head ?>
|
<?php endif; // if you delete this the sky will fall on your head ?>
|
||||||
|
|||||||
Reference in New Issue
Block a user