PluginProbe
Formidable Forms – WordPress Form Builder for Contact Forms, Calculators, Quizzes & More / 6.12
Formidable Forms – WordPress Form Builder for Contact Forms, Calculators, Quizzes & More v6.12
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/helpers/FrmOnboardingWizardHelper.php +3 -21 6.296.12 View file →
@@ -22,9 +22,8 @@
22 22 * @since 6.9
23 23 *
24 24 * @param string $addon_key The key of addon.
25 25 * @param array $addon The array of addon's information.
26 - *
27 26 * @return void
28 27 */
29 28 public static function add_addon_label_attributes( $addon_key, $addon ) {
30 29 $id = 'frm-onboarding-' . $addon_key . '-addon';
@@ -36,25 +35,18 @@
36 35
37 36 if ( ! empty( $addon['is-checked'] ) ) {
38 37 $attributes['class'] .= ' frm-checked';
39 38 }
40 -
41 39 if ( ! empty( $addon['is-disabled'] ) ) {
42 40 $attributes['class'] .= ' frm-disabled';
43 41 }
44 -
45 42 if ( ! empty( $addon['rel'] ) ) {
46 43 $attributes['rel'] = $addon['rel'];
47 44 }
48 -
49 45 if ( ! empty( $addon['is-vendor'] ) ) {
50 46 $attributes['data-is-vendor'] = 'true';
51 47 }
52 48
53 - if ( ! empty( $addon['is-installed'] ) ) {
54 - $attributes['data-is-installed'] = 'true';
55 - }
56 -
57 49 FrmAppHelper::array_to_html_params( $attributes, true );
58 50 }
59 51
60 52 /**
@@ -63,9 +55,8 @@
63 55 * @since 6.9
64 56 *
65 57 * @param string $addon_key The key of addon.
66 58 * @param array $addon The array of addon's information.
67 - *
68 59 * @return void
69 60 */
70 61 public static function add_addon_input_attributes( $addon_key, $addon ) {
71 62 $id = 'frm-onboarding-' . $addon_key . '-addon';
@@ -77,9 +68,8 @@
77 68
78 69 if ( ! empty( $addon['is-checked'] ) ) {
79 70 $attributes['checked'] = 'checked';
80 71 }
81 -
82 72 if ( ! empty( $addon['is-disabled'] ) ) {
83 73 $attributes['disabled'] = 'disabled';
84 74 }
85 75
@@ -91,21 +81,19 @@
91 81 *
92 82 * @since 6.9
93 83 *
94 84 * @param array $args
95 - *
96 85 * @return void
97 86 */
98 87 public static function print_footer( $args = array() ) {
99 88 $defaults = array(
100 89 'footer-class' => '',
101 - 'display-back-button' => false,
90 + 'display-back-button' => true,
102 91 // Primary Button Args.
103 92 'primary-button-text' => esc_html__( 'Next Step', 'formidable' ),
104 93 'primary-button-class' => '',
105 94 'primary-button-href' => '#',
106 95 'primary-button-role' => 'button',
107 - 'primary-button-with-icon' => false,
108 96 // Secondary Button Args.
109 97 'secondary-button-text' => esc_html__( 'Skip', 'formidable' ),
110 98 'secondary-button-class' => '',
111 99 'secondary-button-href' => '#',
@@ -117,18 +105,15 @@
117 105 // Set the primary button attributes.
118 106 $primary_button_attributes = array(
119 107 'href' => $args['primary-button-href'],
120 108 );
121 - $primary_button_attributes['class'] = trim( 'button button-primary frm-button-primary frm-sharp frm_large ' . $args['primary-button-class'] );
122 -
109 + $primary_button_attributes['class'] = trim( 'button button-primary frm-button-primary ' . $args['primary-button-class'] );
123 110 if ( ! empty( $args['primary-button-id'] ) ) {
124 111 $primary_button_attributes['id'] = $args['primary-button-id'];
125 112 }
126 -
127 113 if ( ! empty( $args['primary-button-plugin'] ) ) {
128 114 $primary_button_attributes['data-plugin'] = $args['primary-button-plugin'];
129 115 }
130 -
131 116 if ( ! empty( $args['primary-button-role'] ) ) {
132 117 $primary_button_attributes['role'] = $args['primary-button-role'];
133 118 }
134 119
@@ -135,18 +120,15 @@
135 120 // Set the secondary button attributes.
136 121 $secondary_button_attributes = array(
137 122 'href' => $args['secondary-button-href'],
138 123 );
139 - $secondary_button_attributes['class'] = trim( 'button button-secondary frm-button-secondary frm-sharp frm_large ' . $args['secondary-button-class'] );
140 -
124 + $secondary_button_attributes['class'] = trim( 'button button-secondary frm-button-secondary ' . $args['secondary-button-class'] );
141 125 if ( $args['secondary-button-skip-step'] ) {
142 126 $secondary_button_attributes['class'] .= ' frm-onboarding-skip-step';
143 127 }
144 -
145 128 if ( ! empty( $args['secondary-button-id'] ) ) {
146 129 $secondary_button_attributes['id'] = $args['secondary-button-id'];
147 130 }
148 -
149 131 if ( ! empty( $args['secondary-button-role'] ) ) {
150 132 $secondary_button_attributes['role'] = $args['secondary-button-role'];
151 133 }
152 134