示例#1
0
/**
 * Output count of total numbers of Answers
 * @since 2.1
 */
function ap_answer_the_count()
{
    echo ap_answer_get_the_count();
}
示例#2
0
 * @link http://anspress.io/anspress
 * @since 2.0.1
 *
 * @package AnsPress
 */
?>

<?php 
if (ap_have_answers()) {
    ?>

	<div id="ap-answers-c">
		<div class="ap-sorting-tab clearfix">
			<h3 class="ap-answers-label ap-pull-left">
				<?php 
    echo '<span data-view="answer_count">' . ap_answer_get_the_count() . '</span> ' . sprintf(_n('answer', 'answers', ap_answer_get_the_count(), 'ap'));
    ?>

			</h3>
			<?php 
    ap_answers_tab(ap_question_get_the_permalink());
    ?>

		</div>

		<?php 
    if (ap_user_can_see_answers()) {
        ?>

			<div id="answers">
				<?php