get_board_view($plate_id, [ 'user_id' => $current_user_id, 'paged' => $paged, 'orderby' => $forum_sort, ]) : [ 'board' => null, 'topics' => [], 'sticky_topics' => [], 'moderators' => [], 'pagination' => ['page' => 1, 'max_pages' => 1, 'total' => 0], 'permissions' => [], 'application' => null, 'board_options' => [], 'tabs' => [], 'active_sort' => 'date', 'top_info' => true, 'compose_url' => function_exists('aksrt_get_forum_compose_url') ? aksrt_get_forum_compose_url() : home_url('/'), ]; $board_data = $view['board'] ?? null; $topics = $view['topics'] ?? []; $sticky_topics = $view['sticky_topics'] ?? []; $moderators = $view['moderators'] ?? []; $permissions = $view['permissions'] ?? []; $application = $view['application'] ?? null; $tabs = is_array($view['tabs'] ?? null) ? $view['tabs'] : []; $active_sort = sanitize_key((string) ($view['active_sort'] ?? 'date')); $top_info = !isset($view['top_info']) || !empty($view['top_info']); $compose_url = (string) ($view['compose_url'] ?? (function_exists('aksrt_get_forum_compose_url') ? aksrt_get_forum_compose_url(['board' => $plate_id]) : home_url('/'))); $plate_url = !empty($board_data['url']) ? (string) $board_data['url'] : (string) get_permalink($plate_id); $nonce = wp_create_nonce('aksrt_public_nonce'); $forum_settings = class_exists('\AKSRT\Settings\Settings') ? \AKSRT\Settings\Settings::get_forum_settings() : []; $forum_names = $forum_settings['names'] ?? []; $name_topic = $forum_names['posts'] ?? __('主题', 'aksrt'); $name_reply = $forum_names['comment'] ?? __('回复', 'aksrt'); $is_followed = $forum && $current_user_id > 0 ? $forum->is_user_following_plate($current_user_id, $plate_id) : false; $max_pages = (int) ($view['pagination']['max_pages'] ?? 1); ?>
'; dynamic_sidebar('bbs_plate_top_fluid'); echo ''; } ?>

is_plate_follow_pay_enabled($plate_id) : ((int) get_post_meta($plate_id, '_aksrt_follow_pay', true) === 1); $follow_pay_modo = sanitize_key((string) (get_post_meta($plate_id, '_aksrt_follow_pay_modo', true) ?: 'money')); $allow_guest_plate = $current_user_id <= 0 && $follow_pay_on && $follow_pay_modo === 'money' && function_exists('aksrt_allow_guest_forum_pay') && aksrt_allow_guest_forum_pay(get_post($plate_id)); $guest_followed = $current_user_id <= 0 && function_exists('aksrt_guest_has_plate_follow_access') && aksrt_guest_has_plate_follow_access($plate_id); ?> 0) : ?>

is_forum_admin($current_user_id); $is_plate_author = $board_data && (int) ($board_data['author_id'] ?? 0) === $current_user_id; ?>
render_topic_row($topic); } ?>

1) : ?>
$max_pages, 'current' => $paged, 'prev_text' => '', 'next_text' => '', 'add_args' => $active_sort !== '' ? ['forum_sort' => $active_sort] : [], ]); ?>