进行了一些小修复

This commit is contained in:
kate522 committed 2026-08-26 15:11:25 +08:00
1 parent d37c34f71c
commit ae10b3d3fd
16 files changed
+278 -417

No files matched your search

+1 -3
View File
@@ -69,13 +69,12 @@ if (!function_exists('aksrt_single_build_context')) :
}
$show_cover = !empty($settings['show_cover']) && (string) ($settings['cover_url'] ?? '') !== '';
$has_download = function_exists('aksrt_is_downloadable_content') && aksrt_is_downloadable_content($post_id);
$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 = $has_download || ($is_paid_post && !in_array($pay_type, ['no', 'download', 'reading'], true));
$show_pay_box = $is_paid_post && !in_array($pay_type, ['no', 'reading'], true);
$breadcrumbs_html = '';
if (!empty($settings['breadcrumbs']) && function_exists('aksrt_breadcrumbs')) {
@@ -136,7 +135,6 @@ if (!function_exists('aksrt_single_build_context')) :
'front_content' => (string) ($settings['front_content'] ?? ''),
'after_content' => (string) ($settings['after_content'] ?? ''),
'content_maxheight' => !empty($settings['maxheight_enabled']) ? max(0, (int) ($settings['maxheight'] ?? 0)) : 0,
'has_download' => $has_download,
'show_pay_box' => $show_pay_box,
'pay_type' => $pay_type,
'is_paid_post' => $is_paid_post,