进行了一些小修复

This commit is contained in:
2026-08-26 15:29:37 +08:00
parent ae10b3d3fd
commit 562beb15cf
6 changed files with 206 additions and 43 deletions
+3 -3
View File
@@ -72,9 +72,9 @@ if (!function_exists('aksrt_single_build_context')) :
$pay_meta = function_exists('aksrt_get_pay_meta') ? aksrt_get_pay_meta($post_id) : ['pay_type' => 'no'];
$pay_type = (string) ($pay_meta['pay_type'] ?? 'no');
$is_paid_post = function_exists('aksrt_is_paid_post') && aksrt_is_paid_post($post_id);
// Paid-reading purchase is rendered inline by each payshow shortcode.
// Keep the article-level module for download, gallery, video and VIP only.
$show_pay_box = $is_paid_post && !in_array($pay_type, ['no', 'reading'], true);
// Unpaid reading fragments own their inline purchase card. Once access is
// granted, the article-level slot shows the canonical purchased card.
$show_pay_box = $is_paid_post && $pay_type !== 'no';
$breadcrumbs_html = '';
if (!empty($settings['breadcrumbs']) && function_exists('aksrt_breadcrumbs')) {