" class="username"> <?php echo $user_info['display_name']; ?> </a> <ul class="user-stats"> <li class="stat"> <i class="fa fa-thumbs-up"></i> <?php echo cjtheme_user_likes_count($user_info['ID'], 'likes'); ?> </li><!-- /.stat --> <li class="stat"> <i class="fa fa-star"></i> <?php echo cjtheme_user_likes_count($user_info['ID'], 'thanks'); ?> </li><!-- /.stat --> <li class="stat"> <?php echo $user_role_level; ?> </li><!-- /.stat --> </ul><!-- /.user-stats --> </div><!-- /.user-meta --> </div><!-- /.user-info --> <div class="untrimmed-title"> <p class="lead"><?php the_title();
function cartoq_comment_template($comment, $args, $depth) { global $current_user; $GLOBALS['comment'] = $comment; $classes = array('comment', 'answer', 'clearfix'); switch ($comment->comment_type) { case '': ?> <li <?php comment_class($classes); ?> id="li-comment-<?php comment_ID(); ?> "> <?php if ($comment->user_id) { $user = get_userdata($comment->user_id); $username = $user->user_nicename; $profile_url = site_url('members/') . $username . '/'; } ?> <div id="comment-<?php comment_ID(); ?> " class="comment-body clearfix"> <figure class="comment-avatar"> <a href="<?php echo $profile_url; ?> "> <?php echo get_avatar($comment, 70); ?> </a> <figcaption> <span class="user-stats"> <span class="stat"><i class="fa fa-thumbs-up"></i> <?php echo cjtheme_user_likes_count($user->ID, 'likes'); ?> </span> <span class="stat"><i class="fa fa-star"></i> <?php echo cjtheme_user_likes_count($user->ID, 'thanks'); ?> </span> <span class="stat"><i class="fa fa-crown"></i> <span class="label label-info"><?php echo cjtheme_user_role_display($user->ID); ?> </span></span> </span> </figcaption> </figure> <div class="comment-main"> <header class="vcard clearfix"> <?php printf(__('<cite class="fn">%s answers:</cite>', 'cartoq'), get_comment_author_link()); ?> <aside class="comm-edit"> <a class="comment-date" href="<?php echo htmlspecialchars(get_comment_link($comment->comment_ID)); ?> "> <?php echo cjtheme_time_ago(strtotime($comment->comment_date)); ?> </a> <?php edit_comment_link(__('Edit', 'cartoq'), ' ', ''); ?> </aside> </header> <div class="comment-text"> <?php comment_text(); ?> <?php if ($comment->comment_approved == '0') { ?> <em><?php _e('Your comment is awaiting moderation.', 'cartoq'); ?> </em> <br /> <?php } ?> </div> <?php $likes = cjtheme_activity_comment_likes($comment->comment_ID); $thanks = cjtheme_activity_comment_thanks($comment->comment_ID); ?> <a href="#" class="like-thanks btn btn-link <?php echo cjtheme_login_class('like-comment', 'cjfm-show-login-form'); ?> " data-redirect="<?php echo cjtheme_current_url(); ?> " id="like-<?php echo $comment->comment_ID; ?> " data-comment-id="<?php echo $comment->comment_ID; ?> " data-user-id="<?php echo $current_user->ID; ?> "> <i class="fa fa-thumbs-up"></i> <span class="likes-value"> <?php echo $likes > 0 ? $likes : '0'; ?> </span> </a> <a href="#" class="like-thanks btn btn-link <?php echo cjtheme_login_class('thank-comment', 'cjfm-show-login-form'); ?> " data-redirect="<?php echo cjtheme_current_url(); ?> " id="thanks-<?php echo $comment->comment_ID; ?> " data-comment-id="<?php echo $comment->comment_ID; ?> " data-user-id="<?php echo $current_user->ID; ?> "> <i class="fa fa-heart"></i> <span class="thanks-value"> <?php echo $thanks > 0 ? $thanks : '0'; ?> </span> </a> <?php comment_reply_link(array_merge($args, array('depth' => $depth, 'before' => '<footer class="reply">', 'after' => '</footer>', 'max_depth' => $args['max_depth']))); ?> </div> </div><!-- #comment-<?php comment_ID(); ?> --> </li><?php break; case 'pingback': ?> <li <?php comment_class(); ?> id="li-pingback-<?php comment_ID(); ?> "> <?php _e('Pingback:', 'cartoq'); ?> <?php echo get_comment_author_link(); ?> <small class="ping-edit"><?php ac_icon('edit'); edit_comment_link(__('Edit', 'cartoq'), ' ', ''); ?> </small> </li><?php case 'trackback': ?> <li <?php comment_class(); ?> id="li-trackback-<?php comment_ID(); ?> "> <?php _e('Trackback:', 'cartoq'); ?> <?php echo get_comment_author_link(); ?> <small class="ping-edit"><?php ac_icon('edit'); edit_comment_link(__('Edit', 'cartoq'), ' ', ''); ?> </small> </li><?php } }
<div id="item-profile-likes-thanks"> <ul> <li class="likes-wrap"> <span class="inner-wrap"> <strong class="value"><?php echo cjtheme_user_likes_count(bp_displayed_user_id(), 'likes'); ?> </strong><!-- /.value --> <span class="key">Likes</span><!-- /.key --> </span><!-- /.inner-wrap --> </li><!-- /.likes-wrap --> <li class="thanks-wrap"> <span class="inner-wrap"> <strong class="value"><?php echo cjtheme_user_likes_count(bp_displayed_user_id(), 'thanks'); ?> </strong><!-- /.value --> <span class="key">Thanks</span><!-- /.key --> </span><!-- /.inner-wrap --> </li><!-- /.thanks-wrap --> </ul> </div><!-- /#item-profile-likes-thanks --> <div id="item-nav"> <div class="item-list-tabs no-ajax" id="object-nav" role="navigation"> <ul class="clearfix"> <?php bp_get_displayed_user_nav(); ?>
<div class="user-meta"> <a href="<?php echo get_author_posts_url($comment_author_info['ID']); ?> " class="username"><?php echo $comment_author_info['display_name']; ?> </a> <span class="user-stats"> <span class="stat"><i class="fa fa-thumbs-up"></i> <?php echo cjtheme_user_likes_count($comment_author_info['ID'], 'likes'); ?> </span> <span class="stat"><i class="fa fa-star"></i> <?php echo cjtheme_user_likes_count($comment_author_info['ID'], 'thanks'); ?> </span> <span class="stat"><?php echo cjtheme_user_role_display($comment_author_info['ID']); ?> </span> </span> <br> answered this question<br><i><?php echo cjtheme_time_ago(strtotime($answer->comment_date)); ?> </i> </div><!-- /.user-meta --> </div><!-- /.user-info -->