Example #1
0
/**
 * Echo active question permalink
 * @return void
 * @since 2.1
 */
function ap_question_the_permalink()
{
    echo ap_question_get_the_permalink();
}
Example #2
0
?>

<?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 
        $i = 1;
        while (ap_have_answers()) {
            ap_the_answer();
            include ap_get_theme_location('answer.php');
            $i++;