function tst_comment($comment, $args, $depth) { $GLOBALS['comment'] = $comment; ?> <li id="comment-<?php comment_ID(); ?> " <?php comment_class(empty($args['has_children']) ? '' : 'parent'); ?> > <article id="div-comment-<?php comment_ID(); ?> " class="comment-body media"> <span class="pull-left comment-avatar"> <?php if (0 != $args['avatar_size']) { tst_temp_avatar(); } ?> </span> <div class="media-body"> <div class="media-body-wrap panel panel-default"> <div class="panel-heading"> <h5 class="media-heading"> <?php echo tst_get_comment_author_link(); ?> <?php echo ' / '; ?> <time datetime="<?php comment_time('c'); ?> "> <?php printf(_x('%1$s at %2$s', '1: date, 2: time', 'tst'), get_comment_date(), get_comment_time()); ?> </time> </h5> </div> <div class="comment-content panel-body"> <?php comment_text(); ?> </div> <?php comment_reply_link(array_merge($args, array('add_below' => 'div-comment', 'depth' => $depth, 'max_depth' => $args['max_depth'], 'before' => '<footer class="reply comment-reply panel-footer">', 'after' => '</footer><!-- .reply -->'))); ?> </div> </div><!-- .media-body --> </article><!-- .comment-body --> <?php }
global $tst_member; ?> <article class="member col-md-6"> <div class="border-card"> <header class="member-header"> <div class="row"> <div class="col-md-3"> <a href="<?php echo tst_get_member_url(); ?> " class="thumbnail"> <?php tst_temp_avatar(); ?> </a> </div> <div class="col-md-9"> <?php $is_user_test_employee = get_user_meta($tst_member->ID, 'user_test_employee', true); $role = tst_get_member_role($tst_member); switch ($role) { case 1: $class = 'label-warning'; break; case 2: $class = 'label-success'; break;