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:
@@ -47,11 +47,11 @@ $bg_url = $dashboard['background_url'] ?? '';
|
||||
$is_own = !empty($dashboard['is_own_profile']);
|
||||
|
||||
$follower_count = (int) ($tab_counts['follow'] ?? 0);
|
||||
if ($follower_count <= 0 && class_exists('AKSRT_Follow')) {
|
||||
$follower_count = (int) AKSRT_Follow::get_instance()->get_follower_count($user_id);
|
||||
if ($follower_count <= 0 && class_exists('\AKSRT\User\Follow')) {
|
||||
$follower_count = (int) \AKSRT\User\Follow::get_instance()->get_follower_count($user_id);
|
||||
}
|
||||
|
||||
$pm_enabled = class_exists('AKSRT_Settings') && !empty(AKSRT_Settings::private_message_settings()['enabled']);
|
||||
$pm_enabled = class_exists('\AKSRT\Settings\Settings') && !empty(\AKSRT\Settings\Settings::private_message_settings()['enabled']);
|
||||
$messages_url = function_exists('aksrt_get_messages_page_url') ? aksrt_get_messages_page_url() : '';
|
||||
$pm_url = ($pm_enabled && $messages_url !== '')
|
||||
? add_query_arg('msg_type', 'conversation', $messages_url)
|
||||
|
||||
Reference in New Issue
Block a user