?> </a></h2> <div class="block-snippet block-snippet--subtitle"><?php echo mb_strimwidth(strip_shortcodes(strip_tags($post->post_content)), 0, 120, "..."); ?> </div> <div class="v-clearfix block-postMetaWrap"> <div class="block-postMeta"> <div class="postMetaInline-avatar"> <?php echo get_avatar(get_the_author_meta('user_email'), 40); ?> </div> <div class="postMetaInline-feedSummary"> In <?php the_category(","); ?> , by <span class="link--accent"><?php the_author(); ?> </span> <span class="postMetaInline postMetaInline--supplemental"> <?php echo angela_time_ago(abs(get_the_date('U')), true); ?> </div> </div> </div> </article>
function angela_comment($comment, $args, $depth) { $GLOBALS['comment'] = $comment; ?> <li id="comment-<?php comment_ID(); ?> " <?php comment_class('commenttips', $comment_id, $comment_post_ID); ?> > <div class="comment-body"> <div class="comment-avatar"> <?php echo get_avatar(get_comment_author_email(), '40'); ?> </div> <div class="comment-meta"> <span class="comment-id"><?php comment_author_link(); ?> </span> <span class="comment-time"><?php echo angela_time_ago(abs(strtotime($comment->comment_date_gmt . "GMT")), true); ?> </span> <span class="reply"><?php comment_reply_link(array_merge($args, array('reply_text' => '回复TA', 'depth' => $depth, 'max_depth' => $args['max_depth']))); ?> </span> </div> <div class="comment-text"> <?php if ($comment->comment_approved == '0') { ?> <?php _e('<p class="comment-warning">Your comment is awaiting moderation.</p>'); ?> <?php } ?> <?php comment_text(); //edit_comment_link(' <编辑> '); ?> </div> </div> <?php }