public/wordpress/wp-content/plugins/wp-courseware/includes/legacy/admin/functions.php
/**
 * Create a break bar for the forms, with a save button too.
 *
 * @since 1.0.0
 *
 * @param string $title The title for the section.
 * @param string $buttonText The text for the button on the break section.
 * @param string $extraCSSClass Any extra CSS for styling the break.
 *
 * @return string The HTML for the section break.
 */
Create a break bar for the forms, with a save button too.

@param string $title The title for the section.
@param string $buttonText The text for the button on the break section.
@param string $extraCSSClass Any extra CSS for styling the break.

@return string The HTML for the section break.
Create a break bar for the forms with a save button too . @param string $title The title for the section . @param string $buttonText The text for the button on the break section . @param string $extraCSSClass Any extra CSS for styling the break . @return string The HTML for the section break .
function WPCW_forms_createBreakHTML( $title, $buttonText = false, $hideButton = false, $extraCSSClass = false ) {
	if ( ! $hideButton ) {
		$buttonText = __( 'Save ALL Settings', 'wp-courseware' );
	}
	$btnHTML = false;
	if ( $buttonText && ! $hideButton ) {
		$btnHTML = sprintf( '<input type="submit" value="%s" name="Submit" class="button-primary">', $buttonText );
	}
	return sprintf( '
		<div class="wpcw_form_break %s">
			%s
			<h3>%s</h3>
			<div class="wpcw_cleared">&nbsp;</div>
		</div>
	',
		$extraCSSClass,
		$btnHTML,
		$title );
}
function WPCW_forms_createBreakHTML ( $ title , $ buttonText = false , $ hideButton = false , $ extraCSSClass = false ) { if ( ! $ hideButton ) { $ buttonText = __ ( 'Save ALL Settings' , 'wp-courseware' ) ; } $ btnHTML = false ; if ( $ buttonText && ! $ hideButton ) { $ btnHTML = sprintf ( '<input type="submit" value="%s" name="Submit" class="button-primary">' , $ buttonText ) ; } return sprintf ( '
		<div class="wpcw_form_break %s">
			%s
			<h3>%s</h3>
			<div class="wpcw_cleared">&nbsp;</div>
		</div>
	' , $ extraCSSClass , $ btnHTML , $ title ) ; }
Create a break bar for the forms, with a save button too.
Create a break bar for the forms with a save button too .