PluginProbe
Formidable Forms – WordPress Form Builder for Contact Forms, Calculators, Quizzes & More / 3.06.06
Formidable Forms – WordPress Form Builder for Contact Forms, Calculators, Quizzes & More v3.06.06
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/FrmFieldRadio.php +3 -39 6.5.33.06.06 View file →
@@ -1,8 +1,5 @@
1 1 <?php
2 -if ( ! defined( 'ABSPATH' ) ) {
3 - die( 'You are not allowed to call this page directly.' );
4 -}
5 2
6 3 /**
7 4 * @since 3.0
8 5 */
@@ -27,47 +24,29 @@
27 24 * @since 3.06.01
28 25 */
29 26 protected $has_for_label = false;
30 27
31 - /**
32 - * @var bool
33 - */
34 - protected $array_allowed = false;
35 -
36 28 protected function input_html() {
37 29 return $this->multiple_input_html();
38 30 }
39 31
40 32 protected function include_form_builder_file() {
41 - return $this->include_front_form_file();
33 + return FrmAppHelper::plugin_path() . '/classes/views/frm-fields/back-end/field-multiple.php';
42 34 }
43 35
44 - /**
45 - * Get the type of field being displayed.
46 - *
47 - * @since 4.02.01
48 - * @return array
49 - */
50 - public function displayed_field_type( $field ) {
36 + protected function field_settings_for_type() {
51 37 return array(
52 - $this->type => true,
38 + 'default_blank' => false,
53 39 );
54 40 }
55 41
56 - /**
57 - * @return array
58 - */
59 42 protected function extra_field_opts() {
60 43 $form_id = $this->get_field_column( 'form_id' );
61 -
62 44 return array(
63 45 'align' => FrmStylesController::get_style_val( 'radio_align', ( empty( $form_id ) ? 'default' : $form_id ) ),
64 46 );
65 47 }
66 48
67 - /**
68 - * @return string[]
69 - */
70 49 protected function new_field_settings() {
71 50 return array(
72 51 'options' => serialize(
73 52 array(
@@ -77,27 +56,12 @@
77 56 ),
78 57 );
79 58 }
80 59
81 - /**
82 - * @since 4.06
83 - *
84 - * @return void
85 - */
86 - protected function show_priority_field_choices( $args = array() ) {
87 - include FrmAppHelper::plugin_path() . '/classes/views/frm-fields/back-end/radio-images.php';
88 - }
89 -
90 - /**
91 - * @return string
92 - */
93 60 protected function include_front_form_file() {
94 61 return FrmAppHelper::plugin_path() . '/classes/views/frm-fields/front-end/radio-field.php';
95 62 }
96 63
97 - /**
98 - * @return bool
99 - */
100 64 protected function show_readonly_hidden() {
101 65 return true;
102 66 }
103 67 }