Created
October 25, 2014 23:38
-
-
Save media317/68ff7afa46671a6545a8 to your computer and use it in GitHub Desktop.
custom commment issues
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function custom_comments($comment, $args, $depth) { | |
$GLOBALS['comment'] = $comment; | |
$GLOBALS['comment_depth'] = $depth; | |
?> | |
<li id="comment-<?php comment_ID() ?>" <?php comment_class() ?>> | |
<div class="comment-author vcard"><?php commenter_link() ?></div> | |
<div class="comment-meta"><?php printf(__('Posted %1$s at %2$s <span class="meta-sep">|</span>', 'hbd-theme'), | |
get_comment_date(), | |
get_comment_time(), | |
'#comment-' . get_comment_ID() ); | |
edit_comment_link(__('Edit', 'hbd-theme'), ' <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", 'hbd-theme') ?> | |
<div class="comment-content"> | |
<?php comment_text() ?> | |
</div> | |
<?php // echo the comment reply link | |
if($args['type'] == 'all' || get_comment_type() == 'comment') : | |
comment_reply_link(array_merge($args, array( | |
'reply_text' => __('Reply','hbd-theme'), | |
'login_text' => __('Log in to reply.','hbd-theme'), | |
'depth' => $depth, | |
'before' => '<div class="comment-reply-link">', | |
'after' => '</div>' | |
))); | |
endif; | |
?> | |
<?php } // end custom_comments |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment