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:
@@ -235,6 +235,14 @@ class AKSRT_Forum {
|
||||
$this->view_builder()->ajax_home_tab();
|
||||
}
|
||||
|
||||
public function ajax_board_topics(): void {
|
||||
$this->view_builder()->ajax_board_topics();
|
||||
}
|
||||
|
||||
public function render_board_cards(array $boards): void {
|
||||
$this->view_builder()->render_board_cards($boards);
|
||||
}
|
||||
|
||||
public function render_topic_row(array $topic): void {
|
||||
$this->view_builder()->render_topic_row($topic);
|
||||
}
|
||||
@@ -365,6 +373,10 @@ class AKSRT_Forum {
|
||||
add_action('wp_ajax_aksrt_forum_home_tab', [$this, 'ajax_home_tab']);
|
||||
add_action('wp_ajax_nopriv_aksrt_forum_home_tab', [$this, 'ajax_home_tab']);
|
||||
|
||||
// Public plate/board topic list (sort tabs)
|
||||
add_action('wp_ajax_aksrt_forum_board_topics', [$this, 'ajax_board_topics']);
|
||||
add_action('wp_ajax_nopriv_aksrt_forum_board_topics', [$this, 'ajax_board_topics']);
|
||||
|
||||
add_action('admin_init', [$this, 'maybe_migrate_boards'], 25);
|
||||
add_filter('template_include', [$this, 'template_routing']);
|
||||
add_action('wp', [$this, 'maybe_refresh_recommend_on_view']);
|
||||
|
||||
Reference in New Issue
Block a user