From 80cd8092ad0a73ac0e0895b5c4af7c0af7fa283a Mon Sep 17 00:00:00 2001 From: Aunshon <32583103+Aunshon@users.noreply.github.com> Date: Fri, 17 Oct 2025 14:20:38 +0600 Subject: [PATCH 1/2] Fix Dokan integration settings and UI components. --- includes/class-dokan-integration.php | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/includes/class-dokan-integration.php b/includes/class-dokan-integration.php index 0570b28..46d254b 100644 --- a/includes/class-dokan-integration.php +++ b/includes/class-dokan-integration.php @@ -18,10 +18,11 @@ public function __construct() { public function add_settings_sections( $sections ) { $sections[] = [ - 'id' => 'weforms_integration', - 'title' => __( 'Vendor Contact Form', 'weforms' ), - 'icon' => 'dashicons-admin-generic', - ]; + 'id' => 'weforms_integration', + 'title' => __( 'Vendor Contact Form', 'weforms' ), + 'settings_title' => __( 'Vendor Contact Form Settings', 'weforms' ), + 'icon_url' => WEFORMS_ASSET_URI . '/images/icon-weforms.png', + ]; return $sections; } @@ -97,7 +98,7 @@ public function dokan_settings( $settings_fields ) { 'name' => 'allow_vendor_contact_form', 'label' => __( 'Vendor Can Contact', 'weforms' ), 'desc' => __( 'Allow Vendors to contact admin from the dashbaord area', 'weforms' ), - 'type' => 'checkbox', + 'type' => 'switcher', 'default' => 'off', ]; From 94917f1e45e4763be22f83ea7bee4caa16cca4f5 Mon Sep 17 00:00:00 2001 From: Aunshon <32583103+Aunshon@users.noreply.github.com> Date: Fri, 17 Oct 2025 14:29:38 +0600 Subject: [PATCH 2/2] Update Dokan integration settings title for consistency. --- includes/class-dokan-integration.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/class-dokan-integration.php b/includes/class-dokan-integration.php index 46d254b..6c253b7 100644 --- a/includes/class-dokan-integration.php +++ b/includes/class-dokan-integration.php @@ -20,7 +20,7 @@ public function add_settings_sections( $sections ) { $sections[] = [ 'id' => 'weforms_integration', 'title' => __( 'Vendor Contact Form', 'weforms' ), - 'settings_title' => __( 'Vendor Contact Form Settings', 'weforms' ), + 'settings_title' => __( 'Vendor Contact Form', 'weforms' ), 'icon_url' => WEFORMS_ASSET_URI . '/images/icon-weforms.png', ];