PluginProbe
Formidable Forms – WordPress Form Builder for Contact Forms, Calculators, Quizzes & More / 6.1
Formidable Forms – WordPress Form Builder for Contact Forms, Calculators, Quizzes & More v6.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
← All changes | classes/controllers/FrmSettingsController.php +6 -34 6.56.1 View file →
@@ -11,17 +11,10 @@
11 11
12 12 add_submenu_page( 'formidable', 'Formidable | ' . __( 'Global Settings', 'formidable' ), __( 'Global Settings', 'formidable' ), 'frm_change_settings', 'formidable-settings', 'FrmSettingsController::route' );
13 13 }
14 14
15 - /**
16 - * Include license box template on demand.
17 - *
18 - * @return void
19 - */
20 15 public static function license_box() {
21 - if ( ! current_user_can( 'activate_plugins' ) ) {
22 - return;
23 - }
16 + $a = FrmAppHelper::simple_get( 't', 'sanitize_title', 'general_settings' );
24 17 include( FrmAppHelper::plugin_path() . '/classes/views/frm-settings/license_box.php' );
25 18 }
26 19
27 20 public static function display_form( $errors = array(), $message = '' ) {
@@ -184,38 +177,17 @@
184 177 wp_die();
185 178 }
186 179
187 180 /**
188 - * Render the general global settings section.
189 - *
190 181 * @since 4.0
191 - *
192 - * @return void
193 182 */
194 183 public static function general_settings() {
195 184 $frm_settings = FrmAppHelper::get_settings();
196 - $uploads = wp_upload_dir();
197 - $target_path = $uploads['basedir'] . '/formidable/css';
198 185
199 - include FrmAppHelper::plugin_path() . '/classes/views/frm-settings/general.php';
200 - }
186 + $uploads = wp_upload_dir();
187 + $target_path = $uploads['basedir'] . '/formidable/css';
201 188
202 - /**
203 - * Render the global currency selector if Pro is up to date.
204 - *
205 - * @param FrmSettings $frm_settings
206 - * @param string $more_html
207 - * @return void
208 - */
209 - public static function maybe_render_currency_selector( $frm_settings, $more_html ) {
210 - if ( false !== strpos( $more_html, 'id="frm_currency"' ) ) {
211 - // Avoid rendering the Currency setting if it gets rendered from the frm_settings_form hook.
212 - // This is for backward compatibility. If Pro is outdated there won't be two currency dropdowns.
213 - return;
214 - }
215 -
216 - $currencies = FrmCurrencyHelper::get_currencies();
217 - include FrmAppHelper::plugin_path() . '/classes/views/frm-settings/_currency.php';
189 + include( FrmAppHelper::plugin_path() . '/classes/views/frm-settings/general.php' );
218 190 }
219 191
220 192 /**
221 193 * @since 4.0
@@ -401,11 +373,11 @@
401 373 wp_send_json( $results );
402 374 }
403 375
404 376 /**
405 - * @deprecated 6.0 use FrmSettingsController::captcha_settings().
377 + * @deprecated x.x use FrmSettingsController::captcha_settings().
406 378 */
407 379 public static function recaptcha_settings() {
408 - _deprecated_function( __FUNCTION__, '6.0', 'FrmSettingsController::captcha_settings()' );
380 + _deprecated_function( __FUNCTION__, 'x.x', 'FrmSettingsController::captcha_settings()' );
409 381 self::captcha_settings();
410 382 }
411 383 }