Esempio n. 1
0
function sandbox_comments($comment, $args, $depth)
{
    $GLOBALS['comment'] = $comment;
    extract($args, EXTR_SKIP);
    global $sandbox_comment_alt;
    if (get_comment_type() == "comment") {
        ?>
						<li id="comment-<?php 
        comment_ID();
        ?>
" class="<?php 
        sandbox_comment_class();
        ?>
">
							<div class="comment-author vcard"><?php 
        sandbox_commenter_link();
        ?>
</div>
							<div class="comment-meta"><?php 
        printf(__('Posted %1$s at %2$s <span class="meta-sep">|</span> <a href="%3$s" title="Permalink to this comment">Permalink</a>', 'sandbox'), get_comment_date(), get_comment_time(), '#comment-' . get_comment_ID());
        echo comment_reply_link(array('depth' => $depth, 'max_depth' => $args['max_depth'], 'before' => ' | '));
        edit_comment_link(__('Edit', 'sandbox'), ' <span class="meta-sep">|</span> <span class="edit-link">', '</span>');
        ?>
</div>
<?php 
        if ($comment->comment_approved == '0') {
            _e("\t\t\t\t\t<span class='unapproved'>Your comment is awaiting moderation.</span>\n", 'sandbox');
        }
        ?>
							<?php 
        comment_text();
        ?>
						</li>
<?php 
    }
    // REFERENCE: if ( get_comment_type() == "comment" )
}
Esempio n. 2
0
</h3>

					<ol>
<?php 
        foreach ($comments as $comment) {
            if (get_comment_type() == "comment") {
                ?>
						<li id="comment-<?php 
                comment_ID();
                ?>
" class="<?php 
                sandbox_comment_class();
                ?>
 yui-gf fw">
							<div class="comment-author vcard yui-u first"><?php 
                sandbox_commenter_link();
                ?>
</div>
<?php 
                if ($comment->comment_approved == '0') {
                    _e("\t\t\t\t\t<span class='unapproved'>Your comment is awaiting moderation.</span>\n", 'sandbox');
                }
                ?>
							<div class="yui-u">
							<div class="comment-text"><?php 
                comment_text();
                ?>
</div>
							<div class="comment-meta"><?php 
                printf(__('Posted %1$s at %2$s <span class="meta-sep">|</span> <a href="%3$s" title="Permalink to this comment">Permalink</a>', 'sandbox'), get_comment_date(), get_comment_time(), '#comment-' . get_comment_ID());
                edit_comment_link(__('Edit', 'sandbox'), ' <span class="meta-sep">|</span> <span class="edit-link">', '</span>');