fix
This commit is contained in:
@@ -69,7 +69,6 @@ if (!function_exists('aksrt_single_build_context')) :
|
||||
}
|
||||
|
||||
$show_cover = !empty($settings['show_cover']) && (string) ($settings['cover_url'] ?? '') !== '';
|
||||
$show_toc = !empty($settings['toc_enabled']);
|
||||
$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');
|
||||
@@ -114,8 +113,7 @@ if (!function_exists('aksrt_single_build_context')) :
|
||||
'post_id' => $post_id,
|
||||
'settings' => $settings,
|
||||
'show_cover' => $show_cover,
|
||||
'show_toc' => $show_toc,
|
||||
'cover_url' => (string) ($settings['cover_url'] ?? ''),
|
||||
'cover_url' => (string) ($settings['cover_url'] ?? ''),
|
||||
'cover_type' => (string) ($settings['cover_type'] ?? 'none'),
|
||||
'img_scale' => (int) ($settings['article_image_cover_scale'] ?? 35),
|
||||
'video_scale' => (int) ($settings['article_video_cover_scale'] ?? 56),
|
||||
@@ -146,7 +144,6 @@ if (!function_exists('aksrt_single_build_context')) :
|
||||
'breadcrumbs_html' => $breadcrumbs_html,
|
||||
'status_badge' => $status_badge,
|
||||
'show_aside' => $show_aside,
|
||||
'toc_title' => __('文章目录', 'aksrt'),
|
||||
];
|
||||
}
|
||||
endif;
|
||||
|
||||
Reference in New Issue
Block a user