function ap_questions_tab($current_url = '')
{
    _deprecated_function('ap_questions_tab', '2.3', 'ap_question_sorting');
    ap_question_sorting($current_url);
}
Beispiel #2
0
	    <input name="ap_s" type="text" class="ap-form-control" placeholder="<?php 
_e('Search questions...', 'anspress-question-answer');
?>
" value="<?php 
echo sanitize_text_field(get_query_var('ap_s'));
?>
" />
	</form>
	<?php 
// Hide ask button if user page
if (!is_ap_user()) {
    ap_ask_btn();
}
?>
	<form id="ap-question-sorting" class="ap-questions-sorting clearfix">
		<?php 
ap_question_sorting();
?>
		<?php 
do_action('ap_list_head');
?>
		<a id="ap-question-sorting-reset" href="#" title="<?php 
_e('Reset sorting and filter', 'anspress-question-answer');
?>
"><?php 
echo ap_icon('x', true);
?>
</a>
	</form>
</div>
Beispiel #3
0
<div id="ap-lists">
	<h3 class="ap-user-page-title clearfix">
		<?php 
echo ap_page_title();
?>
		<?php 
ap_question_sorting(ap_user_link(ap_get_displayed_user_id(), 'questions'));
?>
	</h3>
	<?php 
if (ap_have_questions()) {
    ?>
		<div class="ap-questions">
			<?php 
    /* Start the Loop */
    while (ap_questions()) {
        ap_the_question();
        ap_get_template_part('user/list-question');
    }
    ?>
		</div>
	<?php 
    ap_questions_the_pagination();
    ?>
	<?php 
} else {
    include ap_get_theme_location('content-none.php');
}
?>
	
</div>