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 +12 -15 1.6.28 → 1.6.5 View file →
@@ -30,9 +30,8 @@
30 30
31 31 weforms()->scripts->enqueue_backend();
32 32
33 33 $recaptcha = weforms_get_settings( 'recaptcha' );
34 - $humanpresence = get_option( 'wp-human-presence', array() );
35 34
36 35 $wpuf_form_builder = apply_filters( 'wpuf-form-builder-localize-script', [
37 36 'i18n' => $this->i18n(),
38 37 'panel_sections' => weforms()->fields->get_field_groups(),
@@ -64,16 +63,11 @@
64 63 ],
65 64 ],
66 65 ],
67 66 ],
68 - 'integrations' => weforms()->integrations->get_integration_js_settings(),
69 - 'recaptcha_site' => isset( $recaptcha->key ) ? $recaptcha->key : '',
70 - 'recaptcha_secret' => isset( $recaptcha->secret ) ? $recaptcha->secret : '',
71 - 'humanpresence_installed' => (
72 - class_exists( 'HumanPresenceWEFormsIntegration' ) &&
73 - isset( $humanpresence['wp_hp_premium_license'] ) &&
74 - $humanpresence['wp_hp_premium_license'] )
75 - ? 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 : '',
76 70 ] );
77 71
78 72 // mixins
79 73 $wpuf_mixins = [
@@ -94,9 +88,9 @@
94 88 'mixins' => [ 'default' => null ],
95 89 'assetsURL' => WEFORMS_ASSET_URI,
96 90 'shortcodes' => $this->shortcodes(),
97 91 'settings' => [
98 - 'recaptcha' => weforms_get_settings( 'recaptcha' ),
92 + 'recaptcha' => weforms_get_settings( 'recaptcha' ),
99 93 ],
100 94 ] );
101 95
102 96 wp_localize_script( 'weforms-form-builder-mixins', 'wpuf_form_builder', $wpuf_form_builder );
@@ -210,8 +204,16 @@
210 204 */
211 205 public function builder_mixins_script() {
212 206 ?>
213 207 <script>
208 + if (!window.Promise) {
209 + var promise_polyfill = document.createElement('script');
210 + promise_polyfill.setAttribute('src','https://cdn.polyfill.io/v2/polyfill.min.js');
211 + document.head.appendChild(promise_polyfill);
212 + }
213 + </script>
214 +
215 + <script>
214 216 var wpuf_form_builder_mixins = function(mixins, mixin_parent) {
215 217 if (!mixins || !mixins.length) {
216 218 return [];
217 219 }
@@ -336,9 +338,8 @@
336 338
337 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>
338 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>
339 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>
340 - <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>
341 342
342 343 <?php do_action( 'wpuf_contact_form_settings_tab' ); ?>
343 344
344 345 <?php
@@ -360,12 +361,8 @@
360 361 </div>
361 362
362 363 <div id="wpuf-metabox-settings-display" class="tab-content" v-show="isActiveSettingsTab('display')">
363 364 <?php include_once __DIR__ . '/views/display-settings.php'; ?>
364 - </div>
365 -
366 - <div id="wpuf-metabox-settings-humanpresence" class="tab-content" v-show="isActiveSettingsTab('humanpresence')">
367 - <?php include_once __DIR__ . '/views/humanpresence-settings.php'; ?>
368 365 </div>
369 366
370 367 <?php do_action( 'wpuf_contact_form_settings_tab_content' ); ?>
371 368