'far fa-clock', 'text' => sprintf(__('发布于 %s', 'aksrt'), get_the_date()), ]; } $author_meta_items[] = [ 'icon' => 'far fa-eye', 'text' => sprintf(__('浏览 %s', 'aksrt'), function_exists('aksrt_format_number') ? aksrt_format_number($views) : number_format_i18n($views)), ]; $author_meta_items[] = [ 'icon' => 'fas fa-download', 'text' => sprintf(__('下载 %s', 'aksrt'), number_format_i18n($downloads)), ]; if ($word_count > 0) { $author_meta_items[] = [ 'icon' => 'far fa-file-word', 'text' => sprintf(__('约 %s 字', 'aksrt'), number_format_i18n($word_count)), ]; } if ($reading_minutes > 0) { $author_meta_items[] = [ 'icon' => 'far fa-hourglass-half', 'text' => sprintf(_n('约 %d 分钟', '约 %d 分钟', $reading_minutes, 'aksrt'), $reading_minutes), ]; } $show_action_card = !empty($single_settings['like_enabled']) || !empty($single_settings['favorite_enabled']) || !empty($single_settings['share_enabled']) || !empty($single_settings['print_enabled']) || !empty($single_settings['pdf_export_enabled']); $copyright_text = trim((string) ($single_settings['copyright_text'] ?? '')); if ($copyright_text === '') { $copyright_text = sprintf( /* translators: %s: author display name */ __('本文由 %s 原创发布,转载请注明出处。', 'aksrt'), get_the_author() ); } set_query_var('aksrt_resource_meta', $resource_meta); $is_legacy_resource_shell = true; ?>
>
<?php echo esc_attr(get_the_title()); ?>

'

', 'after' => '

', ]); ?>
'ids']); if (!empty($single_settings['related_enabled']) && !empty($resource_cat_ids)) { $post_types = function_exists('aksrt_resource_post_types') ? aksrt_resource_post_types() : ['post']; $args = [ 'post_type' => $post_types, 'posts_per_page' => (int) ($single_settings['related_count'] ?? 6), 'post__not_in' => [$post_id], 'category__in' => array_map('intval', $resource_cat_ids), 'meta_key' => '_aksrt_res_download_count', 'orderby' => 'meta_value_num', 'order' => 'DESC', 'no_found_rows' => true, ]; if (!post_type_exists('aksrt_resource')) { $args['meta_query'] = [[ 'key' => '_aksrt_is_resource', 'value' => '1', 'compare' => '=', ]]; } $related_resource_query = new WP_Query($args); } if ($related_resource_query instanceof WP_Query && $related_resource_query->have_posts()) : ?>