コード例 #1
0
function journalist13_comment($comment, $args, $depth)
{
    $GLOBALS['comment'] = $comment;
    extract($args, EXTR_SKIP);
    ?>
<li id="comment-<?php 
    comment_ID();
    ?>
" <?php 
    comment_class(tj_comment_class());
    ?>
">
	<div id="div-comment-<?php 
    comment_ID();
    ?>
">
	<div class="comment_author vcard">
		<?php 
    if ($args['avatar_size'] != 0) {
        echo get_avatar($comment, $args['avatar_size']);
    }
    ?>
		<?php 
    printf(__('<strong class="fn">%s</strong> said, on %s at <a href="%s">%s</a>', 'journalist-13'), get_comment_author_link(), get_comment_date(get_option('date_format')), get_comment_link(), get_comment_time(get_option('time_format')));
    ?>
 <?php 
    edit_comment_link(__('(Edit)', 'journalist-13'), ' ', '');
    ?>
</strong>
	</div>
	<?php 
    if ($comment->comment_approved == '0') {
        ?>
	<p class="commetn_mod"><em><?php 
        _e('Your comment is awaiting moderation.', 'journalist-13');
        ?>
</em></p>
	<?php 
    }
    ?>

	<?php 
    comment_text();
    ?>
			
	<div class="reply">
		<?php 
    comment_reply_link(array_merge($args, array('add_below' => 'div-comment', 'depth' => $depth, 'max_depth' => $args['max_depth'])));
    ?>
	</div>
	</div>
<?php 
}
コード例 #2
0
ファイル: comments.php プロジェクト: jptoto/barcampphilly
<?php 
    }
    ?>
</p>

<ol class="commentlist">

<?php 
    foreach ($comments as $comment) {
        ?>

<li id="comment-<?php 
        comment_ID();
        ?>
" class="<?php 
        echo tj_comment_class();
        ?>
">
	<div class="comment_mod">
	<?php 
        if ($comment->comment_approved == '0') {
            ?>
	<em>Your comment is awaiting moderation.</em>
	<?php 
        }
        ?>
	</div>
	
	<div class="comment_text">
	<?php 
        comment_text();
コード例 #3
0
function journalist_comment($comment, $args, $depth)
{
    $GLOBALS['comment'] = $comment;
    extract($args, EXTR_SKIP);
    ?>
<li id="comment-<?php 
    comment_ID();
    ?>
" <?php 
    comment_class(tj_comment_class());
    ?>
>
	<div id="div-comment-<?php 
    comment_ID();
    ?>
">
	<div class="comment_mod">
	<?php 
    if ($comment->comment_approved == '0') {
        ?>
	<em><?php 
        _e('Your comment is awaiting moderation.', 'journalist');
        ?>
</em>
	<?php 
    }
    ?>
	</div>
	
	<div class="comment_text">
	<?php 
    comment_text();
    ?>
	</div>
	
	<div class="comment_author vcard">
	<?php 
    if ($args['avatar_size'] != 0) {
        echo get_avatar($comment, $args['avatar_size']);
    }
    ?>
	<p><strong class="fn"><?php 
    comment_author_link();
    ?>
</strong></p>
	<p><small>
		<?php 
    printf(__('%s at %s', 'journalist'), get_comment_date(), '<a href="#comment-' . get_comment_ID() . '">' . get_comment_time() . '</a>');
    ?>
		<?php 
    edit_comment_link(__('Edit', 'journalist'), ' ', '');
    ?>
	</small></p>
	</div>
	<div class="clear"></div>
	
	<div class="reply">
		<?php 
    comment_reply_link(array_merge($args, array('add_below' => 'div-comment', 'depth' => $depth, 'max_depth' => $args['max_depth'])));
    ?>
	</div>
	</div>
<?php 
}