public/wordpress/wp-content/plugins/wp-courseware/includes/legacy/admin/functions.php
/**
 * Shows a list of tags and a button to filter the question pool by tag.
 *
 * @since 1.0.0
 *
 * @param string $currentTag The current tag that has been selected.
 * @param string $pageForURL The name of the page to show this form on (where page=WPCW_showPage_QuestionPool)
 *
 * @return string The HTML to render the tag filtering code.
 */
Shows a list of tags and a button to filter the question pool by tag.

@param string $currentTag The current tag that has been selected.
@param string $pageForURL The name of the page to show this form on (where page=WPCW_showPage_QuestionPool)

@return string The HTML to render the tag filtering code.
Shows a list of tags and a button to filter the question pool by tag . @param string $currentTag The current tag that has been selected . @param string $pageForURL The name of the page to show this form on ( where page = WPCW_showPage_QuestionPool ) @return string The HTML to render the tag filtering code .
function WPCW_questions_tags_createTagFilter( $currentTag, $pageForURL ) {
	$html = sprintf( '<div class="wpcw_questions_tag_filter_wrap"><form method="get" action="%s">', admin_url( 'admin.php?page=' . $pageForURL ) );
	$html .= sprintf( '<input type="hidden" name="page" value="%s" />', $pageForURL );
	$html .= sprintf( '<label for="wpcw_questions_tag_filter">%s</label>', __( 'Filter By:', 'wp-courseware' ) );
	$html .= WPCW_questions_tags_getTagDropdown( __( '-- View All Tags --', 'wp-courseware' ), 'filter', $currentTag, 'wpcw_questions_tag_filter' );
	$html .= sprintf( '<input type="submit" class="button-secondary" value="%s" />', __( 'Filter', 'wp-courseware' ) );
	return $html . '</form></div>';
}
function WPCW_questions_tags_createTagFilter ( $ currentTag , $ pageForURL ) { $ html = sprintf ( '<div class="wpcw_questions_tag_filter_wrap"><form method="get" action="%s">' , admin_url ( 'admin.php?page=' . $ pageForURL ) ) ; $ html .= sprintf ( '<input type="hidden" name="page" value="%s" />' , $ pageForURL ) ; $ html .= sprintf ( '<label for="wpcw_questions_tag_filter">%s</label>' , __ ( 'Filter By:' , 'wp-courseware' ) ) ; $ html .= WPCW_questions_tags_getTagDropdown ( __ ( '-- View All Tags --' , 'wp-courseware' ) , 'filter' , $ currentTag , 'wpcw_questions_tag_filter' ) ; $ html .= sprintf ( '<input type="submit" class="button-secondary" value="%s" />' , __ ( 'Filter' , 'wp-courseware' ) ) ; return $ html . '</form></div>' ; }
Shows a list of tags and a button to filter the question pool by tag.
Shows a list of tags and a button to filter the question pool by tag .
// Page that this form is being shown on. // Select // CTA