PluginProbe
Formidable Forms – WordPress Form Builder for Contact Forms, Calculators, Quizzes & More / 6.32.1
Formidable Forms – WordPress Form Builder for Contact Forms, Calculators, Quizzes & More v6.32.1
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 / new.php

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

36 lines 1.6 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 FrmAntiSpam::maybe_init( $form->id );
7 ?>
8 <div class="frm_forms <?php echo esc_attr( FrmFormsHelper::get_form_style_class( $values ) ); ?>" id="frm_form_<?php echo esc_attr( $form->id ); ?>_container" <?php echo wp_strip_all_tags( apply_filters( 'frm_form_div_attributes', '', $form ) ); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped ?>>
9 <?php if ( ! isset( $include_form_tag ) || $include_form_tag ) { ?>
10 <form enctype="<?php echo esc_attr( apply_filters( 'frm_form_enctype', 'multipart/form-data', $form ) ); ?>" method="post" class="frm-show-form <?php do_action( 'frm_form_classes', $form ); ?>" id="form_<?php echo esc_attr( $form->form_key ); ?>" <?php echo wp_strip_all_tags( apply_filters( 'frm_form_attributes', '', $form ) ); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped ?>>
11 <?php } else { ?>
12 <div id="form_<?php echo esc_attr( $form->form_key ); ?>" class="frm-show-form <?php do_action( 'frm_form_classes', $form ); ?>" >
13 <?php
14 }
15
16 $message_placement = $message_placement ?? 'before';
17
18 if ( ! in_array( $message_placement, array( 'after', 'submit' ), true ) ) {
19 include FrmAppHelper::plugin_path() . '/classes/views/frm-entries/errors.php';
20 }
21
22 $form_action = 'create';
23 require FrmAppHelper::plugin_path() . '/classes/views/frm-entries/form.php';
24
25 if ( $message_placement === 'after' ) {
26 include FrmAppHelper::plugin_path() . '/classes/views/frm-entries/errors.php';
27 }
28
29 if ( ! isset( $include_form_tag ) || $include_form_tag ) {
30 ?>
31 </form>
32 <?php } else { ?>
33 </div>
34 <?php } ?>
35 </div>
36