Пример #1
0
function comment_count($count)
{
    global $id;
    global $nearlysprung;
    if ($nearlysprung->option['splitpings'] != "yes") {
        return $count;
    } else {
        return comment_count_special($id, 'comment');
    }
}
Пример #2
0
" class="permalink"><?php 
        _e('Permalink');
        ?>
</a>			
				<?php 
        // add support for wp-email
        if (function_exists('wp_email')) {
            email_link('E-Mail to a friend', 'E-Mail to a friend', ' class="permalink"');
        }
        ?>
				<?php 
        global $nearlysprung;
        if ($nearlysprung->option['splitpings'] != "yes") {
            $pingCount = 0;
        } else {
            $pingCount = comment_count_special($post->ID, 'pings');
        }
        comments_popup_link(__('Comments'), __('Comments (1)'), __('Comments (%)'), 'commentslink', __('Comments off'));
        if ($pingCount > 1) {
            ?>
				<a href="<?php 
            the_permalink();
            ?>
#trackback" title="Trackback" class="trackbacklink">Trackbacks / Pingbacks (<?php 
            echo $pingCount;
            ?>
)</a>
				<?php 
        } else {
            if ($pingCount > 0) {
                ?>
Пример #3
0
    ?>
<p>				
		<?php 
    return;
}
?>
<!-- You can start editing here. -->
<?php 
global $post;
global $nearlysprung;
$thePostID = $post->ID;
$commentsAtAll = comment_count_special($thePostID, 'comment');
if ($nearlysprung->option['splitpings'] != "yes") {
    $pingsAtAll = 0;
} else {
    $pingsAtAll = comment_count_special($thePostID, 'pings');
}
if ($commentsAtAll) {
    ?>
	<h2 id="comments">
		<?php 
    if ($commentsAtAll == 1) {
        echo "1 commento";
    } else {
        echo "{$commentsAtAll} commenti";
    }
    ?>
		<?php 
    if (comments_open()) {
        ?>
			<a href="#postcomment" title="<?php