PluginProbe
weForms – Easy Drag & Drop Contact Form Builder For WordPress / 1.6.1
weForms – Easy Drag & Drop Contact Form Builder For WordPress v1.6.1
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 +21 -15 1.6.61.6.1 View file →
@@ -25,8 +25,25 @@
25 25
26 26 do_action( 'weforms_form_builder_init' );
27 27 }
28 28
29 + /**
30 + * Remove all kinds of admin notices
31 + *
32 + * Since we don't have much space left on top of the page,
33 + * we have to remove all kinds of admin notices
34 + *
35 + * @since 1.2.6
36 + *
37 + * @return void
38 + */
39 + public function remove_admin_notices() {
40 + remove_all_actions( 'network_admin_notices' );
41 + remove_all_actions( 'user_admin_notices' );
42 + remove_all_actions( 'admin_notices' );
43 + remove_all_actions( 'all_admin_notices' );
44 + }
45 +
29 46 public function builder_enqueue_scripts() {
30 47 $prefix = ( defined( 'SCRIPT_DEBUG' ) && SCRIPT_DEBUG ) ? '' : '.min';
31 48
32 49 weforms()->scripts->enqueue_backend();
@@ -31,9 +48,8 @@
31 48
32 49 weforms()->scripts->enqueue_backend();
33 50
34 51 $recaptcha = weforms_get_settings( 'recaptcha' );
35 - $humanpresence = get_option( 'wp-human-presence', array() );
36 52
37 53 $wpuf_form_builder = apply_filters( 'wpuf-form-builder-localize-script', [
38 54 'i18n' => $this->i18n(),
39 55 'panel_sections' => weforms()->fields->get_field_groups(),
@@ -65,16 +81,11 @@
65 81 ],
66 82 ],
67 83 ],
68 84 ],
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,
85 + 'integrations' => weforms()->integrations->get_integration_js_settings(),
86 + 'recaptcha_site' => isset( $recaptcha->key ) ? $recaptcha->key : '',
87 + 'recaptcha_secret' => isset( $recaptcha->secret ) ? $recaptcha->secret : '',
77 88 ] );
78 89
79 90 // mixins
80 91 $wpuf_mixins = [
@@ -95,9 +106,9 @@
95 106 'mixins' => [ 'default' => null ],
96 107 'assetsURL' => WEFORMS_ASSET_URI,
97 108 'shortcodes' => $this->shortcodes(),
98 109 'settings' => [
99 - 'recaptcha' => weforms_get_settings( 'recaptcha' ),
110 + 'recaptcha' => weforms_get_settings( 'recaptcha' ),
100 111 ],
101 112 ] );
102 113
103 114 wp_localize_script( 'weforms-form-builder-mixins', 'wpuf_form_builder', $wpuf_form_builder );
@@ -345,9 +356,8 @@
345 356
346 357 <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 358 <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 359 <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 360
351 361 <?php do_action( 'wpuf_contact_form_settings_tab' ); ?>
352 362
353 363 <?php
@@ -369,12 +379,8 @@
369 379 </div>
370 380
371 381 <div id="wpuf-metabox-settings-display" class="tab-content" v-show="isActiveSettingsTab('display')">
372 382 <?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 383 </div>
378 384
379 385 <?php do_action( 'wpuf_contact_form_settings_tab_content' ); ?>
380 386