| @@ -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 | + 'https://wpadminify.com/support/' | |
| 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, |
| @@ -275,9 +272,9 @@ | ||
| 275 | 272 | 'letter_spacing' => false, |
| 276 | 273 | 'font_size' => false, |
| 277 | 274 | 'color' => false, |
| 278 | 275 | 'default' => $this->get_default_field('admin_general_google_font'), |
| 279 | - // 'dependency' => ['admin_ui', '==', 'true'], | |
| 276 | + 'dependency' => ['admin_ui', '==', 'true'], | |
| 280 | 277 | ]; |
| 281 | 278 | |
| 282 | 279 | $fields[] = [ |
| 283 | 280 | 'id' => 'admin_favicon_logo', |
| @@ -282,15 +279,14 @@ | ||
| 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 | - 'button_title' => __('Add Favicon', 'adminify'), | |
| 292 | - 'remove_title' => __('Remove Favicon', 'adminify'), | |
| 287 | + 'button_title' => __('Add Favicion', 'adminify'), | |
| 288 | + 'remove_title' => __('Remove Favicion', 'adminify'), | |
| 293 | 289 | 'default' => $this->get_default_field('admin_favicon_logo'), |
| 294 | 290 | ]; |
| 295 | 291 | |
| 296 | 292 | // Gutenberg Editor Logo |
| @@ -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, |
| @@ -676,15 +670,25 @@ | ||
| 676 | 670 | */ |
| 677 | 671 | public function post_status_bg_colors(&$fields) |
| 678 | 672 | { |
| 679 | 673 | |
| 674 | + // $fields[] = [ | |
| 675 | + // 'id' => 'post_status_bg_subheading', | |
| 676 | + // 'type' => 'subheading', | |
| 677 | + // 'content' => Utils::adminfiy_help_urls( | |
| 678 | + // __('Post Status Background Colors', 'adminify'), | |
| 679 | + // 'https://wpadminify.com/kb/post-status-background-color/', | |
| 680 | + // 'https://www.youtube.com/playlist?list=PLqpMw0NsHXV-EKj9Xm1DMGa6FGniHHly8', | |
| 681 | + // 'https://www.facebook.com/groups/jeweltheme', | |
| 682 | + // 'https://wpadminify.com/support/' | |
| 683 | + // ), | |
| 684 | + // ]; | |
| 680 | 685 | |
| 681 | 686 | $fields[] = [ |
| 682 | 687 | 'id' => 'post_status_bg_colors', |
| 683 | 688 | 'type' => 'color_group', |
| 684 | 689 | 'class' => 'adminify-pro-fieldset', |
| 685 | - /* translators: %s: pro upgrade badge HTML */ | |
| 686 | - 'title' => sprintf(__('Post Status Background Colors %s', 'adminify'), Utils::upgrade_pro_badge()), | |
| 690 | + 'title' => sprintf(__('Post Status Background Colors %s', 'adminify'), Utils::adminify_upgrade_pro_badge()), | |
| 687 | 691 | 'subtitle' => __('Background Color by Post Status type', 'adminify'), |
| 688 | 692 | 'options' => [ |
| 689 | 693 | 'publish' => __('Publish BG Color', 'adminify'), |
| 690 | 694 | 'pending' => __('Pending BG Color', 'adminify'), |
| @@ -722,11 +726,11 @@ | ||
| 722 | 726 | $this->layout_mode_setting_fields($fields); |
| 723 | 727 | $this->admin_bar_settings($fields); |
| 724 | 728 | // $this->gutenberg_editor_customization($fields); |
| 725 | 729 | |
| 726 | - $fields = apply_filters('pxlbsadminify_settings/customize', $fields, $this); | |
| 730 | + $fields = apply_filters('adminify_settings/customize', $fields, $this); | |
| 727 | 731 | $this->post_status_bg_colors($fields); |
| 728 | - $fields = apply_filters('pxlbsadminify_settings/post_status', $fields, $this); | |
| 732 | + $fields = apply_filters('adminify_settings/post_status', $fields, $this); | |
| 729 | 733 | |
| 730 | 734 | // Admin UI Section |
| 731 | 735 | \ADMINIFY::createSection( |
| 732 | 736 | $this->prefix, |