public/wordpress/wp-content/plugins/wp-courseware/includes/legacy/builder/easyform.php
/**
		 * Show the array of errors as a formatted error message.
		 *
		 * @param Array $errors The list of errors.
		 */
Show the array of errors as a formatted error message.
@param Array $errors The list of errors.
Show the array of errors as a formatted error message . @param Array $errors The list of errors .
public function showListOfErrors( $errors ) {
			$html = false;
			if ( $this->customFormErrorMsg ) {
				$message = $this->customFormErrorMsg;
			} else {
				$message = "Sorry, but unfortunately there were some errors. Please fix the errors and try again.<br><br>";
			}
			$message .= "<ul style=\"margin-left: 20px; list-style-type: square;\">";
			foreach ( $errors as $errormsg ) {
				$message .= "<li>$errormsg</li>";
			}
			$message .= "</ul>";
			$html    .= $this->showMessage( $message, true );
			return $html;
		}
public function showListOfErrors ( $ errors ) { $ html = false ; if ( $ this -> customFormErrorMsg ) { $ message = $ this -> customFormErrorMsg ; } else { $ message = " Sorry, but unfortunately there were some errors. Please fix the errors and try again.<br><br> " ; } $ message .= " <ul style= \" margin-left: 20px; list-style-type: square; \" > " ; foreach ( $ errors as $ errormsg ) { $ message .= " <li> $ errormsg </li> " ; } $ message .= " </ul> " ; $ html .= $ this -> showMessage ( $ message , true ) ; return $ html ; }
Show the array of errors as a formatted error message.
Show the array of errors as a formatted error message .
// Loop through all errors in the $error list