コード例 #1
0
						</div>
						<div class="post_author" style="display:block;">
							Post&eacute; par <a href="<?php 
        the_author_meta('user_url');
        ?>
" target="_blank"><?php 
        the_author();
        echo "</a>";
        echo get_avatar(get_the_author_id(), $size = '36');
        ?>
						</div>

						<?php 
        //VARS FOR COMS / Tracks
        $coms_nb = get_comment_type_count('comment', get_the_ID());
        $tracks_nb = get_comment_type_count('ping', get_the_ID());
        ?>

						<!-- COMS and Tracks -->
						<div class="comments_tracks_div">
							<div class="tabs_div">
								<div class="coms_tracks_tab tab_off" id="coms_off">
									<a href="javascript:show_tab('coms');">Commentaires (<?php 
        print $coms_nb;
        ?>
)</a>
								</div>
								<div class="coms_tracks_tab tab_on" id="coms_on">Commentaires (<?php 
        print $coms_nb;
        ?>
)</div>
コード例 #2
0
        ?>
</span><?php 
        print $other;
        ?>
							</a>
						</div>
						<div class="post_sep">&nbsp;</div>
						<div class="post_sub_infos">
							<div class="post_coms_nb">
								<a href="<?php 
        comments_link();
        ?>
">
									<?php 
        //comments_number('Pas de commentaire','1 commentaire','% commentaires');
        $nb = get_comment_type_count('comment', get_the_ID());
        switch ($nb) {
            case 0:
                print 'Pas de commentaire';
                break;
            case 1:
                print '1 commentaire';
                break;
            default:
                print $nb . ' commentaires';
                break;
        }
        ?>
								</a>
							</div>
						</div>
コード例 #3
0
function comment_type_count($type = 'all', $post_id = 0)
{
    echo get_comment_type_count($type, $post_id);
}
コード例 #4
0
                                <div style="clear:both;"></div>
                            </div>
                            
                            <div style="clear:both"></div>
                        </div>
                        
                        <div class="post_cont">
                        	<?php 
        the_content();
        ?>
                        </div>
                    
                    	<?php 
        //VARS FOR COMS / Tracks
        $coms_nb = get_comment_type_count('comment', get_the_ID());
        $tracks_nb = get_comment_type_count('trackback', get_the_ID());
        ?>
                        
                        <!-- COMS and Tracks -->
                        <div class="comments_tracks_div">
                
                            <div class="tabs_div">
                                
                                <div class="coms_tracks_tab tab_off" id="coms_off">
                                    <a href="javascript:show_tab('coms');">Commentaires (<?php 
        print $coms_nb;
        ?>
)</a>
                                </div>
                                
                                <div class="coms_tracks_tab tab_on" id="coms_on">Commentaires (<?php 
コード例 #5
0
ファイル: comments.php プロジェクト: simos/lightword
<?php

if (post_password_required()) {
    ?>
<p><?php 
    _e('Enter your password to view comments.');
    ?>
</p>
<?php 
    return;
}
$comments_nr = get_comment_type_count('comment');
$trackbacks_nr = get_comment_type_count('ping');
?>
<div id="tabsContainer">

<a href="#" class="tabs selected"><span>Comments (<?php 
echo $comments_nr;
?>
)</span></a>
<a href="#" class="tabs"><span>Trackbacks (<?php 
echo $trackbacks_nr;
?>
)</span></a>  <?php 
post_comments_feed_link(__('<span class="subscribe_comments">( subscribe to comments on this post )</span>'));
?>
<div class="clear_tab"></div>
<div class="tab-content selected">
<?php 
if ($comments) {
    ?>