Commit Graph

5 Commits

Author SHA1 Message Date
marcus a5582d7644 Refactor(Settings): Implement WP Settings API for Settings Manager
- Refactored WPALLSTARS_Settings_Manager to use the standard WordPress Settings API.
- Stores all settings in a single 'wpallstars_options' array.
- Implemented register_setting, sections, fields, render callbacks, and sanitization.
- Updated display_general_tab and display_advanced_tab to use settings_fields() and do_settings_sections().
- Adjusted WPALLSTARS_Admin_Manager to initialize the refactored settings manager.
- Kept original menu structure (add_options_page) and file names for stability.
- Temporarily removed AJAX instant-save functionality.
2025-04-19 13:17:51 +01:00
marcus a3bf7fc78f Revert "Refactor(Admin): Implement Settings API & AJAX save for Settings Manager"
This reverts commit f65d648a82.
2025-04-19 13:15:29 +01:00
marcus f65d648a82 Refactor(Admin): Implement Settings API & AJAX save for Settings Manager
- Refactored WPALLSTARS_Settings_Manager to use WordPress Settings API.
- Stores settings in single 'wpallstars_options' array.
- Implemented robust AJAX saving for specific settings (e.g., color scheme, auto-upload) via WPALLSTARS_Admin_Manager::update_option.
- Updated JS and setting render functions for AJAX.
- Corrected admin menu registration and script enqueue hooks.
- Includes file renames from wp-allstars to wpallstars.
2025-04-19 13:12:37 +01:00
marcus b5aeeaf2c4 [WORK IN PROGRESS] Basic Admin UI Enhancements with toggle fixes 2025-04-08 01:24:17 +01:00
Marcus Quinn 8fa2b00d7a refactor: move Settings and Tools tabs to dedicated classes
- Created WP_Allstars_Settings_Manager class to handle General and Advanced tabs
- Created WP_Allstars_Tools_Manager class to handle Tools tab functionality
- Moved inline CSS to properly enqueued styles
- Further reduced code duplication in settings.php
- Improved code organization with OOP principles
2025-03-24 15:52:16 +00:00