function as_function_comments_better($comment, $args, $depth) { $GLOBALS['comment'] = $comment; ?> <li <?php comment_class(); ?> id="as-li-comment-<?php comment_ID(); ?> "> <div class="as-comment" id="as-comment-<?php comment_ID(); ?> "> <div class="as-comment-content"> <?php echo get_avatar($comment, $size = '65'); ?> <div class="as-comment-meta"> <h4><?php comment_author_link(); ?> <span><?php comment_date(); ?> at <?php comment_time(); ?> </span> </h4> </div> <div class="as-comment-text"> <?php comment_text(); ?> <?php if ($comment->comment_approved == '0') { ?> <p style="font-style:italic;"><?php _e('Your comment is awaiting moderation.', AS_DOMAIN); ?> </p> <br /> <?php } ?> <?php edit_comment_link(__('[Edit]', AS_DOMAIN), ' ', ''); ?> <?php comment_reply_link(array_merge($args, array('depth' => $depth, 'max_depth' => $args['max_depth']))); ?> </div> </div> </div> <?php }
function mytheme_comment($comment, $args, $depth) { $GLOBALS['comment'] = $comment; ?> <li <?php comment_class(); ?> id="li-comment-<?php comment_ID() ?>"> <div id="comment-<?php comment_ID(); ?>"> <div class="comment-author vcard"> <span class="small_frame"><?php echo get_avatar($comment,$size='60',$default=get_template_directory_uri().'/images/gravatar.gif' ); ?></span><br /> <cite><?php comment_author_link() ?></cite><br /> <div class="date"><?php comment_date('M d, Y'); ?></div> </div> <div class="comment-text"> <?php if ($comment->comment_approved == '0') : ?> <em class="awaiting_moderation"><?php _e('Your comment is awaiting moderation.', 'epanel') ?></em> <br /> <?php endif; ?> <?php comment_text() ?> <div class="comment-meta commentmetadata"> <?php edit_comment_link(__('(edit)'),' ','') ?> </div> <div class="reply"> <?php comment_reply_link(array_merge( $args, array('reply_text' => '(reply)', 'depth' => $depth, 'max_depth' => $args['max_depth']))) ?> </div> </div> </div> <?php } ?>
function zl_custom_comment($comment, $args, $depth) { $GLOBALS['comment'] = $comment; ?> <li <?php comment_class(); ?> id="li-comment-<?php comment_ID(); ?> "> <div class="medium-1 column norightgap"> <?php echo get_avatar($comment->comment_author_email, 50); ?> </div> <div class="medium-11 column"> <div id="comment-<?php comment_ID(); ?> "> <div class="comment-author"><strong><?php printf(__('%s', 'zatolab'), get_comment_author_link()); ?> </strong> <?php echo zl_option('lang_on', __('on', 'zatolab')); ?> <em class="zl_commenttime"><small><?php comment_date(); ?> , <?php comment_time('H:i:s'); ?> </small></em></div> <div class="clear"></div> <div class="zl_comment_content"> <?php comment_text(); if ($comment->comment_approved == '0') { ?> <p><em><?php echo zl_option('lang_commoderate', __('Your comment is awaiting moderation.', 'zatolab')); ?> </em></p> <?php } ?> <div class="clear"></div> <?php comment_reply_link(array_merge($args, array('depth' => $depth, 'max_depth' => $args['max_depth']))); ?> </div> </div> </div> <div class="clear"></div> <?php }
function edu7_comment($comment, $args, $depth) { ?> <div class="comment-img"><?php echo get_avatar($comment, $size = '45'); ?> </div> <div class="comments-box"> <?php comment_text(); ?> <?php if ($comment->comment_approved == '0') { ?> <em><?php _e('Your comment is awaiting moderation.'); ?> </em> <?php } ?> <br/><span class="comment-writer"> توسط <?php comment_author(); ?> </span><span class="comment-date"><?php comment_date(); ?> - <?php comment_time(); ?> </span> <?php comment_reply_link(array_merge($args, array('before' => '<span class="comment-replay">', 'reply_text' => 'پاسخ', 'after' => '</span>', 'depth' => $depth, 'max_depth' => $args['max_depth']))); ?> </div><br/><?php }
function webnus_comments($comment, $args, $depth) { $GLOBALS['comment'] = $comment; ?> <li <?php comment_class(); ?> id="comment-<?php comment_ID(); ?> "> <div class="comment-info"> <?php echo get_avatar($comment, 90); ?> <cite> <?php comment_author_link(); ?> <?php _e('Says', 'WEBNUS_TEXT_DOMAIN'); ?> : <span class="comment-data"><a href="#comment-<?php comment_ID(); ?> " title=""><?php comment_date('F j, Y'); ?> at <?php comment_time('g:i a'); ?> </a><?php edit_comment_link('Edit', ' | ', ''); ?> </span> </cite> </div> <div class="comment-text"> <?php if ($comment->comment_approved == '0') { ?> <p><em><?php _e('Your comment is awaiting moderation.', 'WEBNUS_TEXT_DOMAIN'); ?> </em></p> <?php } ?> <?php comment_text(); ?> <div class="reply"> <?php comment_reply_link(array_merge($args, array('depth' => $depth, 'max_depth' => $args['max_depth']))); ?> </div> </div> <?php }
function reverie_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 = '40'); ?> <?php printf(__('<cite class="fn">%s</cite>', 'reverie'), get_comment_author_link()); ?> <time datetime="<?php echo comment_date('c'); ?> "><a href="<?php echo htmlspecialchars(get_comment_link($comment->comment_ID)); ?> "><?php printf(__('%1$s', 'reverie'), get_comment_date(), get_comment_time()); ?> </a></time> <?php edit_comment_link(__('(Edit)', 'reverie'), '', ''); ?> </header> <?php if ($comment->comment_approved == '0') { ?> <div class="notice"> <p class="bottom"><?php _e('Your comment is awaiting moderation.', 'reverie'); ?> </p> </div> <?php } ?> <section class="comment"> <?php comment_text(); ?> </section> <?php comment_reply_link(array_merge($args, array('depth' => $depth, 'max_depth' => $args['max_depth']))); ?> </article> <?php }
function mytheme_comment($comment, $args, $depth) { $GLOBALS['comment'] = $comment; ?> <li <?php comment_class(); ?> id="li-comment-<?php comment_ID(); ?> "> <div id="comment-<?php comment_ID(); ?> " class="comment-inner"> <figure class="vcard"> <?php echo get_avatar($comment, 70); ?> </figure> <div class="comment-container"> <div class="commentmeta"> <strong><?php comment_author_link(); ?> </strong> <span class="authorname"> <?php comment_date('M d, Y'); ?> - <?php comment_time('h:i A'); ?> <?php edit_comment_link("Edit", ''); ?> </span> </div> <div class="comment-text"> <?php if ($comment->comment_approved == '0') { ?> <em class="awaiting_moderation"><?php _e('Your comment is awaiting moderation.', THB_THEME_NAME); ?> </em> <?php } ?> <?php comment_text(); ?> <?php comment_reply_link(array_merge($args, array('reply_text' => __('Reply', THB_THEME_NAME), 'depth' => $depth, 'max_depth' => $args['max_depth']))); ?> </div> </div> </div> <?php }
<?php function studiofolio_comment($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'); ?> <?php printf(__('<cite class="fn">%s</cite>', 'studiofolio'), get_comment_author_link()); ?> <time datetime="<?php echo comment_date('c'); ?>"><a href="<?php echo htmlspecialchars(get_comment_link($comment->comment_ID)); ?>"><?php printf(__('%1$s', 'studiofolio'), get_comment_date(), get_comment_time()); ?></a></time> <?php edit_comment_link(__('(Edit)', 'studiofolio'), '', ''); ?> </header> <?php if ($comment->comment_approved == '0') : ?> <div class="alert alert-block fade in"> <a class="close" data-dismiss="alert">×</a> <p><?php _e('Your comment is awaiting moderation.', 'studiofolio'); ?></p> </div> <?php endif; ?> <section class="comment"> <?php comment_text() ?> </section> <?php comment_reply_link(array_merge($args, array('depth' => $depth, 'max_depth' => $args['max_depth']))); ?> </article> <?php } ?>
function mydesign($comment, $args, $depth) { $GLOBALS['comment'] = $comment; ?> <li class="compost" id="comment-<?php comment_ID(); ?> "> <div class="combody"> <?php comment_text(); ?> </div><!-- .combody --> <p class="cominfo"> by <?php comment_author_link(); ?> <?php comment_date(); ?> <?php comment_time(); ?> </p> </li> <?php }
function mydesign($comment, $args, $depth) { $GLOBALS['comment'] = $comment; $users = get_users(); ?> <li id="comment-<?php echo comment_id(); ?> " class="compost"> <?php // ユーザーIDを引っ張る foreach ($users as $user) { //echo $user->display_name.'<br />'; //echo get_comment_author(); if ($user->display_name == get_comment_author()) { break; } } ?> <span class="trick_rounded-img icon_image" style="background: url(<?php echo ps_get_user_profile_image_src($user->ID, 'standard'); ?> ) no-repeat center center; width: 50px; height: 50px;></span> <span class="trick_thumbnail_Image"> <?php ps_user_profile_image($user->ID, 'thumbnail'); ?> </span> <?php ?> <div class="commentarea"> <?php //改行表示 $commentstr = '<p>' . get_comment_text() . '</p>'; $commentstr = preg_replace("/\n/", "<br />", $commentstr); echo $commentstr; //comment_text(); ?> </div> <p class="cominfo"> <?php comment_date(); ?> <?php comment_time(); ?> | <?php comment_author_link(); ?> <?php comment_reply_link(array_merge($args, array('depth' => $depth, 'reply_text' => '返信', 'before' => ' | ', 'after' => ''))); ?> </p> </li> <?php }
function cutline_comment($comment, $args, $depth) { $GLOBALS['comment'] = $comment; ?> <li <?php comment_class(); ?> id="comment-<?php comment_ID(); ?> "> <?php echo get_avatar($comment, 48); ?> <p class="comment_meta"> <strong><?php comment_author_link(); ?> </strong> <span class="comment_time">// <a href="#comment-<?php comment_ID(); ?> " title="<?php echo attribute_escape(__('Permalink to this comment', 'cutline')); ?> "><?php comment_date(); ?> <?php _e('at'); ?> <?php comment_time(); ?> </a> <?php echo comment_reply_link(array('depth' => $depth, 'max_depth' => $args['max_depth'], 'before' => ' | ')); ?> <?php edit_comment_link(__('edit', 'cutline'), '(', ')'); ?> </span> </p> <div class="entry"> <?php comment_text(); ?> <?php if ($comment->comment_approved == '0') { ?> <p><strong><?php _e('Your comment is awaiting moderation.', 'cutline'); ?> </strong></p> <?php } ?> </div> </li> <?php }
function py_comments($comment, $args, $depth) { $GLOBALS['comment'] = $comment; ?> <li <?php comment_class(); ?> > <article class="callout" id="comment-<?php comment_ID(); ?> "> <header class="comment-author"> <?php echo get_avatar($comment, $size = '96', $default = get_template_directory_uri() . ' /img/yeti-avatar.png'); ?> <div class="author-meta"> <?php printf(__('<cite class="fn">%s</cite>', 'projectyeti'), get_comment_author_link()); ?> <time datetime="<?php echo comment_date('c'); ?> "><a href="<?php echo esc_url(get_comment_link($comment->comment_ID)); ?> "><?php printf(__('%1$s', 'projectyeti'), get_comment_date(), get_comment_time()); ?> </a></time> <?php edit_comment_link(__('(Edit)', 'projectyeti'), '', ''); ?> </div> </header> <?php if ($comment->comment_approved == '0') { ?> <div class="notice"> <p class="bottom"><?php _e('Your comment is awaiting moderation.', 'projectyeti'); ?> </p> </div> <?php } ?> <div class="comment"> <?php comment_text(); ?> </div> <footer><?php comment_reply_link(array_merge($args, array('depth' => $depth, 'max_depth' => $args['max_depth']))); ?> </footer> </article> <?php }
function print_comment($comment, $args, $depth) { $GLOBALS['comment'] = $comment; ?> <li <?php comment_class('comment'); ?> > <div class="comment-body" id="comment-<?php comment_ID(); ?> "> <?php echo get_avatar($comment, 70, get_bloginfo('stylesheet_directory') . '/images/avatar.gif'); ?> <p class="author"> <?php comment_author_link(); ?> </p> <p class="comment-meta"> <?php comment_date(); ?> at <?php comment_time(); ?> </p> <div class="comment-content"> <?php if ($comment->comment_approved == '0') { ?> <em><?php _e('Your comment is awaiting moderation.'); ?> </em><br /> <?php } ?> <?php comment_text(); ?> <div class="alignleft"><?php edit_comment_link(__('(Edit)'), ' ', ''); ?> </div> </div> <div class="reply"> <?php comment_reply_link(array_merge($args, array('depth' => $depth, 'max_depth' => $args['max_depth']))); ?> </div> <div class="cl"> </div> </div> <?php }
function andreas04_comment($comment, $args, $depth) { $GLOBALS['comment'] = $comment; extract($args, EXTR_SKIP); ?> <li <?php comment_class(empty($args['has_children']) ? '' : 'parent'); ?> id="comment-<?php comment_ID(); ?> "> <div id="div-comment-<?php comment_ID(); ?> "> <?php comment_text(); ?> <p class="vcard"><cite> <?php if ($args['avatar_size'] != 0) { echo get_avatar($comment, $args['avatar_size']); } ?> <?php comment_type(__('Comment', 'andreas04'), __('Trackback', 'andreas04'), __('Pingback', 'andreas04')); ?> <?php _e('by', 'andreas04'); ?> <span class="fn"><?php comment_author_link(); ?> </span> | <?php comment_date(); ?> <!-- @ <a href="#comment-<?php comment_ID(); ?> "><?php comment_time(); ?> </a> --> <?php edit_comment_link(__('Edit', 'andreas04'), ' | '); ?> <?php comment_reply_link(array_merge($args, array('add_below' => 'div-comment', 'before' => ' | ', 'depth' => $depth, 'max_depth' => $args['max_depth']))); ?> </cite></p> </div> <?php }
function chaoticsoul_comment($comment, $args, $depth) { $GLOBALS['comment'] = $comment; ?> <li <?php comment_class(); ?> id="comment-<?php comment_ID(); ?> "> <?php comment_text(); ?> <p class="commentmetadata"> <?php echo get_avatar($comment, 32); ?> <small> <cite><?php comment_author_link(); ?> </cite> <?php _e('said this on', 'chaoticsoul'); ?> <?php if ($comment->comment_approved == '0') { ?> <em><?php _e('Your comment is awaiting moderation.', 'chaoticsoul'); ?> </em> <?php } ?> <a href="#comment-<?php comment_ID(); ?> " title=""><?php comment_date(get_option('date_format')); ?> <?php _e('at', 'chaoticsoul'); ?> <?php comment_time(get_option('time_format')); ?> </a><?php echo comment_reply_link(array('depth' => $depth, 'max_depth' => $args['max_depth'], 'before' => ' | ')); ?> <?php edit_comment_link(__('edit', 'chaoticsoul'), '(', ')'); ?> </small> </p> </li> <?php }
function quality_comment($comment, $args, $depth) { $GLOBALS['comment'] = $comment; //get theme data global $comment_data; //translations $leave_reply = $comment_data['translation_reply_to_coment'] ? $comment_data['translation_reply_to_coment'] : __('Reply', 'quality'); ?> <div class="media qua_comment_box"> <a class="pull_left_comment"> <?php echo get_avatar($comment, $size = '60'); ?> </a> <div class="media-body"> <div class="qua_comment_detail"> <h4 class="qua_comment_detail_title"><?php comment_author($comment); ?> </h4> <span class="qua_comment_date"><?php comment_date('F j, Y'); ?> <?php _e('at', 'quality'); ?> <?php comment_time('g:i a'); ?> </span> <?php comment_text(); ?> <div class="reply"> <i class="fa fa-mail-reply"></i> <?php comment_reply_link(array_merge($args, array('reply_text' => $leave_reply, 'depth' => $depth, 'max_depth' => $args['max_depth']))); ?> </div> <?php if ($comment->comment_approved == '0') { ?> <em class="comment-awaiting-moderation"><?php _e('Your comment is awaiting moderation.', 'quality'); ?> </em> <br/> <?php } ?> </div> </div> </div> <?php }
function start_el(&$output, $comment, $depth, $args, $id = 0) { $depth++; $GLOBALS['comment_depth'] = $depth; $GLOBALS['comment'] = $comment; if (!empty($args['callback'])) { call_user_func($args['callback'], $comment, $args, $depth); return; } extract($args, EXTR_SKIP); ?> <li <?php comment_class('media comment-' . get_comment_ID()); ?> > <?php echo get_avatar($comment, $size = '64'); ?> <div class="media-body"> <h4 class="media-heading"><?php echo get_comment_author_link(); ?> </h4> <time datetime="<?php echo comment_date('c'); ?> "><a href="<?php echo htmlspecialchars(get_comment_link($comment->comment_ID)); ?> "><?php printf(__('%1$s', 'roots'), get_comment_date(), get_comment_time()); ?> </a></time> <?php edit_comment_link(__('(Edit)', 'roots'), '', ''); ?> <?php if ($comment->comment_approved == '0') { ?> <div class="alert"> <?php _e('Your comment is awaiting moderation.', 'roots'); ?> </div> <?php } ?> <?php comment_text(); ?> <?php comment_reply_link(array_merge($args, array('depth' => $depth, 'max_depth' => $args['max_depth']))); ?> <?php }
function quentin_comment($comment, $args, $depth) { $GLOBALS['comment'] = $comment; extract($args, EXTR_SKIP); ?> <li <?php comment_class(empty($args['has_children']) ? '' : 'parent'); ?> id="comment-<?php comment_ID(); ?> "> <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']); } ?> <cite class="comment-meta commentmetadata">On <?php comment_date(); ?> at <?php comment_time(); ?> <span class="fn"><?php comment_author_link(); ?> </span> Said: <?php edit_comment_link(__("Edit This"), ' |'); ?> </cite> </div> <?php if ($comment->comment_approved == '0') { ?> <em>Your comment is awaiting moderation.</em> <?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 }
function codeless_custom_comment($comment, $args, $depth) { ?> <div class="comment <?php if ($depth == 1) { echo 'span12'; } else { echo 'span11 offset1'; } ?> "> <dl class="dl-horizontal"> <dt> <?php echo get_avatar($comment, '64'); ?> </dt> <dd> <span class="author"><a href=""><?php echo get_comment_author_link($comment); ?> </a></span> <ul> <li><span><?php comment_date('M j Y', $comment); ?> </span></li> <li><span><?php comment_reply_link(array_merge($args, array('depth' => $depth, 'max_depth' => $args['max_depth']))); ?> </span></li> <li><span> <?php edit_comment_link(); ?> </span></li> </ul> <div class="comment_text"> <?php echo get_comment_text($comment); ?> <?php if ($comment->comment_approved == '0') { ?> <span>Your comment is awaiting moderation.</span> <?php } ?> </div> </dd> </dl> </div> <?php }
private function commentTime($comment) { $comment_time = '<small class="comment-time"><strong>'; $comment_time .= comment_date('M d, Y'); $comment_time .= '</strong>'; $comment_time .= comment_time('H:i:s'); $comment_time .= '</small>'; return $comment_time; }
function ct_tracks_customize_comments($comment, $args, $depth) { $GLOBALS['comment'] = $comment; global $post; ?> <li <?php comment_class(); ?> id="li-comment-<?php comment_ID(); ?> "> <article id="comment-<?php comment_ID(); ?> " class="comment"> <div class="comment-author"> <?php echo get_avatar(get_comment_author_email(), 72); ?> <div> <div class="author-name"><?php comment_author_link(); ?> </div> <div class="comment-date"><?php comment_date(); ?> </div> <?php comment_reply_link(array_merge($args, array('reply_text' => __('Reply', 'tracks'), 'depth' => $depth, 'max_depth' => $args['max_depth']))); ?> <?php edit_comment_link(__('Edit', 'tracks')); ?> </div> </div> <div class="comment-content"> <?php if ($comment->comment_approved == '0') { ?> <em><?php _e('Your comment is awaiting moderation.', 'tracks'); ?> </em> <br/> <?php } ?> <?php comment_text(); ?> </div> </article> <?php }
function hemingway_comment($comment, $args, $depth) { $GLOBALS['comment'] = $comment; extract($args, EXTR_SKIP); ?> <li <?php comment_class(empty($args['has_children']) ? '' : 'parent'); ?> id="comment-<?php comment_ID(); ?> "> <div id="div-comment-<?php comment_ID(); ?> "> <cite class="comment-author vcard comment-meta commentmetadata"> <span class="avatarspan"><?php if ($args['avatar_size'] != 0) { echo get_avatar($comment, $args['avatar_size']); } ?> </span> <span class="author fn"><?php comment_author_link(); ?> </span> <span class="date"><?php comment_date('n.j.y'); ?> / <?php comment_date('ga'); ?> </span> </cite> <div class="content"> <?php if ($comment->comment_approved == '0') { ?> <em>Your comment is awaiting moderation.</em> <?php } ?> <?php comment_text(); ?> </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 class="clear"></div> </div> <?php }
function sdac_comment($comment, $args, $depth) { $GLOBALS['comment'] = $comment; ?> <div class="commentBox <?php comment_class(); ?> " id="li-comment-<?php comment_ID(); ?> "> <div id="comment-<?php comment_ID(); ?> "> <?php if (function_exists('get_avatar')) { echo get_avatar($comment, '40'); } ?> <?php comment_text(); ?> <i><?php comment_type(__('Comment'), __('Trackback'), __('Pingback')); ?> <?php _e('by'); ?> <?php comment_author_link(); ?> <?php comment_date('m.d.y'); ?> @ <a href="#comment-<?php comment_ID(); ?> "><?php comment_time(); ?> </a> <?php edit_comment_link(__("Edit This"), ' |'); ?> </i> <p class="reply"> <?php comment_reply_link(array_merge($args, array('depth' => $depth, 'max_depth' => $args['max_depth']))); ?> </p> </div> </div> <br /> <?php }
function motiontheme_comment($comment, $args, $depth) { $GLOBALS['comment'] = $comment; ?> <li <?php comment_class(); ?> id="li-comment-<?php comment_ID(); ?> "> <div id="comment-<?php comment_ID(); ?> " class="comment-wrap"> <?php echo get_avatar($comment, $size = '50'); ?> <div class="commentbody"> <div class="author"><?php comment_author_link(); ?> </div> <?php if ($comment->comment_approved == '0') { ?> <em>(Your comment is awaiting moderation...)</em> <?php } ?> <div class="commentmetadata"><a href="#comment-<?php comment_ID(); ?> " title=""><?php comment_date('F jS, Y'); ?> at <?php comment_time(); ?> </a> <?php edit_comment_link('edit', ' ', ''); ?> </div> <?php comment_text(); ?> </div><!-- /commentbody --> <div class="reply"> <?php comment_reply_link(array_merge($args, array('depth' => $depth, 'max_depth' => $args['max_depth']))); ?> </div> </div><!-- /comment --> <?php }
function mytheme_comment($comment, $args, $depth) { $GLOBALS['comment'] = $comment; ?> <li <?php comment_class(); ?> id="li-comment-<?php comment_ID(); ?> "> <article id="comment-<?php comment_ID(); ?> " class="comment-body"> <footer class="comment-author vcard"> <?php echo get_avatar($comment->comment_author_email, 60); ?> <p class='commentauthor'><?php comment_author_link(); ?> </p> <p class='comment-time'><?php comment_date(); ?> , <?php comment_time(); ?> </p> </footer> <div class="comments-body"> <?php comment_text(); ?> <div class="reply"> <?php comment_reply_link(array_merge($args, array('depth' => $depth, 'max_depth' => $args['max_depth']))); ?> | <?php edit_comment_link('Edit', ' ', ''); ?> </div> <?php if ($comment->comment_approved == '0') { ?> <em>Your comment is awaiting moderation.</em> <?php } ?> </div> <div class="clear"></div> </article> </li> <?php }
function custom_comments($comment, $args, $depth) { $GLOBALS['comment'] = $comment; ?> <li <?php comment_class(); ?> > <article id="comment-<?php comment_ID(); ?> "> <header class="comment-author"> <?php echo get_avatar($comment, $size = '75'); ?> <div class="author-meta"> <?php printf('<cite class="fn"><strong>%s</strong> comentou em</cite>', get_comment_author_link()); ?> <time datetime="<?php echo comment_date('c'); ?> "><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('Editar', '', ''); ?> </div> </header> <section class="comment"> <?php comment_text(); ?> <?php if ($comment->comment_approved == '0') { ?> <div class="alert-box alert radius text-center">Seu comentário está aguardando a revisão de um administrador!</div> <?php } ?> <?php comment_reply_link(array_merge($args, array('depth' => $depth, 'max_depth' => $args['max_depth']))); ?> </section> </article> <?php }
function theme_render_comment($comment, $args, $depth) { $GLOBALS['comment'] = $comment; ?> <li <?php comment_class(); ?> id="li-comment-<?php comment_ID(); ?> "> <div id="comment-<?php comment_ID(); ?> " class="commentinside"> <div class="image"> <?php echo get_avatar($comment, 48); ?> </div> <div class="info"> <span class="name"> <?php comment_author_link(); ?> schreibt am <a href="<?php echo htmlspecialchars(get_comment_link($comment->comment_ID)); ?> "> <?php comment_date(); ?> <?php comment_time(); ?> </a> </span> <?php comment_text(); ?> <?php comment_reply_link(array_merge($args, array('depth' => $depth, 'max_depth' => $args['max_depth']))); ?> </div> <div class="comment-meta"> <?php edit_comment_link(__('(Edit)'), ' ', ''); ?> </div> </div> <?php }
function supposedly_clean_comment($comment, $args, $depth) { $GLOBALS['comment'] = $comment; extract($args, EXTR_SKIP); ?> <li <?php comment_class(empty($args['has_children']) ? '' : 'parent'); ?> id="comment-<?php comment_ID(); ?> "> <div id="div-comment-<?php comment_ID(); ?> " class="comment-author vcard"> <?php if ($args['avatar_size'] != 0) { echo get_avatar($comment, $args['avatar_size']); } ?> <?php comment_text(); ?> <p><cite><?php comment_type(__('Comment'), __('Trackback'), __('Pingback')); ?> <?php _e('by'); ?> <span class="fn"><?php comment_author_link(); ?> </span> — <?php comment_date(); ?> @ <a href="#comment-<?php comment_ID(); ?> "><?php comment_time(); ?> </a></cite> <?php edit_comment_link(__("Edit This"), ' |'); ?> </p> <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 }
function sunburn_comment($comment, $args, $depth) { $GLOBALS['comment'] = $comment; extract($args, EXTR_SKIP); ?> <li <?php comment_class(empty($args['has_children']) ? '' : 'parent'); ?> id="comment-<?php comment_ID(); ?> "> <div id="div-comment-<?php comment_ID(); ?> " class="vcard"> <?php if ($args['avatar_size'] != 0) { echo get_avatar($comment, $args['avatar_size']); } ?> <?php if ($comment->comment_approved == '0') { ?> <p style = "color: red;">Your comment is awaiting moderation.</p> <?php } ?> <?php comment_text(); ?> <p class="comment-meta commentmetadata"><span class="fn"><?php comment_author_link(); ?> </span> - <a href="<?php echo htmlspecialchars(get_comment_link($comment->comment_ID)); ?> " title=""><?php comment_date(); ?> at <?php comment_time(); ?> </a></p> <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 }
function my_theme_comment($comment, $args, $depth) { $GLOBALS['comment'] = $comment; switch ($comment->comment_type) { default: ?> <li <?php comment_class(); ?> id="comment-<?php comment_ID(); ?> "> <p class="meta-comment"> <?php echo get_avatar($comment, 30); ?> <span class="author-name"><?php comment_author(); ?> </span> <time <?php comment_time('c'); ?> class="comment-time"> <span class="date"> <?php comment_date(); ?> </span> <span class="time"> <?php comment_time(); ?> </span> </time> </p> <div class="comment-content"> <?php comment_text(); ?> </div> <div class="comment-actions"> <div class="reply"><?php comment_reply_link(array_merge($args, array('reply_text' => 'Reply', 'after' => '', 'depth' => $depth, 'max_depth' => $args['max_depth']))); ?> </div><!-- .reply --> </div> <!-- #comment-<?php comment_ID(); ?> --> <?php // End the default styling of comment break; } }