<span>asked in </span> <i class="fa fa-tags"></i> <strong><?php echo $post_cat; ?> </strong> </div><!-- /.asked-in --> <div class="posted-at"> <a href="<?php echo get_permalink($post_info["ID"]); ?> "> <i class="fa fa-clock-o"></i> <span><?php echo cjtheme_time_ago(strtotime($post_info['post_date'])); ?> </span> </a> </div><!-- /.posted-at --> </div><!-- /.question-meta --> <div class="answers-count"> <?php if ($post_info['comment_count'] > 0) { ?> <?php if ($post_info['comment_count'] == 1) { ?> <small class="the-count"><i class="fa fa-comment"></i> <?php
?> <li class="list-group-item"> <span class="pull-right"> <a data-id="<?php echo $notification->id; ?> " href="#" class="toggle-read"> <i class="fa fa-circle<?php echo $notification->unread == 0 ? '-o' : ''; ?> "></i> </a> </span> <small><?php echo cjtheme_time_ago(strtotime($notification->dated)); ?> </small> <p><?php echo $notification->message; ?> </p> </li> <?php } ?> <?php } ?> </ul>
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 } }
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 --> <div class="answer-content"> <span class="arrow"></span> <?php echo wpautop($answer->comment_content); ?> <?php $likes = cjtheme_activity_comment_likes($answer->comment_ID); ?> <?php