示例#1
0
function hipnews_mobile_com_toggle()
{
    if (!function_exists('id_activate_hooks') || !function_exists('dsq_is_installed')) {
        $comment_string1 = __('No Comments Yet', "mobileviewlang");
        $comment_string2 = __('1 Comment', "mobileviewlang");
        $comment_string3 = __('% Comments', "mobileviewlang");
        echo '<a id="comments-' . get_the_ID() . '" class="post no-ajax  com-toggle">';
        if (hipnews_mobile_hide_responses()) {
            echo '<img id="com-arrow" class="com-arrow" src="' . mobileview_get_bloginfo('template_directory') . '/images/com_arrow.png" alt="arrow" />';
        } else {
            echo '<img id="com-arrow" class="com-arrow-down" src="' . mobileview_get_bloginfo('template_directory') . '/images/com_arrow.png" alt="arrow" />';
        }
        comments_number($comment_string1, $comment_string2, $comment_string3);
        echo '</a>';
    }
}
示例#2
0
		<div class="navigation">
			<div class="alignleft"><?php 
        previous_comments_link();
        ?>
</div>
			<div class="alignright"><?php 
        next_comments_link();
        ?>
</div>
		</div>
	<?php 
    }
    ?>
	
	<ol id="mobileview-comments" class="commentlist  <?php 
    if (hipnews_mobile_hide_responses()) {
        echo 'hidden';
    }
    ?>
">
		<?php 
    wp_list_comments('type=all&callback=hipnews_custom_comments');
    ?>
		<?php 
    if (hipnews_is_ajax_enabled()) {
        ?>
			<?php 
        if (hipnews_comments_newer()) {
            ?>
				<li class="load-more-comments-link"><?php 
            previous_comments_link(__("Load More Comments&hellip;", "mobileviewlang"));