PluginProbe
Formidable Forms – WordPress Form Builder for Contact Forms, Calculators, Quizzes & More / 6.23
Formidable Forms – WordPress Form Builder for Contact Forms, Calculators, Quizzes & More v6.23
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/controllers/FrmSettingsController.php +8 -42 6.256.23 View file →
@@ -58,21 +58,21 @@
58 58 */
59 59 private static function get_settings_tabs() {
60 60 $sections = array(
61 61 'general' => array(
62 - 'class' => self::class,
62 + 'class' => __CLASS__,
63 63 'function' => 'general_settings',
64 64 'name' => __( 'General Settings', 'formidable' ),
65 65 'icon' => 'frm_icon_font frm_settings_icon',
66 66 ),
67 67 'messages' => array(
68 - 'class' => self::class,
68 + 'class' => __CLASS__,
69 69 'function' => 'message_settings',
70 70 'name' => __( 'Message Defaults', 'formidable' ),
71 71 'icon' => 'frm_icon_font frm_stamp_icon',
72 72 ),
73 73 'permissions' => array(
74 - 'class' => self::class,
74 + 'class' => __CLASS__,
75 75 'function' => 'permission_settings',
76 76 'name' => __( 'Permissions', 'formidable' ),
77 77 'icon' => 'frm_icon_font frm_lock_icon',
78 78 ),
@@ -78,9 +78,9 @@
78 78 ),
79 79 'payments' => array(
80 80 'name' => __( 'Payments', 'formidable' ),
81 81 'icon' => 'frm_icon_font frm_simple_cc_icon',
82 - 'class' => self::class,
82 + 'class' => __CLASS__,
83 83 'function' => 'payments_settings',
84 84 ),
85 85 'custom_css' => array(
86 86 'class' => 'FrmStylesController',
@@ -94,19 +94,13 @@
94 94 'name' => __( 'Manage Styles', 'formidable' ),
95 95 'icon' => 'frm_icon_font frm_pallet_icon',
96 96 ),
97 97 'captcha' => array(
98 - 'class' => self::class,
98 + 'class' => __CLASS__,
99 99 'function' => 'captcha_settings',
100 100 'name' => __( 'Captcha/Spam', 'formidable' ),
101 101 'icon' => 'frm_icon_font frm_shield_check_icon',
102 102 ),
103 - 'email' => array(
104 - 'class' => self::class,
105 - 'function' => 'email_settings',
106 - 'name' => __( 'Email', 'formidable' ),
107 - 'icon' => 'frm_icon_font frm_email_icon',
108 - ),
109 103 'white_label' => array(
110 104 'name' => __( 'White Labeling', 'formidable' ),
111 105 'icon' => 'frm_icon_font frm_ghost_icon',
112 106 'html_class' => 'frm_show_upgrade_tab frm_noallow',
@@ -158,9 +152,9 @@
158 152
159 153 $sections['misc'] = array(
160 154 'name' => __( 'Miscellaneous', 'formidable' ),
161 155 'icon' => 'frm_icon_font frm_shuffle_icon',
162 - 'class' => self::class,
156 + 'class' => __CLASS__,
163 157 'function' => 'misc_settings',
164 158 );
165 159
166 160 foreach ( $sections as $key => $section ) {
@@ -208,9 +202,9 @@
208 202 unset( $sections[ $key ] );
209 203 }
210 204 }
211 205
212 - uksort( self::$removed_payments_sections, array( self::class, 'payment_sections_sort_callback' ) );
206 + uksort( self::$removed_payments_sections, array( __CLASS__, 'payment_sections_sort_callback' ) );
213 207 }
214 208
215 209 /**
216 210 * Sort the payments sections (PayPal, Square, Stripe, Authorize.Net)
@@ -245,9 +239,9 @@
245 239
246 240 if ( isset( $section['class'] ) ) {
247 241 call_user_func( array( $section['class'], $section['function'] ) );
248 242 } else {
249 - call_user_func( ( $section['function'] ?? $section ) );
243 + call_user_func( ( isset( $section['function'] ) ? $section['function'] : $section ) );
250 244 }
251 245 wp_die();
252 246 }
253 247
@@ -302,19 +296,8 @@
302 296 include FrmAppHelper::plugin_path() . '/classes/views/frm-settings/captcha/captcha.php';
303 297 }
304 298
305 299 /**
306 - * Shows email settings.
307 - *
308 - * @since 6.25
309 - */
310 - public static function email_settings() {
311 - $frm_settings = FrmAppHelper::get_settings();
312 -
313 - include FrmAppHelper::plugin_path() . '/classes/views/frm-settings/email/email-styles.php';
314 - }
315 -
316 - /**
317 300 * @since 4.0
318 301 */
319 302 public static function permission_settings() {
320 303 $frm_settings = FrmAppHelper::get_settings();
@@ -476,23 +459,6 @@
476 459 );
477 460 }
478 461
479 462 wp_send_json( $results );
480 - }
481 -
482 - /**
483 - * Shows a fake color picker.
484 - *
485 - * @since 6.25
486 - *
487 - * @param string $color Color value.
488 - */
489 - public static function fake_color_picker( $color ) {
490 - ?>
491 - <div class="wp-picker-container">
492 - <button type="button" class="button wp-color-result" aria-expanded="false" aria-disabled="true" tabindex="-1" style="background-color:<?php echo esc_attr( $color ); ?>;">
493 - <span class="wp-color-result-text" style="color:#a7aaad;"><?php esc_html_e( 'Select Color', 'formidable' ); ?></span>
494 - </button>
495 - </div>
496 - <?php
497 463 }
498 464 }