PluginProbe
weForms – Easy Drag & Drop Contact Form Builder For WordPress / 1.6.5
weForms – Easy Drag & Drop Contact Form Builder For WordPress v1.6.5
1.6.7 1.6.8 1.6.9 1.6.12 1.6.13 1.6.14 1.6.15 1.6.16 1.6.17 1.6.18 1.6.19 1.6.2 1.6.20 1.6.21 1.6.22 1.6.23 1.6.24 1.6.25 1.6.26 1.6.27 1.6.28 1.6.3 1.6.4 1.6.5 1.6.6 All 74 releases
← All changes | includes/admin/class-form-builder-assets.php +4 -16 1.6.61.6.5 View file →
@@ -9,9 +9,8 @@
9 9 $this->init_actions();
10 10 }
11 11
12 12 public function init_actions() {
13 - add_action( 'in_admin_header', [ $this, 'remove_admin_notices' ] );
14 13 add_action( 'admin_enqueue_scripts', [ $this, 'builder_enqueue_scripts' ], 2000 );
15 14 add_action( 'admin_print_scripts', [ $this, 'builder_mixins_script' ] );
16 15 add_action( 'admin_footer', [ $this, 'admin_footer_js_templates' ] );
17 16
@@ -31,9 +30,8 @@
31 30
32 31 weforms()->scripts->enqueue_backend();
33 32
34 33 $recaptcha = weforms_get_settings( 'recaptcha' );
35 - $humanpresence = get_option( 'wp-human-presence', array() );
36 34
37 35 $wpuf_form_builder = apply_filters( 'wpuf-form-builder-localize-script', [
38 36 'i18n' => $this->i18n(),
39 37 'panel_sections' => weforms()->fields->get_field_groups(),
@@ -65,16 +63,11 @@
65 63 ],
66 64 ],
67 65 ],
68 66 ],
69 - 'integrations' => weforms()->integrations->get_integration_js_settings(),
70 - 'recaptcha_site' => isset( $recaptcha->key ) ? $recaptcha->key : '',
71 - 'recaptcha_secret' => isset( $recaptcha->secret ) ? $recaptcha->secret : '',
72 - 'humanpresence_installed' => (
73 - class_exists( 'HumanPresenceWEFormsIntegration' ) &&
74 - isset( $humanpresence['wp_hp_premium_license'] ) &&
75 - $humanpresence['wp_hp_premium_license'] )
76 - ? true : false,
67 + 'integrations' => weforms()->integrations->get_integration_js_settings(),
68 + 'recaptcha_site' => isset( $recaptcha->key ) ? $recaptcha->key : '',
69 + 'recaptcha_secret' => isset( $recaptcha->secret ) ? $recaptcha->secret : '',
77 70 ] );
78 71
79 72 // mixins
80 73 $wpuf_mixins = [
@@ -95,9 +88,9 @@
95 88 'mixins' => [ 'default' => null ],
96 89 'assetsURL' => WEFORMS_ASSET_URI,
97 90 'shortcodes' => $this->shortcodes(),
98 91 'settings' => [
99 - 'recaptcha' => weforms_get_settings( 'recaptcha' ),
92 + 'recaptcha' => weforms_get_settings( 'recaptcha' ),
100 93 ],
101 94 ] );
102 95
103 96 wp_localize_script( 'weforms-form-builder-mixins', 'wpuf_form_builder', $wpuf_form_builder );
@@ -345,9 +338,8 @@
345 338
346 339 <a href="#" :class="['nav-tab', isActiveSettingsTab( 'form' ) ? 'nav-tab-active' : '']" v-on:click.prevent="makeActiveSettingsTab( 'form' )" class="nav-tab"><?php esc_html_e( 'Form Settings', 'weforms' ); ?></a>
347 340 <a href="#" :class="['nav-tab', isActiveSettingsTab( 'restriction' ) ? 'nav-tab-active' : '']" v-on:click.prevent="makeActiveSettingsTab( 'restriction' )" class="nav-tab"><?php esc_html_e( 'Submission Restriction', 'weforms' ); ?></a>
348 341 <a href="#" :class="['nav-tab', isActiveSettingsTab( 'display' ) ? 'nav-tab-active' : '']" v-on:click.prevent="makeActiveSettingsTab( 'display' )" class="nav-tab"><?php esc_html_e( 'Display Settings', 'weforms' ); ?></a>
349 - <a href="#" :class="['nav-tab', isActiveSettingsTab( 'humanpresence' ) ? 'nav-tab-active' : '']" v-on:click.prevent="makeActiveSettingsTab( 'humanpresence' )" class="nav-tab"><i aria-hidden="true" class="fa fa-humanpresence"></i> <?php esc_html_e( 'HP Anti-Spam', 'weforms' ); ?></a>
350 342
351 343 <?php do_action( 'wpuf_contact_form_settings_tab' ); ?>
352 344
353 345 <?php
@@ -369,12 +361,8 @@
369 361 </div>
370 362
371 363 <div id="wpuf-metabox-settings-display" class="tab-content" v-show="isActiveSettingsTab('display')">
372 364 <?php include_once __DIR__ . '/views/display-settings.php'; ?>
373 - </div>
374 -
375 - <div id="wpuf-metabox-settings-humanpresence" class="tab-content" v-show="isActiveSettingsTab('humanpresence')">
376 - <?php include_once __DIR__ . '/views/humanpresence-settings.php'; ?>
377 365 </div>
378 366
379 367 <?php do_action( 'wpuf_contact_form_settings_tab_content' ); ?>
380 368