Skip to content

Commit 56eeabe

Browse files
committed
restrict weforms controls
1 parent ea49c5e commit 56eeabe

File tree

2 files changed

+10
-7
lines changed

2 files changed

+10
-7
lines changed

src/assets/js/front-end.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -288,7 +288,7 @@ var BoldGrid = BoldGrid || {};
288288
forms: function( hasFloat = false ) {
289289
var wcCheckoutLabels,
290290
wcRequiredLabels = [];
291-
let selectors = '.comment-form-rating #rating, .widget_categories .postform, .quantity .qty',
291+
let selectors = '.comment-form-rating #rating, .widget_categories .postform, .quantity .qty, [data-style=wpuf-style]',
292292
floatLabelsOn = true;
293293

294294
if ( Array.isArray( window.floatLabelsOn ) && '' === window.floatLabelsOn[0] ) {

src/includes/configs/customizer/sections.config.php

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -21,12 +21,6 @@
2121
'priority' => 2,
2222
'panel' => 'bgtfw_buttons_panel',
2323
),
24-
'bgtfw_weforms' => array(
25-
'title' => __( 'WeForms', 'bgtfw' ),
26-
'priority' => 10,
27-
'icon' => 'icon-weforms-settings',
28-
'panel' => 'bgtfw_design_panel',
29-
),
3024
'bgtfw_layout_blog' => array(
3125
'title' => __( 'Blog', 'bgtfw' ),
3226
'panel' => 'bgtfw_layout',
@@ -573,6 +567,15 @@
573567
// End: Generic Blog Design Controls.
574568
);
575569

570+
if ( is_plugin_active( 'weforms/weforms.php' ) ) {
571+
$sections_array['bgtfw_weforms'] = array(
572+
'title' => __( 'WeForms', 'bgtfw' ),
573+
'priority' => 10,
574+
'icon' => 'icon-weforms-settings',
575+
'panel' => 'bgtfw_design_panel',
576+
);
577+
}
578+
576579
/**
577580
* Check if WooCommerce is activated.
578581
*/

0 commit comments

Comments
 (0)