actually, I don't know how to make it without table
so, I just try to make it with table
I do hope someone can make it better later
open the
bfa_custom_comments.php file
replace the file's content with this:
Code:
<?php
function bfa_comments($comment, $args, $depth) {
global $bfa_ata;
$GLOBALS['comment'] = $comment; ?>
<li <?php comment_class($class='clearfix') ?> id="comment-<?php comment_ID(); ?>">
<div id="div-comment-<?php comment_ID(); ?>" class="clearfix comment-container<?php
$comment = get_comment($comment_id);
if ( $post = get_post($post_id) ) {
if ( $comment->user_id === $post->post_author )
echo ' bypostauthor';
} ?>">
<table width="100%">
<tr>
<td rowspan="2" width="60" valign="top">
<div class="comment-author vcard">
<?php if ($args['avatar_size'] != 0) echo get_avatar( $comment, $args['avatar_size'] ); ?>
</div>
</td>
<td height="40" valign="center" bgcolor="#EEEEE5">
<span style="margin-left: 10px" class="authorname"><?php comment_author_link(); ?></span>
<?php if ($comment->comment_approved == '0') : ?>
<em><?php echo $bfa_ata['comment_moderation_text']; ?></em><br />
<?php endif; ?>
<div class="comment-meta commentmetadata" style="margin-left: 10px">
<a href="<?php echo htmlspecialchars( get_comment_link( $comment->comment_ID ) ) ?>">
<?php printf(__('%1$s at %2$s','atahualpa'), get_comment_date(__('F jS, Y','atahualpa')), get_comment_time()) ?></a>
<?php echo comment_reply_link(array('before' => '<span class="comment-reply-link">', 'after' => '</span>', 'reply_text' => $bfa_ata['comment_reply_link_text'], 'depth' => $depth, 'max_depth' => $args['max_depth'] )); ?>
<?php edit_comment_link($bfa_ata['comment_edit_link_text'],'<span class="comment-edit-link">','</span>') ?> <?php delete_comment_link(get_comment_ID()); ?>
</div>
</td>
</tr>
<tr>
<td bgcolor="#EBF5FE"><div style="margin-left: 10px; margin-right: 10px"><?php comment_text() ?></div></td>
</tr>
</table>
</div>
<?php } ?>
to make it more nice, maybe you should make
Regular Comment Background Color and
Alternating Comment Background Color have the same color. to do this, go to Style and configure COMMENTS on Atahualpa Options. Of course, you can change the cells color of table
Tried with:
• WordPress 2.9.1
• Atahualpa 3.4.5.1