示例#1
0
function regulus_comment($comment, $args, $depth)
{
    $GLOBALS['comment'] = $comment;
    global $commentCount;
    extract($args, EXTR_SKIP);
    $class = bm_author_highlight();
    ?>
	<dt id="comment-<?php 
    comment_ID();
    ?>
" <?php 
    comment_class($class);
    ?>
>
	<?php 
    if ($args['avatar_size'] != 0) {
        echo get_avatar($comment, $args['avatar_size']);
    }
    ?>
	<?php 
    if ($comment->comment_parent == 0) {
        $comment_num = ($args['page'] - 1) * $args['per_page'] + $commentCount;
        echo $comment_num . '.';
        $commentCount++;
    }
    ?>
	<?php 
    comment_author_link();
    ?>
 - 
	<a href="<?php 
    echo htmlspecialchars(get_comment_link($comment->comment_ID));
    ?>
"><?php 
    comment_date();
    ?>
</a> 
	<?php 
    edit_comment_link("[Edit]");
    ?>
	</dt>
	<dd <?php 
    comment_class($class);
    ?>
>
	<div class="comment" id="div-comment-<?php 
    comment_ID();
    ?>
">
	<?php 
    comment_text();
    ?>
	<div class="reply">
		<?php 
    comment_reply_link(array_merge($args, array('add_below' => 'div-comment', 'depth' => $depth, 'max_depth' => $args['max_depth'])));
    ?>
	</div>
	</div>
	</dd>
<?php 
}
示例#2
0
 <?php 
        paged_comments_print_pages();
        ?>
</p>
		<?php 
    }
    ?>
		<!-- End comment page numbers -->
	
		<!-- ol class="commentlist" style="list-style-type: none;" -->
		
		<dl>
	
		<?php 
    foreach ($comments as $comment) {
        $class = bm_author_highlight();
        ?>
	
			<dt class="<?php 
        echo $class;
        ?>
" id="comment-<?php 
        comment_ID();
        ?>
">
				<a href="#<?php 
        comment_ID();
        ?>
"><?php 
        echo $comment_number . ".";
        $comment_number += $comment_delta;