Пример #1
0
    /**
     * Display comments pagination
     *
     * @package Graphene
     * @since 1.9
     */
    function graphene_comments_nav()
    {
        global $graphene_settings, $is_paginated;
        if (get_comment_pages_count() > 1 && $is_paginated) {
            ?>
        <div class="comment-nav clearfix">
            <?php 
            if (function_exists('wp_commentnavi') && !$graphene_settings['inf_scroll_comments']) {
                wp_commentnavi();
                ?>
                <p class="commentnavi-view-all"><?php 
                wp_commentnavi_all_comments_link();
                ?>
</p>
            <?php 
            } else {
                ?>
 
                <p><?php 
                paginate_comments_links();
                ?>
</p>
            <?php 
            }
            do_action('graphene_comments_pagination');
            ?>
        </div>
        
        <?php 
            if ($graphene_settings['inf_scroll_comments']) {
                ?>
			<p class="fetch-more-wrapper"><a href="#" class="fetch-more"><?php 
                _e('Fetch more comments', 'graphene');
                ?>
</a></p>
		<?php 
            }
        }
    }
Пример #2
0
function wp_commentnavi_dropdown()
{
    wp_commentnavi();
}
Пример #3
0
 function navigate_comments($bool)
 {
     if (function_exists('wp_commentnavi')) {
         wp_commentnavi();
         $bool = true;
     }
     return $bool;
 }
Пример #4
0
</h5>

	<div class="clear"></div>

	<ol class="commentlist">
	    <?php 
    wp_list_comments('type=comment&callback=mytheme_comment');
    ?>
	</ol>

	<div class="clear"></div>

<?php 
    // pagination
    if (function_exists('wp_commentnavi')) {
        wp_commentnavi();
    } else {
        ?>
                <div class="navigation">
		    <div class="alignleft"><?php 
        previous_comments_link();
        ?>
</div>
		    <div class="alignright"><?php 
        next_comments_link();
        ?>
</div>
                </div>
<?php 
    }
} else {