PluginProbe
Adminify – White Label, Admin Menu Editor, Login Customizer / 4.0.3.7
Adminify – White Label, Admin Menu Editor, Login Customizer v4.0.3.7
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 4.1.17 All 164 releases
← All changes | Inc/Admin/Options/Customize.php +40 -47 4.2.214.0.3.7 View file →
@@ -1,10 +1,10 @@
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\AdminSettingsModel;
5 +use WPAdminify\Inc\Utils;
6 +use WPAdminify\Inc\Admin\AdminSettingsModel;
7 7
8 8
9 9 if ( ! defined( 'ABSPATH' ) ) {
10 10 die;
@@ -77,9 +77,9 @@
77 77 'light_dark_mode' => [
78 78 'admin_ui_mode' => 'light',
79 79 'admin_ui_logo_type' => 'image_logo',
80 80 'admin_ui_light_mode' => [
81 - 'admin_ui_light_logo_text' => __('Adminify', 'adminify'),
81 + 'admin_ui_light_logo_text' => __('WP Adminify', 'adminify'),
82 82 'admin_ui_light_logo_text_typo' => '',
83 83 'admin_ui_light_logo' => [
84 84 'url' => ''
85 85 ],
@@ -90,9 +90,9 @@
90 90 'unit' => 'px',
91 91 ]
92 92 ],
93 93 'admin_ui_dark_mode' => [
94 - 'admin_ui_dark_logo_text' => __('Adminify', 'adminify'),
94 + 'admin_ui_dark_logo_text' => __('WP Adminify', 'adminify'),
95 95 'admin_ui_dark_logo_text_typo' => '',
96 96 'admin_ui_dark_logo' => '',
97 97 'mini_admin_ui_dark_logo' => '',
98 98 'dark_logo_size' => [
@@ -128,14 +128,14 @@
128 128 {
129 129 $fields[] = [
130 130 'id' => 'layout_mode_setting_subheading',
131 131 'type' => 'subheading',
132 - 'content' => Utils::help_urls(
133 - '<span></span>',
134 - 'https://wpadminify.com/docs/adminify/customize/adminify-ui-templates',
135 - 'https://www.youtube.com/watch?v=jeWdKbEHYVU',
132 + 'content' => Utils::adminfiy_help_urls(
133 + __('<span></span>', 'adminify'),
134 + 'https://wpadminify.com/kb/customize/',
135 + '',
136 136 'https://www.facebook.com/groups/jeweltheme',
137 - \PXLBSAdminify\Inc\Admin\AdminSettings::support_url()
137 + \WPAdminify\Inc\Admin\AdminSettings::support_url()
138 138 ),
139 139 ];
140 140
141 141 $fields[] = [
@@ -154,18 +154,18 @@
154 154 'id' => 'adminify_theme',
155 155 'type' => 'image_select',
156 156 'title' => __('Adminify UI Templates', 'adminify'),
157 157 'options' => [
158 - 'preset1' => PXLBSADMINIFY_ASSETS_IMAGE . 'presets/preset-1.png',
159 - 'preset2' => PXLBSADMINIFY_ASSETS_IMAGE . 'presets/preset-2.png',
160 - 'preset3' => PXLBSADMINIFY_ASSETS_IMAGE . 'presets/preset-3.png',
161 - 'preset4' => PXLBSADMINIFY_ASSETS_IMAGE . 'presets/preset-4.png',
162 - 'preset5' => PXLBSADMINIFY_ASSETS_IMAGE . 'presets/preset-5.png',
163 - 'preset6' => PXLBSADMINIFY_ASSETS_IMAGE . 'presets/preset-6.png',
164 - 'preset7' => PXLBSADMINIFY_ASSETS_IMAGE . 'presets/preset-7.png',
165 - 'preset8' => PXLBSADMINIFY_ASSETS_IMAGE . 'presets/preset-8.png',
166 - 'preset9' => PXLBSADMINIFY_ASSETS_IMAGE . 'presets/preset-9.png',
167 - 'custom' => PXLBSADMINIFY_ASSETS_IMAGE . 'presets/preset-10.png',
158 + 'preset1' => WP_ADMINIFY_ASSETS_IMAGE . 'presets/preset-1.png',
159 + 'preset2' => WP_ADMINIFY_ASSETS_IMAGE . 'presets/preset-2.png',
160 + 'preset3' => WP_ADMINIFY_ASSETS_IMAGE . 'presets/preset-3.png',
161 + 'preset4' => WP_ADMINIFY_ASSETS_IMAGE . 'presets/preset-4.png',
162 + 'preset5' => WP_ADMINIFY_ASSETS_IMAGE . 'presets/preset-5.png',
163 + 'preset6' => WP_ADMINIFY_ASSETS_IMAGE . 'presets/preset-6.png',
164 + 'preset7' => WP_ADMINIFY_ASSETS_IMAGE . 'presets/preset-7.png',
165 + 'preset8' => WP_ADMINIFY_ASSETS_IMAGE . 'presets/preset-8.png',
166 + 'preset9' => WP_ADMINIFY_ASSETS_IMAGE . 'presets/preset-9.png',
167 + 'custom' => WP_ADMINIFY_ASSETS_IMAGE . 'presets/preset-10.png',
168 168 ],
169 169 'default' => $this->get_default_field('adminify_theme'),
170 170 'dependency' => ['admin_ui', '==', 'true'],
171 171 ];
@@ -174,16 +174,15 @@
174 174 // 'id' => 'adminify_theme_custom_colors',
175 175 // 'title' => __(' ', 'adminify'),
176 176 // 'type' => 'notice',
177 177 // 'style' => 'warning',
178 - // 'content' => Utils::upgrade_pro_notice(),
178 + // 'content' => Utils::adminify_upgrade_pro(),
179 179 // 'dependency' => [ 'adminify_theme|adminify_theme', '!=|!=', 'preset1|preset2', 'any'],
180 180
181 181 'id' => 'adminify_theme_custom_colors',
182 182 'type' => 'color_group',
183 183 'class' => 'adminify-pro-fieldset',
184 - /* translators: %s: pro upgrade badge HTML */
185 - 'title' => sprintf(__('Custom Color Preset %s', 'adminify'), Utils::upgrade_pro_badge()),
184 + 'title' => sprintf(__('Custom Color Preset %s', 'adminify'), Utils::adminify_upgrade_pro_badge()),
186 185 'subtitle' => __('Custom Template Color Presets', 'adminify'),
187 186 'options' => [
188 187 '--adminify-preset-background' => __('Body BG', 'adminify'),
189 188 '--adminify-primary' => __('Primary Color', 'adminify'),
@@ -204,9 +203,9 @@
204 203 'id' => 'admin_glass_effect',
205 204 'title' => __('Glass Effect', 'adminify'),
206 205 'type' => 'notice',
207 206 'style' => 'warning',
208 - 'content' => Utils::upgrade_pro_notice(),
207 + 'content' => Utils::adminify_upgrade_pro(),
209 208 ];
210 209 }
211 210
212 211 // Admin Bar Settings
@@ -254,10 +253,9 @@
254 253 $fields[] = [
255 254 'id' => 'body_fields',
256 255 'type' => 'fieldset',
257 256 'class' => 'adminify-nopadding',
258 - /* translators: %s: pro upgrade badge HTML */
259 - 'title' => sprintf(__('Custom Background %s', 'adminify'), Utils::upgrade_pro_badge()),
257 + 'title' => sprintf(__('Custom Background %s', 'adminify'), Utils::adminify_upgrade_pro_badge()),
260 258 'subtitle' => __('Choose to Enable Custom Background for your Dashboard.', 'adminify'),
261 259 'fields' => $background_settings,
262 260 'dependency' => ['admin_ui', '==', 'true', 'true'],
263 261 ];
@@ -265,10 +263,9 @@
265 263 $fields[] = [
266 264 'id' => 'admin_general_google_font',
267 265 'type' => 'typography',
268 266 'class' => 'adminify-pro-fieldset adminify-pro-notice adminify-pro-pointer',
269 - /* translators: %s: pro upgrade badge HTML */
270 - 'title' => sprintf(__('Body Font %s', 'adminify'), Utils::upgrade_pro_badge()),
267 + 'title' => sprintf(__('Body Font %s', 'adminify'), Utils::adminify_upgrade_pro_badge()),
271 268 'line_height' => false,
272 269 'text_align' => false,
273 270 'text_transform' => false,
274 271 'subset' => false,
@@ -282,10 +279,9 @@
282 279 $fields[] = [
283 280 'id' => 'admin_favicon_logo',
284 281 'type' => 'media',
285 282 'class' => 'adminify-pro-fieldset adminify-pro-notice adminify-pro-pointer',
286 - /* translators: %s: pro upgrade badge HTML */
287 - 'title' => sprintf(__('Admin Favicon %s', 'adminify'), Utils::upgrade_pro_badge()),
283 + 'title' => sprintf(__('Admin Favicon %s', 'adminify'), Utils::adminify_upgrade_pro_badge()),
288 284 'subtitle' => __('Admin Area Favicon Icon', 'adminify'),
289 285 'library' => 'image',
290 286 'preview_size' => 'thumbnail',
291 287 'button_title' => __('Add Favicon', 'adminify'),
@@ -296,10 +292,9 @@
296 292 // Gutenberg Editor Logo
297 293 $fields[] = [
298 294 'id' => 'gutenberg_editor_logo',
299 295 'type' => 'media',
300 - /* translators: %s: pro upgrade badge HTML */
301 - 'title' => sprintf(__('Gutenberg Editor Logo %s', 'adminify'), Utils::upgrade_pro_badge()),
296 + 'title' => sprintf(__('Gutenberg Editor Logo %s', 'adminify'), Utils::adminify_upgrade_pro_badge()),
302 297 'class' => 'adminify-pro-fieldset adminify-pro-notice adminify-pro-pointer',
303 298 'subtitle' => __('Replace Gutenberg Post/Page WordPress Logo', 'adminify'),
304 299 'library' => 'image',
305 300 'preview_size' => 'thumbnail',
@@ -316,9 +311,9 @@
316 311 {
317 312 $fields[] = [
318 313 'id' => 'adminify_custom_bg',
319 314 'type' => 'switcher',
320 - 'title' => '',
315 + 'title' => __('', 'adminify'),
321 316 'class' => '!adminify-flex adminify-pt-0 adminify-pl-0 adminify-pro-feature',
322 317 'subtitle' => __('Choose to Enable Custom Background for your Dashboard.', 'adminify'),
323 318 'text_on' => __('Show', 'adminify'),
324 319 'text_off' => __('Hide', 'adminify'),
@@ -329,9 +324,9 @@
329 324
330 325 $fields[] = [
331 326 'id' => 'admin_general_bg',
332 327 'type' => 'button_set',
333 - 'class' => Utils::upgrade_pro_notice_class(),
328 + 'class' => Utils::upgrade_pro_class(),
334 329 'title' => 'Background Type',
335 330 'options' => [
336 331 // 'color' => __('Color', 'adminify'),
337 332 'gradient' => __('Gradient', 'adminify'),
@@ -354,9 +349,9 @@
354 349 // Gradient BG
355 350 $fields[] = [
356 351 'id' => 'admin_general_bg_gradient',
357 352 'type' => 'background',
358 - 'class' => Utils::upgrade_pro_notice_class(),
353 + 'class' => Utils::upgrade_pro_class(),
359 354 'title' => __('Gradient Color', 'adminify'),
360 355 'background_color' => true,
361 356 'background_image' => false,
362 357 'background_position' => false,
@@ -374,9 +369,9 @@
374 369 // Image
375 370 $fields[] = [
376 371 'id' => 'admin_general_bg_image',
377 372 'type' => 'background',
378 - 'class' => Utils::upgrade_pro_notice_class() . ' adminify-pro-pointer',
373 + 'class' => Utils::upgrade_pro_class() . ' adminify-pro-pointer',
379 374 'title' => __('Background Image', 'adminify'),
380 375 'background_color' => false,
381 376 'background_image' => true,
382 377 'background_position' => true,
@@ -458,9 +453,9 @@
458 453 ];
459 454
460 455 $dark_light_data[] = [
461 456 'id' => 'admin_ui_light_mode',
462 - 'title' => ' ',
457 + 'title' => __(' ', 'adminify'),
463 458 'class' => 'adminify-one-col adminify-pl-0',
464 459 'type' => 'fieldset',
465 460 'fields' => [
466 461 [
@@ -525,9 +520,9 @@
525 520
526 521 $dark_light_data[] = [
527 522 'id' => 'admin_ui_dark_mode',
528 523 'type' => 'fieldset',
529 - 'title' => ' ',
524 + 'title' => __(' ', 'adminify'),
530 525 'class' => 'adminify-one-col adminify-pl-0',
531 526 'fields' => [
532 527 [
533 528 'id' => 'admin_ui_dark_logo_text',
@@ -586,10 +581,9 @@
586 581 ],
587 582
588 583 [
589 584 'id' => 'schedule_dark_mode',
590 - /* translators: %s: pro upgrade badge HTML */
591 - 'title' => sprintf(__('Schedule Dark Mode %s', 'adminify'), Utils::upgrade_pro_badge()),
585 + 'title' => sprintf(__('Schedule Dark Mode %s', 'adminify'), Utils::adminify_upgrade_pro_badge()),
592 586 'type' => 'fieldset',
593 587 'class' => 'adminify-mt-10',
594 588 'fields' => [
595 589 [
@@ -604,9 +598,9 @@
604 598 [
605 599 'id' => 'schedule_dark_mode_type',
606 600 'title' => __('Schedule Type', 'adminify'),
607 601 'type' => 'button_set',
608 - 'class' => Utils::upgrade_pro_notice_class(),
602 + 'class' => Utils::upgrade_pro_class(),
609 603 'options' => [
610 604 'system' => __('System', 'adminify'),
611 605 'custom' => __('Custom', 'adminify'),
612 606 ],
@@ -615,9 +609,9 @@
615 609 ],
616 610 [
617 611 'id' => 'schedule_dark_mode_start_time',
618 612 'type' => 'datetime',
619 - 'class' => Utils::upgrade_pro_notice_class() . ' adminify-pro-pointer',
613 + 'class' => Utils::upgrade_pro_class() . ' adminify-pro-pointer',
620 614 'title' => __('Start Time', 'adminify'),
621 615 'settings' => [
622 616 'noCalendar' => true,
623 617 'enableTime' => true,
@@ -634,9 +628,9 @@
634 628 ],
635 629 [
636 630 'id' => 'schedule_dark_mode_end_time',
637 631 'type' => 'datetime',
638 - 'class' => Utils::upgrade_pro_notice_class() . ' adminify-pro-pointer',
632 + 'class' => Utils::upgrade_pro_class() . ' adminify-pro-pointer',
639 633 'title' => __('End Time', 'adminify'),
640 634 'settings' => [
641 635 'noCalendar' => true,
642 636 'enableTime' => true,
@@ -681,10 +675,9 @@
681 675 $fields[] = [
682 676 'id' => 'post_status_bg_colors',
683 677 'type' => 'color_group',
684 678 'class' => 'adminify-pro-fieldset',
685 - /* translators: %s: pro upgrade badge HTML */
686 - 'title' => sprintf(__('Post Status Background Colors %s', 'adminify'), Utils::upgrade_pro_badge()),
679 + 'title' => sprintf(__('Post Status Background Colors %s', 'adminify'), Utils::adminify_upgrade_pro_badge()),
687 680 'subtitle' => __('Background Color by Post Status type', 'adminify'),
688 681 'options' => [
689 682 'publish' => __('Publish BG Color', 'adminify'),
690 683 'pending' => __('Pending BG Color', 'adminify'),
@@ -722,11 +715,11 @@
722 715 $this->layout_mode_setting_fields($fields);
723 716 $this->admin_bar_settings($fields);
724 717 // $this->gutenberg_editor_customization($fields);
725 718
726 - $fields = apply_filters('pxlbsadminify_settings/customize', $fields, $this);
719 + $fields = apply_filters('adminify_settings/customize', $fields, $this);
727 720 $this->post_status_bg_colors($fields);
728 - $fields = apply_filters('pxlbsadminify_settings/post_status', $fields, $this);
721 + $fields = apply_filters('adminify_settings/post_status', $fields, $this);
729 722
730 723 // Admin UI Section
731 724 \ADMINIFY::createSection(
732 725 $this->prefix,