From 12298039f9003e6b182ce9573ccc4db17ad542f9 Mon Sep 17 00:00:00 2001 From: Niraj Chaudhary Date: Mon, 7 Oct 2024 14:12:58 +0545 Subject: [PATCH 1/5] Adde - User registration addon into module setup --- .../sections/all_extensions.json | 34 +++++++++---------- 1 file changed, 17 insertions(+), 17 deletions(-) diff --git a/assets/extensions-json/sections/all_extensions.json b/assets/extensions-json/sections/all_extensions.json index 356ae1224..25a48df25 100644 --- a/assets/extensions-json/sections/all_extensions.json +++ b/assets/extensions-json/sections/all_extensions.json @@ -135,23 +135,6 @@ "demo_video_url": "pcwPjCt7N2I", "popular_rank": 8 }, - { - "title": "User Registration", - "slug": "everest-forms-user-registration", - "name": "Everest Forms User Registration", - "image": "extensions-json/sections/images/user-registration.png", - "excerpt": "Allows you to create a custom WordPress user registration form instantly in few simple steps. You can add or remove input fields as per the style of your registration using this feature.", - "link": "https://docs.everestforms.net/docs/user-registration/?utm_source=dashboard-all-feature&utm_medium=card-documentation-link", - "released_date": "16/07/2019", - "plan": [ - "personal", - "agency", - "themegrill agency" - ], - "setting_url": "", - "demo_video_url": "MEyuznG2Tok", - "popular_rank": 12 - }, { "title": "Google Sheets", "slug": "everest-forms-google-sheets", @@ -869,6 +852,23 @@ "setting_url": "", "demo_video_url": "WCsHC7NQ2QQ", "popular_rank": 16 + }, + { + "title": "User Registration", + "slug": "everest-forms-user-registration", + "name": "Everest Forms User Registration", + "image": "extensions-json/sections/images/user-registration.png", + "excerpt": "Allows you to create a custom WordPress user registration form instantly in few simple steps. You can add or remove input fields as per the style of your registration using this feature.", + "link": "https://docs.everestforms.net/docs/user-registration/?utm_source=dashboard-all-feature&utm_medium=card-documentation-link", + "released_date": "16/07/2019", + "plan": [ + "personal", + "agency", + "themegrill agency" + ], + "setting_url": "", + "demo_video_url": "MEyuznG2Tok", + "popular_rank": 12 } ] } From 177fcf8783e3360f59b33fcbaa95a6411c3ee548 Mon Sep 17 00:00:00 2001 From: Niraj Chaudhary Date: Wed, 6 Nov 2024 14:47:32 +0545 Subject: [PATCH 2/5] Fix - Setting url for User Registration in Dashboard --- assets/extensions-json/sections/all_extensions.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/assets/extensions-json/sections/all_extensions.json b/assets/extensions-json/sections/all_extensions.json index 25a48df25..2238e80a7 100644 --- a/assets/extensions-json/sections/all_extensions.json +++ b/assets/extensions-json/sections/all_extensions.json @@ -866,7 +866,7 @@ "agency", "themegrill agency" ], - "setting_url": "", + "setting_url": "admin.php?page=evf-settings&tab=user_registration", "demo_video_url": "MEyuznG2Tok", "popular_rank": 12 } From 68c6294125c13142c4b24c1b2b0389758a4afbba Mon Sep 17 00:00:00 2001 From: Niraj Chaudhary Date: Thu, 7 Nov 2024 10:38:04 +0545 Subject: [PATCH 3/5] Added - Only show Title in Settings tab --- .../settings-icons/user_registration.svg | 3 +++ includes/admin/class-evf-admin-settings.php | 18 ++++++++++++++++-- 2 files changed, 19 insertions(+), 2 deletions(-) create mode 100644 assets/images/settings-icons/user_registration.svg diff --git a/assets/images/settings-icons/user_registration.svg b/assets/images/settings-icons/user_registration.svg new file mode 100644 index 000000000..cc01ff8ef --- /dev/null +++ b/assets/images/settings-icons/user_registration.svg @@ -0,0 +1,3 @@ + + + diff --git a/includes/admin/class-evf-admin-settings.php b/includes/admin/class-evf-admin-settings.php index 7adf695c9..030aaf717 100644 --- a/includes/admin/class-evf-admin-settings.php +++ b/includes/admin/class-evf-admin-settings.php @@ -260,9 +260,23 @@ public static function output_fields( $options ) { echo '
'; - foreach ( $tabs_array as $icon_key => $icon_value ) { - echo '' . evf_file_get_contents( '/assets/images/settings-icons/' . $icon_key . '.svg' ) . ''; //phpcs:ignore + + // For now icon is ignored. + if( isset( $value['image_name'] ) && ! empty( $value['image_name'] ) ) { + + /** + * Icon for Settings tab with different icon. + * + * @since xx.xx.xx + */ + + // echo '' . evf_file_get_contents( '/assets/images/settings-icons/' . $value['image_name'] . '.svg' ) . ''; + }else{ + foreach ( $tabs_array as $icon_key => $icon_value ) { + echo '' . evf_file_get_contents( '/assets/images/settings-icons/' . $icon_key . '.svg' ) . ''; //phpcs:ignore + } } + echo '

' . esc_html( $value['title'] ) . '

'; From 8bc54576b23a7d580cdaea5b2ee1eeda3103a9cc Mon Sep 17 00:00:00 2001 From: Niraj Chaudhary Date: Thu, 7 Nov 2024 10:52:25 +0545 Subject: [PATCH 4/5] Added - User Registration icon updated --- assets/images/settings-icons/user_registration.svg | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/assets/images/settings-icons/user_registration.svg b/assets/images/settings-icons/user_registration.svg index cc01ff8ef..14b242f7c 100644 --- a/assets/images/settings-icons/user_registration.svg +++ b/assets/images/settings-icons/user_registration.svg @@ -1,3 +1,5 @@ - - + + + + From 374fc0ff946507375cad36e2ada8b9423bffe0a7 Mon Sep 17 00:00:00 2001 From: Niraj Chaudhary Date: Thu, 7 Nov 2024 17:10:51 +0545 Subject: [PATCH 5/5] Added - Class name in settings title --- includes/admin/class-evf-admin-settings.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/includes/admin/class-evf-admin-settings.php b/includes/admin/class-evf-admin-settings.php index 030aaf717..b03c40298 100644 --- a/includes/admin/class-evf-admin-settings.php +++ b/includes/admin/class-evf-admin-settings.php @@ -258,7 +258,9 @@ public static function output_fields( $options ) { $tabs_array[ $current_tab ] = isset( $tabs_array[ $current_tab ] ) ? $tabs_array[ $current_tab ] : array(); } - echo '
+ $class_for_title = isset( $value['id'] ) && ! empty( $value['id'] ) ? 'everest-forms-settings-title_' . $value['id'] : ''; + + echo '
'; // For now icon is ignored.