@@ -4,7 +4,7 @@ discard block |
||
| 4 | 4 | <?php |
| 5 | 5 | } |
| 6 | 6 | if ( isset( $message ) && $message != '' ) { |
| 7 | - if ( FrmAppHelper::is_admin() ) { |
|
| 7 | + if ( FrmAppHelper::is_admin() ) { |
|
| 8 | 8 | ?> |
| 9 | 9 | <div id="message" class="frm_updated_message updated"><?php echo wp_kses_post( $message ) ?></div> |
| 10 | 10 | <?php |
@@ -13,23 +13,23 @@ discard block |
||
| 13 | 13 | |
| 14 | 14 | // we need to allow scripts here for javascript in the success message |
| 15 | 15 | echo $message; |
| 16 | - } |
|
| 16 | + } |
|
| 17 | 17 | } |
| 18 | 18 | |
| 19 | 19 | if ( isset($errors) && is_array( $errors ) && ! empty( $errors ) ) { |
| 20 | 20 | |
| 21 | 21 | if ( isset( $form ) && is_object( $form ) ) { |
| 22 | - FrmFormsHelper::get_scroll_js( $form->id ); |
|
| 22 | + FrmFormsHelper::get_scroll_js( $form->id ); |
|
| 23 | 23 | } |
| 24 | 24 | ?> |
| 25 | 25 | <div class="<?php echo esc_attr( FrmFormsHelper::form_error_class() ) ?>"> |
| 26 | 26 | <?php |
| 27 | 27 | $img = ''; |
| 28 | 28 | if ( ! FrmAppHelper::is_admin() ) { |
| 29 | - $img = apply_filters('frm_error_icon', $img); |
|
| 30 | - if ( $img && ! empty($img) ) { |
|
| 31 | - echo '<img src="' . esc_url( $img ) . '" alt="" />'; |
|
| 32 | - } |
|
| 29 | + $img = apply_filters('frm_error_icon', $img); |
|
| 30 | + if ( $img && ! empty($img) ) { |
|
| 31 | + echo '<img src="' . esc_url( $img ) . '" alt="" />'; |
|
| 32 | + } |
|
| 33 | 33 | } |
| 34 | 34 | |
| 35 | 35 | FrmFormsHelper::show_errors( compact( 'img', 'errors', 'form' ) ); |