<?php dwqa_question_print_status(); ?> <?php global $post; $user_id = get_post_field('post_author', get_the_ID()) ? get_post_field('post_author', get_the_ID()) : false; $time = human_time_diff(get_post_time('U')); $text = __('asked', 'dwqa'); $latest_answer = dwqa_get_latest_answer(); if ($latest_answer) { $time = human_time_diff(strtotime($latest_answer->post_date)); $text = __('answered', 'dwqa'); } ?> <?php printf(__('<span><a href="%s">%s%s</a> %s %s ago</span>', 'dwqa'), dwqa_get_author_link($user_id), get_avatar($user_id, 48), dwqa_get_author(), $text, $time); ?> <?php echo get_the_term_list(get_the_ID(), 'dwqa-question_category', '<span class="dwqa-question-category">' . __(' • ', 'dwqa'), ', ', '</span>'); ?> </div> <div class="dwqa-question-stats"> <span class="dwqa-views-count"> <?php $views_count = dwqa_question_views_count(); ?> <?php printf(__('<strong>%1$s</strong> views', 'dwqa'), $views_count); ?> </span> <span class="dwqa-answers-count">
</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>'); ?>