| 1 |
<div class="clear"></div> |
| 2 |
<?php |
| 3 |
if ( isset( $message ) && '' !== $message ) { |
| 4 |
if ( FrmAppHelper::is_admin() ) { |
| 5 |
echo '<div id="message" class="frm_updated_message">'; |
| 6 |
echo FrmAppHelper::kses( $message, 'all' ); // WPCS: XSS ok. |
| 7 |
echo '</div>'; |
| 8 |
} else { |
| 9 |
echo $message; // WPCS: XSS ok. |
| 10 |
} |
| 11 |
} |
| 12 |
|
| 13 |
if ( isset( $errors ) && is_array( $errors ) && count( $errors ) > 0 ) { |
| 14 |
?> |
| 15 |
<div class="error frm_error_style inline" role="alert"> |
| 16 |
<ul id="frm_errors"> |
| 17 |
<?php |
| 18 |
foreach ( $errors as $error ) { |
| 19 |
echo '<li>' . FrmAppHelper::kses( $error, array( 'a', 'br' ) ) . '</li>'; // WPCS: XSS ok. |
| 20 |
} |
| 21 |
?> |
| 22 |
</ul> |
| 23 |
</div> |
| 24 |
<?php |
| 25 |
} |
| 26 |
|