<li class="ap-tip ap-ansslable" title="<?php _e('Answer is accepted', 'ap'); ?> "> <i class="ap-icon-answer"></i> </li> <?php } ?> <li class="list-meta ap-tip" title="<?php _e('Last activity', 'ap'); ?> "> <i class="ap-icon-clock ap-meta-icon"></i> <?php printf('<span class="when">%s %s ago</span>', ap_get_latest_history_html(get_the_ID()), ap_human_time(mysql2date('U', ap_last_active(get_question_id())))); ap_user_display_name(); ?> </li> <li class="ap-tip" title="<?php _e('Question category', 'ap'); ?> "><?php ap_question_categories_html(false, false); ?> </li> <li class="ap-tip" title="<?php _e('Question tagged', 'ap'); ?> "><?php ap_question_tags_html(false, false);
</li> <li> <?php $count = ap_count_ans(get_the_ID()); printf(_n('<span>Answer</span><strong data-view="ap-answer-count-label">1 Answer</strong>', '<span>Answers</span><strong data-view="ap-answer-count-label">%d Answers</strong>', $count, 'ap'), $count); ?> </li> <li> <?php $view_count = ap_get_qa_views(); printf(_n('<span>Viewed</span><strong>1 Times</strong>', '<span>Viewed</span><strong>%d Times</strong>', $view_count, 'ap'), $view_count); ?> </li> <li> <?php printf(__('<span>Active</span><strong><time class="updated" itemprop="dateUpdated" datetime="%s">%s Ago</time></strong>', 'ap'), mysql2date('c', ap_last_active(get_question_id())), ap_human_time(mysql2date('U', ap_last_active(get_question_id())))); ?> </li> </ul> </div> </div> <?php comments_template(); ?> </div> </div> </div> <?php if (ap_have_ans(get_the_ID())) { ap_answers_list(get_the_ID(), 'voted');
/** * Return the answer active ago time * @return string * @since 2.1 */ function ap_answer_get_the_active_ago() { return ap_last_active(ap_answer_get_the_answer_id()); }
/** * Return the question active ago time * @return string * @since 2.1 */ function ap_question_get_the_active_ago() { return ap_last_active(ap_question_get_the_ID()); }