get_topic_view($topic_id, $current_user_id) : [ 'topic' => null, 'board' => null, 'permissions' => [], 'board_options' => [], 'visibility_options' => [], 'review_options' => [], ]; $topic = $view['topic'] ?? null; $board = $view['board'] ?? null; $permissions = $view['permissions'] ?? []; $board_options = $view['board_options'] ?? []; $visibility_options = $view['visibility_options'] ?? []; $review_options = $view['review_options'] ?? []; // Forum settings for names, breadcrumbs, reply $forum_settings = class_exists('AKSRT_Settings') ? AKSRT_Settings::get_forum_settings() : []; $forum_names = $forum_settings['names'] ?? []; $forum_bc = $forum_settings['post_page'] ?? []; $reply_settings = $forum_settings['reply'] ?? []; $show_breadcrumbs = $forum_bc['breadcrumbs'] ?? true; $bc_show_home = $forum_bc['breadcrumbs_bbs_home'] ?? true; $bc_forum_name = $forum_bc['breadcrumbs_bbs_home_name'] ?: ($forum_names['forum'] ?? __('论坛', 'aksrt')); $reply_placeholder = $reply_settings['placeholder'] ?? __('写下你的回复…', 'aksrt'); $name_sticky = $forum_names['posts'] ?? __('置顶', 'aksrt'); $name_featured = $forum_names['topic'] ?? __('精华', 'aksrt'); $name_reply = $forum_names['comment'] ?? __('回复', 'aksrt'); if (!$topic) { get_template_part('templates/parts/content', 'none'); get_footer(); return; } if (empty($topic['can_view'])) : $deny_vis = $topic['visibility']['key'] ?? ''; $credits_cost = (int) get_post_meta($topic_id, '_aksrt_credits_cost', true); $pay_price = get_post_meta($topic_id, '_aksrt_pay_price', true); ?>

0) : ?>

0 && function_exists('aksrt_is_vip') && aksrt_is_vip($viewer_id); if (!$is_vip_user && $viewer_id > 0 && function_exists('aksrt_is_vip_exempt') && aksrt_is_vip_exempt($viewer_id)) { $is_vip_user = true; } $charge_amount = (float) $pay_price; $is_free_vip = false; if ($is_vip_user && $vip_set) { $charge_amount = max(0.0, (float) $vip_price_raw); $is_free_vip = $charge_amount <= 0; } ?>

$charge_amount) { echo ' ' . esc_html(sprintf(__('原价 ¥%s', 'aksrt'), number_format((float) $pay_price, 2, '.', ''))) . ''; } } ?>

increment_view_count($topic_id); $topic['views'] = (int) ($topic['views'] ?? 0) + 1; } $is_locked = !empty($topic['locked']); $comments_enabled = !empty($permissions['can_reply']); ?>
/ /

0 && $sticky_label !== '') : $sticky_mod = $sticky_level >= 3 ? 'global' : ($sticky_level === 2 ? 'super' : 'plate'); ?>

0) : ?>
0) : ?> 0) : ?>

0) : ?>

get_forum_comments($topic_id, 'newest', false, 1, 30); $forum->render_forum_comments($reply_data['comments'], $topic_id, $reply_data['adopted_id']); $reply_max_pages = $reply_data['max_pages']; $reply_total = $reply_data['total']; } else { $reply_max_pages = 1; $reply_total = 0; } ?>
1) : ?>

'', 'comment_notes_before' => '', 'comment_field' => '
', 'submit_button' => '', 'submit_field' => '
%1$s %2$s
', ]); ?>