Major refactoring cleanup: - Add new controller architecture (class-controller-*.php) - Add new settings-v2 UI (views/settings-v2/) - Add new CSS architecture (agentic-sidebar.css, tokens) - Add esbuild build pipeline (scripts/build.js, package.json) - Add composer dependencies (vendor/) - Add frontend src directory (assets/js/src/index.jsx) - Add documentation files - Remove old/obsolete files (class-settings.php, old CSS) This commits all pending changes from previous refactoring efforts.
22 lines
496 B
Markdown
22 lines
496 B
Markdown
From 1.x to 2.x
|
|
=================
|
|
|
|
- All classes uses `Masterminds` namespace.
|
|
- All public static methods has been removed from `HTML5` class and the general API to access the HTML5 functionalities has changed.
|
|
|
|
Before:
|
|
|
|
$dom = \HTML5::loadHTML('<html>....');
|
|
\HTML5::saveHTML($dom);
|
|
|
|
After:
|
|
|
|
use Masterminds\HTML5;
|
|
|
|
$html5 = new HTML5();
|
|
|
|
$dom = $html5->loadHTML('<html>....');
|
|
echo $html5->saveHTML($dom);
|
|
|
|
|