# formidable/3.06.06/classes/views/shared/errors.php

Formidable Forms – WordPress Form Builder for Contact Forms, Calculators, Quizzes &amp; More, version 3.06.06. 26 lines.

- Page: https://pluginprobe.com/plugins/formidable/3.06.06/code/classes/views/shared/errors.php
- Raw: https://pluginprobe.com/plugins/formidable/3.06.06/raw/classes/views/shared/errors.php
- Modified: 2019-05-03T22:58:28+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/formidable/3.06.06/code/classes/views/shared/errors.php#L10-L20`.

```php
<div class="clear"></div>
<?php
if ( isset( $message ) && '' !== $message ) {
	if ( FrmAppHelper::is_admin() ) {
		echo '<div id="message" class="frm_updated_message">';
		echo FrmAppHelper::kses( $message, 'all' ); // WPCS: XSS ok.
		echo '</div>';
	} else {
		echo $message; // WPCS: XSS ok.
	}
}

if ( isset( $errors ) && is_array( $errors ) && count( $errors ) > 0 ) {
?>
	<div class="error frm_error_style inline" role="alert">
		<ul id="frm_errors">
			<?php
			foreach ( $errors as $error ) {
				echo '<li>' . FrmAppHelper::kses( $error, array( 'a', 'br' ) ) . '</li>'; // WPCS: XSS ok.
			}
			?>
		</ul>
	</div>
<?php
}

```
