PluginProbe
Adminify – White Label, Admin Menu Editor, Login Customizer / 1.0.7
Adminify – White Label, Admin Menu Editor, Login Customizer v1.0.7
4.3.2 4.3.1 4.3.0 4.2.26 4.2.25 4.2.24 4.2.23 4.2.22 4.2.21 4.2.20 4.2.19 4.2.18 4.2.17 4.2.16 4.2.15 4.2.14 4.2.13 4.2.12 4.2.11 4.2.10 4.2.9 4.2.8 4.2.7 4.2.6 4.2.5 All 165 releases
← All changes | Inc/Admin/Options/White_Label.php +161 -349 4.2.141.0.7 View file →
@@ -1,380 +1,192 @@
1 1 <?php
2 2
3 -namespace PXLBSAdminify\Inc\Admin\Options;
3 +namespace WPAdminify\Inc\Admin\Options;
4 4
5 -use PXLBSAdminify\Inc\Utils;
6 -use PXLBSAdminify\Inc\Admin\AdminSettings;
7 -use PXLBSAdminify\Inc\Admin\AdminSettingsModel;
8 -use PXLBSAdminify\Inc\Classes\AdminFooterText;
5 +use WPAdminify\Inc\Utils;
6 +use WPAdminify\Inc\Admin\AdminSettingsModel;
9 7
10 -if ( ! defined( 'ABSPATH' ) ) {
11 - die;
8 +if (!defined('ABSPATH')) {
9 + die;
12 10 } // Cannot access directly.
13 11
14 -class White_Label extends AdminSettingsModel {
12 +class White_Label extends AdminSettingsModel
13 +{
14 + public function __construct()
15 + {
16 + $this->white_label_settings();
17 + }
15 18
19 + public function get_defaults()
20 + {
21 + return [
22 + 'jltwp_adminify_wl_plugin_logo' => '',
23 + 'jltwp_adminify_wl_plugin_name' => 'WP Adminify',
24 + 'jltwp_adminify_wl_plugin_desc' => ' Supercharge your WordPress Adminify with <a href="https://wpadminify.com">WP Adminify</a> plugin. It has Professional & Clean UI, White Label, Analytics, Charts, Menu UI, WP Dark Theme, User Roles management, Multisite Support and many more to get amazed.',
25 + 'jltwp_adminify_wl_plugin_author_name' => 'Jewel Theme',
26 + 'jltwp_adminify_wl_plugin_menu_label' => 'WP Adminify',
27 + 'jltwp_adminify_wl_plugin_url' => 'https://wpadminify.com',
28 + 'jltwp_adminify_wl_plugin_row_links' => false,
29 + 'jltwp_adminify_wl_plugin_tab_system_info' => false,
30 + 'jltwp_adminify_wl_plugin_option' => false,
31 + 'jltwp_adminify_remove_action_links' => [],
32 + ];
33 + }
16 34
17 - public function __construct() {
18 - $this->white_label_settings();
19 - }
20 35
21 - public function get_defaults() {
22 - return [
23 - 'white_label' => [
24 - 'wordpress' => [
25 - 'admin_bar_cleanup' => [],
26 - 'remove_howdy_msg' => false,
27 - 'change_howdy_text' => __('Howdy', 'adminify'),
28 - 'show_footer_credit' => false,
29 - 'footer_text' => AdminFooterText::get_default_footer_credit(),
30 - 'admin_footer' => [
31 - 'ip_address',
32 - 'php_version',
33 - 'wp_version',
34 - 'memory_usage',
35 - 'memory_limit',
36 - 'memory_available'
37 - ],
38 - ],
39 - 'adminify' => [
40 - 'plugin_logo' => [],
41 - 'plugin_logo_dark' => [],
42 - 'plugin_name' => \PXLBSAdminify\Inc\Admin\AdminSettings::get_pro_label(),
43 - 'plugin_desc' => __('Adminify is a powerful plugin that modernizes and customizes your WordPress admin dashboard. It offers a clean, branded interface and advanced menu management features to enhance your admin user experience.', 'adminify'),
44 - 'author_name' => 'Jewel Theme',
45 - 'menu_label' => \PXLBSAdminify\Inc\Admin\AdminSettings::get_pro_label(),
46 - 'menu_icon' => [],
47 - 'plugin_url' => 'https://wpadminify.com',
48 - 'row_links' => false,
49 - 'remove_action_links' => false,
50 - 'tab_system_info' => false,
51 - 'plugin_option' => false,
52 - ]
53 - ]
54 - ];
55 - }
36 + /**
37 + * Tweaks: Performance Fields
38 + *
39 + * @param [type] $white_label
40 + *
41 + * @return void
42 + */
43 + public function white_label_fields(&$white_label)
44 + {
56 45
57 - public function pxlbsadminify_wordpress_white_label_fields(&$white_label)
58 - {
59 - $admin_bar_items = [
60 - // 'menu_toggle' => __('Menu Toggle', 'adminify'),
61 - 'wp_logo' => __('WordPress Logo', 'adminify'),
62 - 'site_name' => __('Site Name', 'adminify'),
63 - 'comments' => __('Comments', 'adminify'),
64 - /* translators: %s: pro upgrade badge HTML */
65 - 'updates' => sprintf(__('Updates %s', 'adminify'), Utils::upgrade_pro_class()),
66 - /* translators: %s: pro upgrade badge HTML */
67 - 'new_content' => sprintf(__('"New" Button %s', 'adminify'), Utils::upgrade_pro_class()),
68 - ];
69 - $admin_footer_items = [
70 - 'ip_address' => __('Show IP Address', 'adminify'),
71 - 'php_version' => __('Show PHP Version', 'adminify'),
72 - 'wp_version' => __('Show WordPress Version', 'adminify'),
73 - 'memory_usage' => __('Show Memory Usage', 'adminify'),
74 - 'memory_limit' => __('Show Memory Limit', 'adminify'),
75 - 'memory_available' => __('Show Memory Available', 'adminify')
76 - ];
46 + $white_label_class = '';
47 + if (!jltwp_adminify()->is_plan__premium_only('agency')) {
48 + $white_label_class = 'adminify-depend-visible adminify-depend-on';
49 + }
77 50
78 - $white_label[] = [
79 - 'id' => 'white_label_subheading',
80 - 'type' => 'subheading',
81 - 'content' => Utils::help_urls(
82 - __('"WordPress" White Label Settings', 'adminify'),
83 - 'https://wpadminify.com/docs/adminify/white-label/wordpress-white-label-features',
84 - 'https://www.youtube.com/watch?v=zDK_MwIcTpc',
85 - 'https://www.facebook.com/groups/jeweltheme',
86 - \PXLBSAdminify\Inc\Admin\AdminSettings::support_url()
87 - )
88 - ];
51 + $white_label[] = array(
52 + 'type' => 'subheading',
53 + 'content' => Utils::adminfiy_help_urls(
54 + __('White Label Settings', WP_ADMINIFY_TD),
55 + 'https://wpadminify.com/kb/adminify-white-label/',
56 + 'https://www.youtube.com/playlist?list=PLqpMw0NsHXV-EKj9Xm1DMGa6FGniHHly8',
57 + 'https://www.facebook.com/groups/jeweltheme',
58 + 'https://wpadminify.com/support/'
59 + )
60 + );
89 61
62 + $white_label[] = array(
63 + 'id' => 'jltwp_adminify_wl_plugin_logo',
64 + 'type' => 'media',
65 + 'class' => $white_label_class,
66 + 'title' => __('Logo Image', WP_ADMINIFY_TD),
67 + 'library' => 'image',
68 + 'preview_size' => 'thumbnail',
69 + 'button_title' => __('Add Logo Image', WP_ADMINIFY_TD),
70 + 'remove_title' => __('Remove Logo Image', WP_ADMINIFY_TD),
71 + 'default' => $this->get_default_field('jltwp_adminify_wl_plugin_logo')
72 + );
90 73
91 - // Check Admin Bar Editor Plugin Activate
92 - if (! class_exists('\JewelTheme\AdminBarEditor\AdminBarEditor')) {
93 - $white_label[] = [
94 - 'id' => 'remove_howdy_msg',
95 - 'type' => 'switcher',
96 - 'title' => __('Remove "Howdy" message?', 'adminify'),
97 - 'subtitle' => __('Removed Howdy Message entirely.', 'adminify'),
98 - 'text_on' => __('Yes', 'adminify'),
99 - 'text_off' => __('No', 'adminify'),
100 - 'text_width' => 80,
101 - 'default' => $this->get_default_field('white_label')['wordpress']['remove_howdy_msg'],
102 - 'dependency' => ['admin_ui', '==', 'false', 'true'],
103 - ];
104 - $white_label[] = [
105 - 'id' => 'change_howdy_text',
106 - 'type' => 'text',
107 - 'title' => __('Change "Howdy" Text', 'adminify'),
108 - 'subtitle' => __('Change your custom "Howdy" Text', 'adminify'),
109 - 'default' => $this->get_default_field('white_label')['wordpress']['change_howdy_text'],
110 - 'dependency' => ['remove_howdy_msg|admin_ui', '==|==', 'false|false', 'true'],
111 - ];
112 - }
74 + $white_label[] = array(
75 + 'id' => 'jltwp_adminify_wl_plugin_name',
76 + 'type' => 'text',
77 + 'class' => $white_label_class,
78 + 'title' => __('Plugin Name', WP_ADMINIFY_TD),
79 + 'default' => $this->get_default_field('jltwp_adminify_wl_plugin_name')
80 + );
113 81
114 - $white_label[] = [
115 - 'id' => 'admin_bar_cleanup',
116 - 'type' => 'checkbox',
117 - 'inline' => true,
118 - 'title' => __('Admin Bar Cleanup', 'adminify'),
119 - 'subtitle' => __('Remove Unnecessary items from Admin Bar.', 'adminify'),
120 - 'default' => $this->get_default_field('white_label')['wordpress']['admin_bar_cleanup'],
121 - 'options' => $admin_bar_items,
122 - 'dependency' => ['admin_ui', '!=', 'true', 'true'],
123 - ];
124 - $white_label[] = [
125 - 'id' => 'admin_footer',
126 - 'type' => 'checkbox',
127 - 'inline' => true,
128 - 'title' => __( 'Admin Footer', 'adminify' ),
129 - 'subtitle' => __( 'Admin Footer right side options', 'adminify' ),
130 - 'options' => $admin_footer_items,
131 - 'default' => $this->get_default_field('white_label')['wordpress']['admin_footer'],
132 - ];
133 - $white_label[] = [
134 - 'id' => 'show_footer_credit',
135 - 'type' => 'switcher',
136 - 'title' => __('Show Footer Credit', 'adminify'),
137 - 'subtitle' => __('Display the default "Developed by / Powered by" credit in the admin footer. Disabled by default; enable to opt in.', 'adminify'),
138 - 'text_on' => __('Yes', 'adminify'),
139 - 'text_off' => __('No', 'adminify'),
140 - 'text_width' => 80,
141 - 'default' => $this->get_default_field('white_label')['wordpress']['show_footer_credit'],
142 - ];
143 - $white_label[] = [
144 - 'id' => 'footer_text',
145 - 'type' => 'wp_editor',
146 - 'title' => __( 'Admin Footer Text', 'adminify' ),
147 - 'height' => '100px',
148 - 'media_buttons' => false,
149 - 'tinymce' => false,
150 - 'subtitle' => 'Left Side WordPress Admin Footer Text ',
151 - 'default' => $this->get_default_field( 'white_label')['wordpress']['footer_text' ],
152 - 'dependency' => ['show_footer_credit', '==', 'true', 'true'],
153 - ];
82 + $white_label[] = array(
83 + 'id' => 'jltwp_adminify_wl_plugin_desc',
84 + 'type' => 'textarea',
85 + 'class' => $white_label_class,
86 + 'title' => __('Plugin Description', WP_ADMINIFY_TD),
87 + 'default' => $this->get_default_field('jltwp_adminify_wl_plugin_desc')
88 + );
154 89
155 - $white_label = apply_filters('pxlbsadminify_settings/wp_white_label', $white_label, $this);
156 - }
90 + $white_label[] = array(
91 + 'id' => 'jltwp_adminify_wl_plugin_author_name',
92 + 'type' => 'text',
93 + 'class' => $white_label_class,
94 + 'title' => __('Developer/Agency Name', WP_ADMINIFY_TD),
95 + 'default' => $this->get_default_field('jltwp_adminify_wl_plugin_author_name')
96 + );
157 97
158 - public static function pxlbsadminify_white_label_options(){
159 - $adminify_options = get_option('pxlbsadminify_settings');
160 - if( isset($adminify_options['white_label']) && !empty($adminify_options['white_label']) ){
161 - return $adminify_options['white_label'];
162 - }else{
163 - return [];
164 - }
165 - }
166 - /**
167 - * White Label Settings: White Label Fields
168 - *
169 - * @param [type] $white_label
170 - *
171 - * @return void
172 - */
173 - public function pxlbsadminify_white_label_fields( &$white_label ) {
98 + $white_label[] = array(
99 + 'id' => 'jltwp_adminify_wl_plugin_menu_label',
100 + 'type' => 'text',
101 + 'class' => $white_label_class,
102 + 'title' => __('Menu Label', WP_ADMINIFY_TD),
103 + 'default' => $this->get_default_field('jltwp_adminify_wl_plugin_menu_label')
104 + );
174 105
106 + $white_label[] = array(
107 + 'id' => 'jltwp_adminify_wl_plugin_url',
108 + 'type' => 'text',
109 + 'class' => $white_label_class,
110 + 'title' => __('Plugin URL', WP_ADMINIFY_TD),
111 + 'default' => $this->get_default_field('jltwp_adminify_wl_plugin_url')
112 + );
175 113
176 - $wp_white_label = [];
177 - $adminify_white_label = [];
114 + $white_label[] = array(
115 + 'type' => 'subheading',
116 + 'class' => $white_label_class,
117 + 'content' => __('White Label WP Adminify', WP_ADMINIFY_TD)
118 + );
178 119
179 - $this->pxlbsadminify_wordpress_white_label_fields($wp_white_label);
120 + // $white_label[] = array(
121 + // 'id' => 'jltwp_adminify_wl_plugin_tab_system_info',
122 + // 'type' => 'checkbox',
123 + // 'label' => __('Hide System Info Menu', WP_ADMINIFY_TD),
124 + // 'default' => $this->get_default_field('jltwp_adminify_wl_plugin_tab_system_info')
125 + // );
180 126
181 - $pxlbsadminify_white_label_options = self::pxlbsadminify_white_label_options();
182 - $adminify_white_label_plugin_option_enabled = !empty($pxlbsadminify_white_label_options['plugin_option']) ? $pxlbsadminify_white_label_options['plugin_option'] : '';
127 + $white_label[] = array(
128 + 'id' => 'jltwp_adminify_wl_plugin_row_links',
129 + 'type' => 'checkbox',
130 + 'class' => $white_label_class,
131 + 'label' => __('Hide Plugin Row Meta Links', WP_ADMINIFY_TD),
132 + 'default' => $this->get_default_field('jltwp_adminify_wl_plugin_row_links')
133 + );
183 134
184 - if(empty($adminify_white_label_plugin_option_enabled)){
185 - $this->pxlbsadminify_adminify_white_label_fields($adminify_white_label);
186 - }
135 + if (!jltwp_adminify()->is_plan__premium_only('agency')) {
136 + $white_label[] = array(
137 + 'type' => 'callback',
138 + 'class' => 'wp-adminify-white-label-notice',
139 + 'function' => 'WPAdminify\Inc\Utils::jltwp_adminify_white_label_upgrade',
140 + );
141 + }
187 142
188 - $white_label[] = [
189 - 'id' => 'white_label',
190 - 'type' => 'fieldset',
191 - 'class' => 'adminify-one-col adminify-pl-0',
192 - 'fields' => [
193 - [
194 - 'id' => 'wordpress',
195 - 'type' => 'fieldset',
196 - 'class' => 'adminify-one-col adminify-pl-0',
197 - 'fields' => $wp_white_label
198 - ],
199 - [
200 - 'id' => 'adminify',
201 - 'type' => 'fieldset',
202 - 'class' => 'adminify-one-col adminify-pl-0',
203 - 'fields' => $adminify_white_label
204 - ]
205 - ],
206 - 'default' => $this->get_default_field('white_label')
207 - ];
208 - }
143 + $white_label[] = array(
144 + 'id' => 'jltwp_adminify_remove_action_links',
145 + 'type' => 'checkbox',
146 + 'class' => 'aminify-title-width-40',
147 + 'title' => __('Remove Action Links', WP_ADMINIFY_TD),
148 + 'options' => [
149 + 'upgrade' => __('Upgrade', WP_ADMINIFY_TD),
150 + 'activate-license' => __('Activate/Change License', WP_ADMINIFY_TD),
151 + 'opt-in-or-opt-out' => __('Opt In/Out', WP_ADMINIFY_TD),
152 + 'adminify-plugin-settings' => __('Settings', WP_ADMINIFY_TD),
153 + ]
154 + );
209 155
210 - /**
211 - * White Label Settings: White Label Fields
212 - *
213 - * @param [type] $white_label
214 - *
215 - * @return void
216 - */
217 - public function pxlbsadminify_adminify_white_label_fields( &$adminify_whl_fields ) {
218 156
219 - $adminify_white_label_class = 'adminify-white-label adminify-pro-feature adminify-pro-notice';
220 157
221 - $adminify_whl_fields[] = [
222 - 'id' => 'adminify_whl_sub_heading',
223 - 'type' => 'subheading',
224 - 'class' => 'adminify-mt-10 adminify-agency-plan',
225 - 'content' => Utils::help_urls(
226 - /* translators: %s: pro plan badge HTML */
227 - '<span>' . sprintf( __('"Adminify" Branding %s', 'adminify'), Utils::upgrade_pro_badge('Agency or Higher Plan Only')) . '</span>',
228 - 'https://wpadminify.com/docs/adminify/white-label/rebrand-wp-adminify-plugin',
229 - 'https://www.youtube.com/watch?v=zDK_MwIcTpc',
230 - 'https://www.facebook.com/groups/jeweltheme',
231 - \PXLBSAdminify\Inc\Admin\AdminSettings::support_url()
232 - ),
233 - 'dependency' => ['plugin_option', '==', 'false', 'true'],
234 - ];
235 - $adminify_whl_fields[] = [
236 - 'id' => 'plugin_logo',
237 - 'type' => 'media',
238 - 'class' => $adminify_white_label_class . ' adminify-pro-pointer',
239 - 'title' => __('Light Logo', 'adminify'),
240 - 'library' => 'image',
241 - 'preview_size' => 'thumbnail',
242 - 'button_title' => __(
243 - 'Add Logo Image',
244 - 'adminify'
245 - ),
246 - 'remove_title' => __('Remove Logo Image', 'adminify'),
247 - 'default' => $this->get_default_field( 'white_label')['adminify']['plugin_logo'],
248 - 'dependency' => ['admin_ui_mode', '==', 'light', 'true'],
249 - 'dependency' => ['plugin_option', '==', 'false', 'true'],
250 - ];
251 - $adminify_whl_fields[] = [
252 - 'id' => 'plugin_logo_dark',
253 - 'type' => 'media',
254 - 'class' => $adminify_white_label_class . ' adminify-pro-pointer',
255 - 'title' => __('Dark Logo ', 'adminify'),
256 - 'library' => 'image',
257 - 'preview_size' => 'thumbnail',
258 - 'button_title' => __('Add Logo Image', 'adminify'),
259 - 'remove_title' => __('Remove Logo Image', 'adminify'),
260 - 'default' => $this->get_default_field('white_label')['adminify']['plugin_logo_dark'],
261 - 'dependency' => ['admin_ui_mode', '==', 'dark', 'true'],
262 - 'dependency' => ['plugin_option', '==', 'false', 'true'],
263 - ];
264 - $adminify_whl_fields[] = [
265 - 'id' => 'plugin_name',
266 - 'type' => 'text',
267 - 'class' => $adminify_white_label_class . ' adminify-pro-pointer',
268 - 'title' => __('Plugin Name', 'adminify'),
269 - 'default' => $this->get_default_field('white_label')['adminify']['plugin_name'],
270 - 'dependency' => ['plugin_option', '==', 'false', 'true'],
271 - ];
272 - $adminify_whl_fields[] = [
273 - 'id' => 'plugin_desc',
274 - 'type' => 'textarea',
275 - 'class' => $adminify_white_label_class . ' adminify-pro-pointer',
276 - 'title' => __('Plugin Description', 'adminify'),
277 - 'default' => $this->get_default_field('white_label')['adminify']['plugin_desc'],
278 - 'dependency' => ['plugin_option', '==', 'false', 'true'],
279 - ];
280 - $adminify_whl_fields[] = [
281 - 'id' => 'author_name',
282 - 'type' => 'text',
283 - 'class' => $adminify_white_label_class . ' adminify-pro-pointer',
284 - 'title' => __('Developer/Agency Name', 'adminify'),
285 - 'default' => $this->get_default_field('white_label')['adminify']['author_name'],
286 - 'dependency' => ['plugin_option', '==', 'false', 'true'],
287 - ];
288 - $adminify_whl_fields[] = [
289 - 'id' => 'menu_label',
290 - 'type' => 'text',
291 - 'class' => $adminify_white_label_class . ' adminify-pro-pointer',
292 - 'title' => __('Menu Label', 'adminify'),
293 - 'default' => $this->get_default_field('white_label')['adminify']['menu_label'],
294 - 'dependency' => ['plugin_option', '==', 'false', 'true'],
295 - ];
296 - $adminify_whl_fields[] = [
297 - 'id' => 'menu_icon',
298 - 'type' => 'media',
299 - 'class' => $adminify_white_label_class . ' adminify-pro-pointer',
300 - 'title' => __('Menu Icon ', 'adminify'),
301 - 'library' => 'image',
302 - 'preview_size' => 'thumbnail',
303 - 'button_title' => __('Add Menu Icon', 'adminify'),
304 - 'remove_title' => __('Remove Menu Icon', 'adminify'),
305 - 'default' => $this->get_default_field('white_label')['adminify']['menu_icon'],
306 - 'dependency' => ['plugin_option', '==', 'false', 'true'],
307 - ];
308 - $adminify_whl_fields[] = [
309 - 'id' => 'plugin_url',
310 - 'type' => 'text',
311 - 'class' => $adminify_white_label_class . ' adminify-pro-pointer',
312 - 'title' => __(
313 - 'Plugin URL',
314 - 'adminify'
315 - ),
316 - 'default' => $this->get_default_field('white_label')['adminify']['plugin_url'],
317 - 'dependency' => ['plugin_option', '==', 'false', 'true'],
318 - ];
319 - $adminify_whl_fields[] = [
320 - 'id' => 'row_links',
321 - 'title' => __('Hide All Row Meta Links', 'adminify'),
322 - 'subtitle' => __('All Plugin Meta Links will be removed - Upgrade, Settings etc', 'adminify'),
323 - 'type' => 'switcher',
324 - 'class' => $adminify_white_label_class . ' adminify-pro-pointer',
325 - 'text_on' => __('Yes', 'adminify'),
326 - 'text_off' => __('No', 'adminify'),
327 - 'text_width' => 80,
328 - 'default' => $this->get_default_field('white_label')['adminify']['row_links'],
329 - 'dependency' => ['plugin_option', '==', 'false', 'true'],
330 - ];
331 - $adminify_whl_fields[] = [
332 - 'id' => 'remove_action_links',
333 - 'title' => __('Remove Action Links', 'adminify'),
334 - 'type' => 'checkbox',
335 - 'inline' => true,
336 - 'class' => $adminify_white_label_class . ' adminify-pro-pointer',
337 - 'options' => [
338 - 'upgrade' => __('Upgrade', 'adminify'),
339 - 'activate_license' => __('Activate/Change License', 'adminify'),
340 - // 'opt_in_out' => __('Opt In/Out', 'adminify'),
341 - 'settings' => __('Settings', 'adminify'),
342 - 'account' => __('Account', 'adminify'),
343 - ],
344 - 'default' => $this->get_default_field('white_label')['adminify']['remove_action_links'],
345 - 'dependency' => ['row_links|plugin_option', '==|==', 'false|false', 'true'],
346 - ];
347 - $adminify_whl_fields[] = [
348 - 'id' => 'plugin_option',
349 - 'type' => 'checkbox',
350 - 'class' => $adminify_white_label_class . ' adminify-full-width-field adminify-hightlight-field adminify-one-col adminify-mt-6 adminify-pro-pointer',
351 - 'label' => __('Force Disable White Label (Adminify): When enabled, the White Label settings will be completely hidden. To access them again, you\'ll need to deactivate and reactivate Adminify Plugin.', 'adminify'),
352 - 'default' => $this->get_default_field('white_label')['adminify']['plugin_option'],
353 - ];
158 + $white_label[] = array(
159 + 'id' => 'jltwp_adminify_wl_plugin_option',
160 + 'type' => 'checkbox',
161 + 'class' => $white_label_class,
162 + 'class' => 'adminify-full-width-field adminify-hightlight-field',
163 + 'label' => __('Enable Force Disable "White Label" Options: If you enable this option, White Label option will be completely hidden. If you want it back, You have to deactivate and activate plugin to make it work again.', WP_ADMINIFY_TD),
164 + 'default' => $this->get_default_field('jltwp_adminify_wl_plugin_option')
165 + );
166 + }
354 167
355 - $adminify_whl_fields = apply_filters('pxlbsadminify_settings/adminify_white_label', $adminify_whl_fields, $this);
356 - }
357 168
169 + /*
170 + White Label Settings
171 + */
172 + public function white_label_settings()
173 + {
358 174
359 - /*
360 - White Label Settings
361 - */
362 - public function white_label_settings() {
363 - if ( ! class_exists( 'ADMINIFY' ) ) {
364 - return;
365 - }
175 + if (!class_exists('ADMINIFY')) {
176 + return;
177 + }
366 178
367 - $fields = [];
368 - $this->pxlbsadminify_white_label_fields($fields);
179 + $white_label = [];
180 + $this->white_label_fields($white_label);
369 181
370 - \ADMINIFY::createSection(
371 - $this->prefix,
372 - [
373 - 'title' => __( 'White Label', 'adminify' ),
374 - 'id' => 'white_label',
375 - 'icon' => 'far fa-copyright',
376 - 'fields' => $fields,
377 - ]
378 - );
379 - }
182 + \ADMINIFY::createSection(
183 + $this->prefix,
184 + array(
185 + 'title' => __('White Label', WP_ADMINIFY_TD),
186 + 'icon' => 'far fa-copyright',
187 + 'class' => 'wp-adminify-two-columns ',
188 + 'fields' => $white_label,
189 + )
190 + );
191 + }
380 192 }