term_id : 0; $paged = max(1, (int) get_query_var('paged', 1)); $view = $forum ? $forum->get_board_view($board_id, [ 'user_id' => $current_user_id, 'paged' => $paged, ]) : [ 'board' => null, 'topics' => [], 'sticky_topics' => [], 'moderators' => [], 'pagination' => ['page' => 1, 'max_pages' => 1, 'total' => 0], 'permissions' => [], 'application' => null, 'board_options' => [], ]; $board_data = $view['board'] ?? null; $topics = $view['topics'] ?? []; $sticky_topics = $view['sticky_topics'] ?? []; $moderators = $view['moderators'] ?? []; $permissions = $view['permissions'] ?? []; $application = $view['application'] ?? null; $board_options = $view['board_options'] ?? []; $compose_url = add_query_arg('board', $board_id, home_url('/compose/')); $admin_forum_url = admin_url('admin.php?page=aksrt-theme-admin#/forum/topics'); // Forum settings — names $forum_settings = class_exists('AKSRT_Settings') ? AKSRT_Settings::get_forum_settings() : []; $forum_names = $forum_settings['names'] ?? []; $name_topic = $forum_names['posts'] ?? __('主题', 'aksrt'); $name_reply = $forum_names['comment'] ?? __('回复', 'aksrt'); $name_sticky = __('置顶', 'aksrt'); $name_featured = __('精华', 'aksrt'); ?>

0 ? ' is-sticky is-sticky-' . (int) ($topic['sticky_level'] ?? 0) : ''; ?>
0 && $item_sticky_label !== '') : $item_sticky_mod = $item_sticky_level >= 3 ? 'global' : ($item_sticky_level === 2 ? 'super' : 'plate'); ?>
0 ? 0 : 1; ?>
1) : ?>
(int) ($view['pagination']['max_pages'] ?? 1), 'current' => $paged, 'prev_text' => '', 'next_text' => '', ]); ?>