PluginProbe
Formidable Forms – WordPress Form Builder for Contact Forms, Calculators, Quizzes & More / 6.10
Formidable Forms – WordPress Form Builder for Contact Forms, Calculators, Quizzes & More v6.10
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
← All changes | classes/models/fields/FrmFieldSubmit.php +6 -5 6.276.10 View file →
@@ -2,9 +2,8 @@
2 2 /**
3 3 * Submit field class
4 4 *
5 5 * @since 6.9
6 - *
7 6 * @package Formidable
8 7 */
9 8
10 9 if ( ! defined( 'ABSPATH' ) ) {
@@ -42,13 +41,15 @@
42 41 *
43 42 * @return string
44 43 */
45 44 public function default_html() {
46 - return <<<DEFAULT_HTML
45 + $default_html = <<<DEFAULT_HTML
47 46 <div id="frm_field_[id]_container" class="frm_form_field form-field [required_class][error_class]">
48 47 [input]
49 48 </div>
50 49 DEFAULT_HTML;
50 +
51 + return $default_html;
51 52 }
52 53
53 54 /**
54 55 * Sets settings for this field type.
@@ -55,9 +56,9 @@
55 56 *
56 57 * @return array
57 58 */
58 59 protected function field_settings_for_type() {
59 - return array(
60 + $settings = array(
60 61 'required' => false,
61 62 'visibility' => false,
62 63 'label_position' => false,
63 64 'options' => false,
@@ -64,8 +65,10 @@
64 65 'default' => false,
65 66 'description' => false,
66 67 'logic' => true,
67 68 );
69 +
70 + return $settings;
68 71 }
69 72
70 73 /**
71 74 * Includes form builder file.
@@ -87,14 +90,12 @@
87 90 * Gets frontend field input.
88 91 *
89 92 * @param array $args Args.
90 93 * @param array $shortcode_atts Shortcode atts.
91 - *
92 94 * @return string
93 95 */
94 96 public function front_field_input( $args, $shortcode_atts ) {
95 97 $form = $args['form'];
96 -
97 98 if ( ! FrmForm::show_submit( $form ) ) {
98 99 return '';
99 100 }
100 101