refactor(autoload): migrate theme classes to Composer PSR-4

Move 288 types from global AKSRT_* + inc/classes manual requires into
namespace AKSRT\{Domain} under src/AKSRT/, wire composer.json psr-4,
and slim bootstrap to helpers/modules/hooks only. Split multi-class
widget/gateway files, update admin contract audit paths, and document
the layout in ADR/README.
This commit is contained in:
2026-07-17 13:29:22 +08:00
parent 8f349b40fb
commit aaf458af1c
404 changed files with 13602 additions and 7705 deletions
+5 -5
View File
@@ -22,10 +22,10 @@ if (!function_exists('aksrt_get_the_subtitle')) :
if ($post_id <= 0) {
return '';
}
// New route: subtitle lives in AKSRT_Post_Meta_Box aggregate meta.
// New route: subtitle lives in \AKSRT\Core\PostMetaBox aggregate meta.
$subtitle = '';
if (class_exists('AKSRT_Post_Meta_Box')) {
$meta = AKSRT_Post_Meta_Box::get_meta($post_id);
if (class_exists('\AKSRT\Core\PostMetaBox')) {
$meta = \AKSRT\Core\PostMetaBox::get_meta($post_id);
$subtitle = trim((string) ($meta['subtitle'] ?? ''));
}
if ($subtitle === '') {
@@ -82,8 +82,8 @@ if (!function_exists('aksrt_get_posts_meta_items_html')) :
$html .= '<span class="item meta-view"><i class="fa fa-eye" aria-hidden="true"></i> ' . esc_html((string) $views_label) . '</span>';
$like_on = true;
if (class_exists('AKSRT_Settings')) {
$page = AKSRT_Settings::get_post_page_settings();
if (class_exists('\AKSRT\Settings\Settings')) {
$page = \AKSRT\Settings\Settings::get_post_page_settings();
$like_on = !isset($page['like_enabled']) || !empty($page['like_enabled']);
}
if ($like_on && $post->post_type === 'post') {