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:
1 parent
8f349b40fb
commit
aaf458af1c
404 files changed
+13602
-7705
No files matched your search
@@ -13,8 +13,8 @@
|
||||
|
||||
defined('ABSPATH') || exit;
|
||||
|
||||
if (class_exists('AKSRT_Settings')) {
|
||||
$header_nav = AKSRT_Settings::get_header_nav_settings();
|
||||
if (class_exists('\AKSRT\Settings\Settings')) {
|
||||
$header_nav = \AKSRT\Settings\Settings::get_header_nav_settings();
|
||||
if (empty($header_nav['search_enabled'])) {
|
||||
return;
|
||||
}
|
||||
@@ -39,7 +39,7 @@ $search_placeholder = function_exists('aksrt_get_search_placeholder') ? aks
|
||||
$search_hot_keywords = function_exists('aksrt_get_search_hot_keywords') ? aksrt_get_search_hot_keywords() : [];
|
||||
$history_enabled = function_exists('aksrt_search_history_enabled') ? aksrt_search_history_enabled() : true;
|
||||
$suggestions_enabled = function_exists('aksrt_search_suggestions_enabled') ? aksrt_search_suggestions_enabled() : false;
|
||||
$popular_title = class_exists('AKSRT_Settings') ? AKSRT_Settings::search_popular_title() : __('热门搜索', 'aksrt');
|
||||
$popular_title = class_exists('\AKSRT\Settings\Settings') ? \AKSRT\Settings\Settings::search_popular_title() : __('热门搜索', 'aksrt');
|
||||
?>
|
||||
<div
|
||||
id="tabbar-search-overlay"
|
||||
|
||||
Reference in new issue
Block a user