public/wordpress/wp-content/plugins/wp-courseware/includes/legacy/functions.php
/**
 * Creates a progress bar.
 *
 * @since 1.0.0
 *
 * @param integer $percentage The percentage completion so far.
 * @param string  $cssClass The optional string to use for the CSS class for the progress bar.
 * @param string  $extraHTML Any extra HTML to show for the progress bar line.
 *
 * @return string The HTML for the progress bar.
 */
Creates a progress bar.

@param integer $percentage The percentage completion so far.
@param string  $cssClass The optional string to use for the CSS class for the progress bar.
@param string  $extraHTML Any extra HTML to show for the progress bar line.

@return string The HTML for the progress bar.
Creates a progress bar . @param integer $percentage The percentage completion so far . @param string $cssClass The optional string to use for the CSS class for the progress bar . @param string $extraHTML Any extra HTML to show for the progress bar line . @return string The HTML for the progress bar .
function WPCW_content_progressBar( $percentage, $cssClass = false, $extraHTML = false ) {
	return sprintf( '
		<span class="wpcw_progress_wrap %s">
			<span class="wpcw_progress">
				<span class="wpcw_progress_bar" style="width: %d%%"></span>
			</span>
			<span class="wpcw_progress_percent">%d%%</span>
			%s
		</span>',
		$cssClass,
		$percentage,
		$percentage,
		$extraHTML
	);
}
function WPCW_content_progressBar ( $ percentage , $ cssClass = false , $ extraHTML = false ) { return sprintf ( '
		<span class="wpcw_progress_wrap %s">
			<span class="wpcw_progress">
				<span class="wpcw_progress_bar" style="width: %d%%"></span>
			</span>
			<span class="wpcw_progress_percent">%d%%</span>
			%s
		</span>' , $ cssClass , $ percentage , $ percentage , $ extraHTML ) ; }
Creates a progress bar.
Creates a progress bar .