Deprecated

This function has been deprecated.

ap_tags_tab()

Description #

Output tags order tabs.

Changelog #

VersionDescription
4.1.0Introduced.

Source #

File: includes/deprecated.php

function ap_tags_tab() {
	_deprecated_function( __FUNCTION__, '4.1.0', 'ap_list_filters' );

	$active = isset( $_GET['ap_sort'] ) ? $_GET['ap_sort'] : 'popular';

	$link = ap_get_link_to( 'tags' ) . '?ap_sort=';

	?>
	<ul class="ap-questions-tab ap-ul-inline clearfix" role="tablist">
		<li class="<?php echo $active == 'popular' ? ' active' : ''; ?>"><a href="<?php echo $link . 'popular'; ?>"><?php _e( 'Popular', 'anspress-question-answer' ); ?></a></li>
		<li class="<?php echo $active == 'new' ? ' active' : ''; ?>"><a href="<?php echo $link . 'new'; ?>"><?php _e( 'New', 'anspress-question-answer' ); ?></a></li>
		<li class="<?php echo $active == 'name' ? ' active' : ''; ?>"><a href="<?php echo $link . 'name'; ?>"><?php _e( 'Name', 'anspress-question-answer' ); ?></a></li>
		<?php
			/**
			 * ACTION: ap_tags_tab
			 * Used to hook into tags page tab
			 */
			do_action( 'ap_tags_tab', $active );
		?>
	</ul>
	<?php
}

Leave a Reply

Your email address will not be published.

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Add your comment