PluginProbe
Formidable Forms – WordPress Form Builder for Contact Forms, Calculators, Quizzes & More / 6.28
Formidable Forms – WordPress Form Builder for Contact Forms, Calculators, Quizzes & More v6.28
6.35 6.34 6.33.1 6.33 6.32.1 6.32 6.31 6.25 6.25.1 6.26 6.26.1 6.27 6.28 6.29 6.3 6.3.1 6.3.2 6.30 6.4 6.4.1 6.4.2 6.5 6.5.1 6.5.2 6.5.3 All 141 releases
formidable / classes / views / frm-entries / errors.php

errors.php in Formidable Forms – WordPress Form Builder for Contact Forms, Calculators, Quizzes & More 6.28, at classes/views/frm-entries/errors.php

54 lines 1.3 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 if ( ! defined( 'ABSPATH' ) ) {
3 die( 'You are not allowed to call this page directly.' );
4 }
5
6 if ( isset( $include_extra_container ) ) { ?>
7 <div class="<?php echo esc_attr( $include_extra_container ); ?>" id="frm_form_<?php echo esc_attr( $form->id ); ?>_container">
8 <?php
9 }
10
11 // phpcs:ignore Universal.Operators.StrictComparisons
12 if ( isset( $message ) && $message != '' ) {
13 if ( FrmAppHelper::is_admin() ) {
14 ?>
15 <div id="message" class="frm_updated_message" role="status"><?php echo wp_kses_post( $message ); ?></div>
16 <?php
17 } else {
18 FrmFormsHelper::maybe_get_scroll_js( $form->id );
19
20 // We need to allow scripts here for javascript in the success message
21 echo FrmAppHelper::maybe_kses( $message ); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped
22 }
23 }
24
25 if ( ! empty( $errors ) && is_array( $errors ) ) {
26 if ( isset( $form ) && is_object( $form ) ) {
27 FrmFormsHelper::get_scroll_js( $form->id );
28 }
29 ?>
30 <div class="<?php echo esc_attr( FrmFormsHelper::form_error_class() ); ?>" role="alert">
31 <?php
32 $img = '';
33
34 if ( ! FrmAppHelper::is_admin() ) {
35 $img = apply_filters( 'frm_error_icon', $img );
36
37 if ( $img ) {
38 echo '<img src="' . esc_url( $img ) . '" alt="" />';
39 }
40 }
41
42 FrmFormsHelper::show_errors( compact( 'img', 'errors', 'form' ) );
43
44 ?>
45 </div>
46 <?php
47 }//end if
48
49 if ( isset( $include_extra_container ) ) {
50 ?>
51 </div>
52 <?php
53 }
54