feat(forum): frontend 1:1 list/tabs/urls/enqueue

Wire Zibll-style board sort tabs, shared topic rows, page-template
URLs, forum asset enqueue on home/plate, home synthesis load-more,
and topic last_reply meta for last-reply ordering. No dual-read.
This commit is contained in:
kate522 committed 2026-07-12 08:38:31 +08:00
1 parent df6b224dd3
commit 780c8cb4f7
23 files changed
+843 -481

No files matched your search

@@ -167,6 +167,7 @@ class AKSRT_Forum_Topic_Service {
update_post_meta($post_id, '_aksrt_featured', '0');
update_post_meta($post_id, '_aksrt_locked', '0');
update_post_meta($post_id, '_aksrt_views', 0);
update_post_meta($post_id, '_aksrt_last_reply', (string) get_post_field('post_date', $post_id));
update_post_meta($post_id, '_aksrt_bbs_type', $bbs_type);
if ($bbs_type === AKSRT_Forum::BBS_TYPE_QUESTION) {
update_post_meta($post_id, '_aksrt_question_status', AKSRT_Forum::QUESTION_UNSOLVED);
@@ -196,7 +197,7 @@ class AKSRT_Forum_Topic_Service {
: __('主题已提交审核,审核通过后对外展示', 'aksrt'),
'redirect' => $post_status === 'publish'
? get_permalink($post_id)
: add_query_arg('compose_status', 'pending', home_url('/forums/')),
: add_query_arg('compose_status', 'pending', aksrt_get_forum_home_url()),
];
}