function advanced_comment($comment, $args, $depth) { $GLOBALS['comment'] = $comment; ?> <li <?php comment_class(); ?> id="li-comment-<?php comment_ID(); ?> "> <div class="comment-author vcard"> <?php echo get_avatar($comment, $size = '70'); ?> <div class="comment-meta"<a href="<?php the_author_meta('user_url'); ?> "><?php printf(__('%s'), get_comment_author_link()); ?> </a></div> <small><?php printf(__('%1$s at %2$s'), get_comment_date(), get_comment_time()); edit_comment_link(__('(Edit)'), ' ', ''); ?> </small> </div> <div class="clear"></div> <?php if ($comment->comment_approved == '0') { ?> <em><?php _e('Su comentario está pendiente de moderación.'); ?> </em> <br /> <?php } ?> <div class="comment-text"> <?php comment_text(); ?> </div> <div class="reply"> <?php comment_reply_link(array_merge($args, array('depth' => $depth, 'max_depth' => $args['max_depth']))); ?> <?php delete_comment_link(get_comment_ID()); ?> </div> <div class="clear"></div> <?php }
function can_comment($comment, $args, $depth) { $GLOBALS['comment'] = $comment; switch ($comment->comment_type) { case 'pingback': case 'trackback': ?> <li <?php comment_class(); ?> id="comment-<?php comment_ID(); ?> "> <p><?php echo 'Pingback '; ?> <?php comment_author_link(); ?> <aside class="comment-link"><?php edit_comment_link('编辑', '<span class="comment-edit-link">', '</span>'); ?> </aside></p> <?php break; default: global $post; ?> <li <?php comment_class(); ?> id="li-comment-<?php comment_ID(); ?> "> <article id="comment-<?php comment_ID(); ?> " class="comment"> <?php echo '<div class="avatar">' . get_avatar($comment, 44) . '</div><div class="cmt_r">'; printf('<span class="cmt_meta_head">%1$s</span>', get_comment_author_link()); printf('<span class="cmt_meta_time"><a href="%1$s"><time datetime="%2$s">%3$s</time></a></span>', esc_url(get_comment_link($comment->comment_ID)), get_comment_time('c'), sprintf('%1$s %2$s', get_comment_date(), get_comment_time())); ?> <aside class="comment-link"> <?php edit_comment_link(__('編輯', 'can'), '', ''); ?> <?php delete_comment_link(get_comment_ID()); ?> <?php comment_reply_link(array_merge($args, array('reply_text' => __('回复', 'can'), 'after' => '', 'depth' => $depth, 'max_depth' => $args['max_depth']))); ?> </aside> <div class="cmt_con"><?php comment_text(); ?> </div> <?php if ('0' == $comment->comment_approved) { ?> <p class="comment-awaiting-moderation"><?php _e('审核中', 'can'); ?> </p> <?php } ?> </div> </article> <?php break; } }
<div class="vcard"><cite><?php comment_author_link(); ?> </cite><br /> <small><a href="#comment-<?php comment_ID(); ?> " title=""><?php comment_date('F jS, Y'); ?> at <?php comment_time(); ?> </a> <?php edit_comment_link('e', '', ''); delete_comment_link(get_comment_ID()); ?> </small> </div> <?php if ($comment->comment_approved == '0') { ?> <em>Your comment is awaiting moderation.</em> <?php } ?> <?php comment_text(); ?>
function custom_comment($comment, $args, $depth) { $GLOBALS['comment'] = $comment; ?> <li class="comment wrap threaded" id="comment-<?php comment_ID(); ?> "> <div class="meta-left"> <?php echo get_avatar($comment, 48, $template_path . '' . get_bloginfo('template_directory') . '/images/gravatar.png'); ?> </div> <div class="text-right <?php if (1 == $comment->user_id) { $oddcomment = "authcomment"; } echo $oddcomment; ?> "> <p class="authorcomment"> <strong><?php comment_author_link(); ?> </strong> <span> at <?php comment_date('M d, Y h:i:s'); ?> </span> </p> <?php comment_text(); ?> <?php if ($comment->comment_approved == '0') { ?> <p><em><?php echo get_option('ptthemes_comment_moderation_name'); ?> </em></p> <?php } ?> </div> <span class="comm-reply"> <?php comment_reply_link(array_merge($args, array('add_below' => 'div-comment', 'reply_text' => __('Reply'), 'depth' => $depth, 'max_depth' => $args['max_depth']))); ?> <?php edit_comment_link('Edit' . '', ' - ', ''); ?> <?php delete_comment_link(get_comment_ID()); ?> </span> <div class="clearfix"></div> <?php }
function bfa_comments($comment, $args, $depth) { global $bfa_ata; $GLOBALS['comment'] = $comment; ?> <li <?php comment_class($class = 'clearfix'); ?> id="comment-<?php comment_ID(); ?> "> <div id="div-comment-<?php comment_ID(); ?> " class="clearfix comment-container<?php $comment = get_comment($comment_id); if ($post = get_post($post_id)) { if ($comment->user_id === $post->post_author) { echo ' bypostauthor'; } } ?> "> <div class="comment-author vcard"> <?php if ($args['avatar_size'] != 0) { echo get_avatar($comment, $args['avatar_size']); } ?> <span class="authorname"><?php comment_author_link(); ?> </span> </div> <?php if ($comment->comment_approved == '0') { ?> <em><?php echo $bfa_ata['comment_moderation_text']; ?> </em><br /> <?php } ?> <div class="comment-meta commentmetadata"> <a href="<?php echo htmlspecialchars(get_comment_link($comment->comment_ID)); ?> "> <?php printf(__('%1$s at %2$s', 'atahualpa'), get_comment_date(__('F jS, Y', 'atahualpa')), get_comment_time()); ?> </a> <?php echo comment_reply_link(array('before' => '<span class="comment-reply-link">', 'after' => '</span>', 'reply_text' => $bfa_ata['comment_reply_link_text'], 'depth' => $depth, 'max_depth' => $args['max_depth'])); ?> <?php edit_comment_link($bfa_ata['comment_edit_link_text'], '<span class="comment-edit-link">', '</span>'); ?> <?php delete_comment_link(get_comment_ID()); ?> </div> <?php comment_text(); ?> </div> <?php }
function basis_comments($comment, $args, $depth) { $GLOBALS['comment'] = $comment; ?> <li <?php comment_class(); ?> > <article id="comment-<?php comment_ID(); ?> "> <header class="comment-author vcard"> <?php echo get_avatar($comment, $size = '32', $default = '<path_to_url>'); ?> <?php printf(__('<cite class="fn">%s</cite>'), get_comment_author_link()); ?> <time> <a href="<?php echo htmlspecialchars(get_comment_link($comment->comment_ID)); ?> "><?php printf(__('%1$s'), get_comment_date(), get_comment_time()); ?> </a> </time> <?php edit_comment_link(__('Edit '), ' ', '') | delete_comment_link(get_comment_ID()); ?> </header> <?php if ($comment->comment_approved == '0') { ?> <div class="help"> <p><?php _e('Your comment is awaiting moderation.'); ?> </p> </div> <?php } ?> <section class="comment_content"> <?php comment_text(); ?> </section> <?php comment_reply_link(array_merge($args, array('depth' => $depth, 'max_depth' => $args['max_depth']))); ?> </article> <!-- </li> is added by wordpress automatically --> <?php }
function techozoic_comment($comment, $args, $depth) { $GLOBALS['comment'] = $comment; global $post; ?> <li <?php comment_class(); ?> id="li-comment-<?php comment_ID(); ?> "> <div id="comment-<?php comment_ID(); ?> "> <div class="avatar_cont"><?php echo get_avatar(get_comment_author_email(), '50'); ?> </div> <?php printf(__('Comment by %s', 'techozoic'), '<em>' . get_comment_author_link() . '</em>'); ?> : <?php if ($comment->comment_approved == '0') { ?> <em><?php _e('Your comment is awaiting moderation.', 'techozoic'); ?> </em> <?php } ?> <br /> <small class="commentmetadata"><a href="#comment-<?php comment_ID(); ?> " title=""><?php comment_date('l, F jS Y'); ?> at <?php comment_time(); ?> </a> | <?php edit_comment_link(__('Edit', 'techozoic'), '', ''); if ($post->post_type == 'post') { delete_comment_link($comment->comment_ID, $post->post_name); } ?> </small> <?php comment_text(); ?> <div class="reply"> <?php echo comment_reply_link(array('depth' => $depth, 'max_depth' => $args['max_depth'])); ?> </div> </div> <?php }