<?php 
if (comments_open()) {
    ?>
	<a href="#respond"> Leave a Comment</a></h3>
	<?php 
}
?>

	<div class="commentlist">
		<?php 
wp_list_comments(array('type' => 'comment', 'avatar_size' => 50, 'style' => 'div'));
?>
	</div>	

	<?php 
if (get_option('page_comments') and get_comments_page_count() > 1) {
    ?>
	<div class="pagination">
		<?php 
    previous_comments_link();
    ?>
		<?php 
    next_comments_link();
    ?>
	</div>
	<?php 
}
?>

	<?php 
comment_form();
Exemple #2
0
function echo_comments_footer($pid, $p_num)
{
    echo "<div id = 'footer'>";
    if ($p_num > 1) {
        echo c_footer_link($pid, $p_num - 1, '<<');
        echo "<a class = 'f_link' style = 'color: #000000; text-decoration: none;'>" . $p_num . "</a>";
    }
    $page_count = get_comments_page_count($pid);
    if ($p_num == 1 && $page_count > 1) {
        echo "<a class = 'f_link' style = 'color: #000000; text-decoration: none;'>" . $p_num . "</a>";
    }
    if ($page_count > 1 && $p_num < $page_count) {
        echo "...";
        echo c_footer_link($pid, $page_count, $page_count);
        if ($p_num < $page_count) {
            echo c_footer_link($pid, $p_num + 1, '>>');
        }
    }
    echo "</div>";
}