global $comment; ?> <div class="dwqa-comment"> <div class="dwqa-comment-meta"> <?php $user = get_user_by('id', $comment->user_id); ?> <a href="<?php echo dwqa_get_author_link($comment->user_id); ?> "><?php echo get_comment_author($comment->ID); ?> </a> <?php dwqa_print_user_badge($comment->user_id, true); ?> <?php printf(_x('replied %s ago', '%s = human-readable time difference', 'dwqa'), human_time_diff(get_comment_time('U'), current_time('timestamp'))); ?> <div class="dwqa-comment-actions"> <?php if (dwqa_current_user_can('edit_comment')) { ?> <a href="<?php echo esc_url(add_query_arg(array('comment_edit' => $comment->comment_ID))); ?> "><?php _e('Edit', 'dwqa'); ?> </a>
</span> <a class="dwqa-vote dwqa-vote-up" href="#"><?php _e('Vote Up', 'dwqa'); ?> </a> <a class="dwqa-vote dwqa-vote-down" href="#"><?php _e('Vote Down', 'dwqa'); ?> </a> </div> <div class="dwqa-question-meta"> <?php $user_id = get_post_field('post_author', get_the_ID()) ? get_post_field('post_author', get_the_ID()) : false; ?> <?php printf(__('<span><a href="%s">%s%s</a> %s asked %s ago</span>', 'dwqa'), dwqa_get_author_link($user_id), get_avatar($user_id, 48), dwqa_get_author(), dwqa_print_user_badge($user_id), human_time_diff(get_post_time('U'))); ?> <span class="dwqa-question-actions"><?php dwqa_question_button_action(); ?> </span> </div> <div class="dwqa-question-content"><?php the_content(); ?> </div> <footer class="dwqa-question-footer"> <div class="dwqa-question-meta"> <?php echo get_the_term_list(get_the_ID(), 'dwqa-question_tag', '<span class="dwqa-question-tag">' . __('Question Tags: ', 'dwqa'), ', ', '</span>'); ?>