'simple', 'show_sidebar' => true, 'show_cover' => false, 'show_desc' => !empty($term->description), 'cover_url' => '', 'description' => (string) $term->description, ]; $has_sidebar = function_exists('aksrt_archive_has_sidebar') ? aksrt_archive_has_sidebar(!empty($archive_settings['show_sidebar'])) : (!empty($archive_settings['show_sidebar']) && is_active_sidebar('tag_sidebar')); $description = !empty($archive_settings['show_desc']) ? wp_kses_post((string) $archive_settings['description']) : ''; $header_style = (string) $archive_settings['header_style']; $ajax_filter = !empty($archive_settings['filter_bar']); $sort_state = function_exists('aksrt_archive_get_sort_state') ? aksrt_archive_get_sort_state((array) ($archive_settings['orderby_option'] ?? [])) : ['current' => 'date', 'links' => []]; $current_sort = $sort_state['current']; $sort_links = $sort_state['links']; $render_config = function_exists('aksrt_archive_get_render_config') ? aksrt_archive_get_render_config(['context' => 'tag']) : ['context' => 'tag']; $filter_groups = []; if (!empty($archive_settings['ajax_category_enabled']) && function_exists('aksrt_archive_build_term_filter_group')) { $group = aksrt_archive_build_term_filter_group('category', (array) ($archive_settings['ajax_category'] ?? []), __('分类', 'aksrt'), $ajax_filter); if ($group !== []) { $filter_groups[] = $group; } } if (!empty($archive_settings['ajax_tag_enabled']) && function_exists('aksrt_archive_build_term_filter_group')) { $group = aksrt_archive_build_term_filter_group('post_tag', (array) ($archive_settings['ajax_tag'] ?? []), __('标签', 'aksrt'), $ajax_filter); if ($group !== []) { $filter_groups[] = $group; } } if (!empty($archive_settings['custom_filter_enabled']) && function_exists('aksrt_archive_build_custom_filter_groups')) { $filter_groups = array_merge( $filter_groups, aksrt_archive_build_custom_filter_groups( (array) ($archive_settings['custom_dimensions'] ?? []), $archive_settings['custom_filter_keys'] ?? 'all', $ajax_filter ) ); } if (function_exists('aksrt_archive_open_shell')) { aksrt_archive_open_shell([ 'main_class' => 'site-main container', 'has_sidebar' => $has_sidebar, 'top_fluid' => ['tag_top_fluid'], 'page_kind' => 'tag', ]); } ?>
$header_style, 'show_cover' => !empty($archive_settings['show_cover']), 'cover_url' => (string) ($archive_settings['cover_url'] ?? ''), 'eyebrow' => __('标签归档', 'aksrt'), 'title' => single_tag_title('', false), 'description' => $description, 'admin_path' => 'page-display/tag', 'admin_label' => __('标签页设置', 'aksrt'), ]); } ?> $ajax_filter, 'ajax_archive' => 'tag', 'term_id' => (int) $term->term_id, 'aria_label' => __('标签工具条', 'aksrt'), 'meta_text' => !empty($archive_settings['post_count']) ? sprintf(_n('%d 篇文章', '%d 篇文章', (int) $term->count, 'aksrt'), (int) $term->count) : '', 'groups' => $filter_groups, 'sort_enabled' => !empty($archive_settings['orderby_enabled']), 'sort_current' => $current_sort, 'sort_links' => $sort_links, 'sort_labels' => class_exists('\AKSRT\Settings\Settings') ? \AKSRT\Settings\Settings::homepage_sort_labels() : [], 'sort_as_main' => true, ]); } ?> 'tag', 'query_context' => 'archive', 'stream_class' => 'archive__ajax-wrap content-stream--archive content-stream--tag', 'empty_text' => __('该标签下暂无文章', 'aksrt'), 'ajax_enabled' => $ajax_filter, 'show_loading' => $ajax_filter, ]); } ?>
$has_sidebar, 'bottom_fluid' => ['tag_bottom_fluid'], ]); } get_footer();