public/wordpress/wp-content/plugins/wp-courseware/includes/legacy/admin/functions.php
/**
 * Generate a list of filters for a table, that ultimately is used to trigger an SQL filter on the view
 * of items in a table.
 *
 * @since 1.0.0
 *
 * @param array  $filterList The list of items to use in the filter.
 * @param string $baseURL The string to use at the start of the URL to ensure it works correctly.
 * @param string $activeItem The key that matches the item that's currently selected.
 *
 * @return string The HTML to render the filter.
 */
Generate a list of filters for a table, that ultimately is used to trigger an SQL filter on the view
of items in a table.



@param array  $filterList The list of items to use in the filter.
@param string $baseURL The string to use at the start of the URL to ensure it works correctly.
@param string $activeItem The key that matches the item that's currently selected.

@return string The HTML to render the filter.
Generate a list of filters for a table that ultimately is used to trigger an SQL filter on the view of items in a table . @param array $filterList The list of items to use in the filter . @param string $baseURL The string to use at the start of the URL to ensure it works correctly . @param string $activeItem The key that matches the item that ' s currently selected . @return string The HTML to render the filter .
function WPCW_table_showFilters( $filterList, $baseURL, $activeItem ) {
	$html = '<div class="subsubsub wpcw_table_filter">';
	foreach ( $filterList as $filterKey => $filterLabel ) {
		$html .= sprintf( '<a href="%s%s" class="%s">%s</a>',
			$baseURL, $filterKey,
			( $activeItem == $filterKey ? 'wpcw_table_filter_active' : '' ),
			$filterLabel
		);
	}
	return $html . '</div>';
}
function WPCW_table_showFilters ( $ filterList , $ baseURL , $ activeItem ) { $ html = '<div class="subsubsub wpcw_table_filter">' ; foreach ( $ filterList as $ filterKey => $ filterLabel ) { $ html .= sprintf ( '<a href="%s%s" class="%s">%s</a>' , $ baseURL , $ filterKey , ( $ activeItem == $ filterKey ? 'wpcw_table_filter_active' : '' ) , $ filterLabel ) ; } return $ html . '</div>' ; }
Generate a list of filters for a table, that ultimately is used to trigger an SQL filter on the view
 of items in a table.
Generate a list of filters for a table that ultimately is used to trigger an SQL filter on the view of items in a table .