| @@ -3,9 +3,8 @@ | ||
| 3 | 3 | namespace RadiusTheme\SB\Models; |
| 4 | 4 | |
| 5 | 5 | use RadiusTheme\SB\AI\AIFns; |
| 6 | 6 | use RadiusTheme\SB\Helpers\Fns; |
| 7 | -use RadiusTheme\SB\Helpers\SvgIcons; | |
| 8 | 7 | use RadiusTheme\SB\Models\Base\ListModel; |
| 9 | 8 | use RadiusTheme\SB\Traits\SingletonTrait; |
| 10 | 9 | |
| 11 | 10 | defined( 'ABSPATH' ) || exit; |
| @@ -55,17 +54,12 @@ | ||
| 55 | 54 | 'optimization' => apply_filters( |
| 56 | 55 | 'rtsb/settings/optimization/options', |
| 57 | 56 | [ |
| 58 | 57 | 'id' => 'optimization', |
| 59 | - 'icon' => SvgIcons::get( 'optimization' ), | |
| 60 | 58 | 'category' => 'general', |
| 61 | 59 | 'title' => esc_html__( 'Advanced Optimizations', 'shopbuilder' ), |
| 62 | 60 | 'package' => $this->pro_version_checker(), |
| 63 | 61 | 'badge' => 'new', |
| 64 | - 'links' => [ | |
| 65 | - 'doc' => '', | |
| 66 | - 'video' => '', | |
| 67 | - ], | |
| 68 | 62 | 'active_field' => [ |
| 69 | 63 | 'disable' => true, |
| 70 | 64 | ], |
| 71 | 65 | 'fields' => [ |
| @@ -71,16 +65,15 @@ | ||
| 71 | 65 | 'fields' => [ |
| 72 | 66 | 'optimization_intro' => [ |
| 73 | 67 | 'id' => 'optimization_intro', |
| 74 | 68 | 'type' => 'description', |
| 75 | - 'text' => __( 'Optimize your website for maximum performance from these advanced options. <br /> <span style="color: #dc3545; display: block; margin-top: 10px;">⚠️ Note: After enabling or disabling any of these settings, clear the ShopBuilder cache to ensure changes are applied correctly.</span> <span style="color: #16a34a; display: block; margin-top: 10px;">✅ Recommended: Keep Asset Optimization enabled on live/production sites for faster loading. Turn it off only while troubleshooting or verifying a recent change.</span>', 'shopbuilder' ), | |
| 69 | + 'text' => __( 'Optimize your website for maximum performance from these advanced options. <br /> <span style="color: #dc3545; display: block; margin-top: 10px;">⚠️ Note: After enabling or disabling any of these settings, clear the ShopBuilder cache to ensure changes are applied correctly.</span>', 'shopbuilder' ), | |
| 76 | 70 | ], |
| 77 | 71 | 'enable_optimization' => [ |
| 78 | 72 | 'id' => 'enable', |
| 79 | 73 | 'type' => 'switch', |
| 80 | - 'value' => 'on', | |
| 81 | 74 | 'label' => esc_html__( 'Enable Asset Optimization?', 'shopbuilder' ), |
| 82 | - 'help' => esc_html__( 'Enable this option to dynamically load assets (styles, scripts) only when needed, helping to optimize your website\'s performance', 'shopbuilder' ), | |
| 75 | + 'help' => esc_html__( 'Enable this option to dynamically load assets (styles, scripts) only when needed, helping to optimize your website’s performance', 'shopbuilder' ), | |
| 83 | 76 | ], |
| 84 | 77 | 'load_elementor_scripts' => [ |
| 85 | 78 | 'id' => 'enable', |
| 86 | 79 | 'type' => 'switch', |
| @@ -139,17 +132,12 @@ | ||
| 139 | 132 | 'ai_implementation' => apply_filters( |
| 140 | 133 | 'rtsb/settings/ai_implementation/options', |
| 141 | 134 | [ |
| 142 | 135 | 'id' => 'ai_implementation', |
| 143 | - 'icon' => SvgIcons::get( 'ai_implementation' ), | |
| 144 | 136 | 'category' => 'general', |
| 145 | 137 | 'title' => esc_html__( 'AI-implementation', 'shopbuilder' ), |
| 146 | 138 | 'package' => 'free', |
| 147 | 139 | 'badge' => 'beta', |
| 148 | - 'links' => [ | |
| 149 | - 'doc' => '', | |
| 150 | - 'video' => '', | |
| 151 | - ], | |
| 152 | 140 | 'active_field' => [ |
| 153 | 141 | 'disable' => true, |
| 154 | 142 | ], |
| 155 | 143 | 'fields' => [ |
| @@ -438,16 +426,11 @@ | ||
| 438 | 426 | 'notification' => apply_filters( |
| 439 | 427 | 'rtsb/settings/notification/options', |
| 440 | 428 | [ |
| 441 | 429 | 'id' => 'notification', |
| 442 | - 'icon' => SvgIcons::get( 'notification' ), | |
| 443 | 430 | 'category' => 'general', |
| 444 | 431 | 'title' => esc_html__( 'Notification Settings', 'shopbuilder' ), |
| 445 | 432 | 'package' => 'free', |
| 446 | - 'links' => [ | |
| 447 | - 'doc' => '', | |
| 448 | - 'video' => '', | |
| 449 | - ], | |
| 450 | 433 | 'active_field' => [ |
| 451 | 434 | 'disable' => true, |
| 452 | 435 | ], |
| 453 | 436 | 'fields' => [ |
| @@ -514,16 +497,11 @@ | ||
| 514 | 497 | 'social_share' => apply_filters( |
| 515 | 498 | 'rtsb/settings/social_share/options', |
| 516 | 499 | [ |
| 517 | 500 | 'id' => 'social_share', |
| 518 | - 'icon' => SvgIcons::get( 'social_share' ), | |
| 519 | 501 | 'category' => 'general', |
| 520 | 502 | 'title' => esc_html__( 'Social Share Settings', 'shopbuilder' ), |
| 521 | 503 | 'package' => 'free', |
| 522 | - 'links' => [ | |
| 523 | - 'doc' => '', | |
| 524 | - 'video' => '', | |
| 525 | - ], | |
| 526 | 504 | 'active_field' => [ |
| 527 | 505 | 'disable' => true, |
| 528 | 506 | ], |
| 529 | 507 | 'fields' => [ |
| @@ -570,16 +548,11 @@ | ||
| 570 | 548 | 'guest_user' => apply_filters( |
| 571 | 549 | 'rtsb/settings/guest_user/options', |
| 572 | 550 | [ |
| 573 | 551 | 'id' => 'guest_user', |
| 574 | - 'icon' => SvgIcons::get( 'guest_user' ), | |
| 575 | 552 | 'category' => 'general', |
| 576 | 553 | 'title' => esc_html__( 'Guest User Controls', 'shopbuilder' ), |
| 577 | 554 | 'package' => $this->pro_package(), |
| 578 | - 'links' => [ | |
| 579 | - 'doc' => '', | |
| 580 | - 'video' => '', | |
| 581 | - ], | |
| 582 | 555 | 'active_field' => [ |
| 583 | 556 | 'disable' => true, |
| 584 | 557 | ], |
| 585 | 558 | ], |
| @@ -587,16 +560,11 @@ | ||
| 587 | 560 | 'tooltip' => apply_filters( |
| 588 | 561 | 'rtsb/settings/tooltip/options', |
| 589 | 562 | [ |
| 590 | 563 | 'id' => 'tooltip', |
| 591 | - 'icon' => SvgIcons::get( 'tooltip' ), | |
| 592 | 564 | 'category' => 'general', |
| 593 | 565 | 'title' => esc_html__( 'Tooltip Settings', 'shopbuilder' ), |
| 594 | 566 | 'package' => $this->pro_package(), |
| 595 | - 'links' => [ | |
| 596 | - 'doc' => '', | |
| 597 | - 'video' => '', | |
| 598 | - ], | |
| 599 | 567 | 'active_field' => [ |
| 600 | 568 | 'disable' => true, |
| 601 | 569 | ], |
| 602 | 570 | ], |
| @@ -604,16 +572,11 @@ | ||
| 604 | 572 | 'billing_form' => apply_filters( |
| 605 | 573 | 'rtsb/settings/billing_form/options', |
| 606 | 574 | [ |
| 607 | 575 | 'id' => 'billing_form', |
| 608 | - 'icon' => SvgIcons::get( 'billing_form' ), | |
| 609 | 576 | 'category' => 'checkout', |
| 610 | 577 | 'title' => esc_html__( 'Billing Form Settings', 'shopbuilder' ), |
| 611 | 578 | 'package' => 'free', |
| 612 | - 'links' => [ | |
| 613 | - 'doc' => '', | |
| 614 | - 'video' => '', | |
| 615 | - ], | |
| 616 | 579 | 'active_field' => [ |
| 617 | 580 | 'label' => esc_html__( 'Customize Billing Form Fields?', 'shopbuilder' ), |
| 618 | 581 | 'help' => esc_html__( 'Switch on to customize billing form fields.', 'shopbuilder' ), |
| 619 | 582 | ], |
| @@ -618,13 +581,12 @@ | ||
| 618 | 581 | 'help' => esc_html__( 'Switch on to customize billing form fields.', 'shopbuilder' ), |
| 619 | 582 | ], |
| 620 | 583 | 'fields' => [ |
| 621 | 584 | 'checkout_billing_info' => [ |
| 622 | - 'id' => 'checkout_billing_info', | |
| 623 | - 'type' => 'deprecated', | |
| 624 | - 'label' => __( '<strong>Deprecated:</strong> Billing Form Settings is deprecated. Please use the <strong><u>Checkout Fields Editor</u></strong> module to customize checkout fields. These settings will be disabled when the <strong><u>Checkout Fields Editor</u></strong> module is active.', 'shopbuilder' ), | |
| 625 | - 'customClass' => 'checkout-notice', | |
| 626 | - 'before_active' => true, | |
| 585 | + 'id' => 'checkout_billing_info', | |
| 586 | + 'type' => 'title', | |
| 587 | + 'label' => __( 'The below form fields customization will be disabled when the <strong><u>Checkout Fields Editor</u></strong> module is activated.', 'shopbuilder' ), | |
| 588 | + 'customClass' => 'checkout-notice', | |
| 627 | 589 | ], |
| 628 | 590 | 'billing_first_name_heading' => [ |
| 629 | 591 | 'id' => 'billing_first_name_heading', |
| 630 | 592 | 'type' => 'title', |
| @@ -1219,16 +1181,11 @@ | ||
| 1219 | 1181 | 'shipping_form' => apply_filters( |
| 1220 | 1182 | 'rtsb/module/shipping_form/options', |
| 1221 | 1183 | [ |
| 1222 | 1184 | 'id' => 'shipping_form', |
| 1223 | - 'icon' => SvgIcons::get( 'shipping_form' ), | |
| 1224 | 1185 | 'category' => 'checkout', |
| 1225 | 1186 | 'title' => esc_html__( 'Shipping Form Settings', 'shopbuilder' ), |
| 1226 | 1187 | 'package' => 'free', |
| 1227 | - 'links' => [ | |
| 1228 | - 'doc' => '', | |
| 1229 | - 'video' => '', | |
| 1230 | - ], | |
| 1231 | 1188 | 'active_field' => [ |
| 1232 | 1189 | 'label' => esc_html__( 'Customize Shipping form Fields?', 'shopbuilder' ), |
| 1233 | 1190 | 'help' => esc_html__( 'Switch on to customize shipping form fields.', 'shopbuilder' ), |
| 1234 | 1191 | ], |
| @@ -1233,13 +1190,12 @@ | ||
| 1233 | 1190 | 'help' => esc_html__( 'Switch on to customize shipping form fields.', 'shopbuilder' ), |
| 1234 | 1191 | ], |
| 1235 | 1192 | 'fields' => [ |
| 1236 | 1193 | 'checkout_shipping_info' => [ |
| 1237 | - 'id' => 'checkout_shipping_info', | |
| 1238 | - 'type' => 'deprecated', | |
| 1239 | - 'label' => __( '<strong>Deprecated:</strong> Shipping Form Settings is deprecated. Please use the <strong><u>Checkout Fields Editor</u></strong> module to customize checkout fields. These settings will be disabled when the <strong><u>Checkout Fields Editor</u></strong> module is active.', 'shopbuilder' ), | |
| 1240 | - 'customClass' => 'checkout-notice', | |
| 1241 | - 'before_active' => true, | |
| 1194 | + 'id' => 'checkout_shipping_info', | |
| 1195 | + 'type' => 'title', | |
| 1196 | + 'label' => __( 'The below form fields customization will be disabled when the <strong><u>Checkout Fields Editor</u></strong> module is activated.', 'shopbuilder' ), | |
| 1197 | + 'customClass' => 'checkout-notice', | |
| 1242 | 1198 | ], |
| 1243 | 1199 | 'shipping_first_name_heading' => [ |
| 1244 | 1200 | 'id' => 'shipping_first_name_heading', |
| 1245 | 1201 | 'type' => 'title', |