public/wordpress/wp-content/plugins/wp-courseware/includes/legacy/functions.php
/**
 * Convert a percentage to a percentage bar.
 *
 * @param integer $percent The number to show in the progress bar.
 * @param integer $title The optional title of the course.
 *
 * @return integer The HTML to render the percentage bar.
 */
Convert a percentage to a percentage bar.
@param integer $percent The number to show in the progress bar.
@param integer $title The optional title of the course.

@return integer The HTML to render the percentage bar.
Convert a percentage to a percentage bar . @param integer $percent The number to show in the progress bar . @param integer $title The optional title of the course . @return integer The HTML to render the percentage bar .
function WPCW_stats_convertPercentageToBar( $percent, $title = false ) {
	if ( $title ) {
		$title = sprintf( __( '<span class="wpcw_progress_bar_title">%s</span>', 'wp-courseware' ), $title );
	}
	return WPCW_content_progressBar( $percent, false, $title );
}
function WPCW_stats_convertPercentageToBar ( $ percent , $ title = false ) { if ( $ title ) { $ title = sprintf ( __ ( '<span class="wpcw_progress_bar_title">%s</span>' , 'wp-courseware' ) , $ title ) ; } return WPCW_content_progressBar ( $ percent , false , $ title ) ; }
Convert a percentage to a percentage bar.
Convert a percentage to a percentage bar .