diff --git a/archive.php b/archive.php index 1792a1b5..f976fcff 100644 --- a/archive.php +++ b/archive.php @@ -53,11 +53,12 @@ if (function_exists('aksrt_archive_open_shell')) { aksrt_render_admin_quick_link('post-list/list', __('列表样式设置', 'aksrt')); } $admin_link = trim((string) ob_get_clean()); - set_query_var('aksrt_ph_eyebrow', __('内容归档', 'aksrt')); - set_query_var('aksrt_ph_title', get_the_archive_title()); - set_query_var('aksrt_ph_desc', $archive_summary); - set_query_var('aksrt_ph_extra', $admin_link); - get_template_part('templates/parts/page-header'); + get_template_part('templates/parts/page-header', null, [ + 'eyebrow' => __('内容归档', 'aksrt'), + 'title' => get_the_archive_title(), + 'desc' => $archive_summary, + 'extra' => $admin_link, + ]); ?> " aria-valuemin="0" aria-valuemax="100" aria-valuenow="0"> -
+
@@ -31,52 +31,54 @@ $show_sidebar = function_exists('aksrt_is_show_sidebar') ? aksrt_is_show_sidebar
-
"> +
get_the_title(), + ]; + if ($ph_style_override !== null) { + $header_args['style'] = $ph_style_override; + } + if ($page_cover !== '') { + $header_args['cover'] = esc_url($page_cover); + } ?>
> - + - +
- +
'', - ) - ); + wp_link_pages([ + 'before' => '', + ]); ?>
'; comments_template(); echo '
'; @@ -92,7 +94,7 @@ $show_sidebar = function_exists('aksrt_is_show_sidebar') ? aksrt_is_show_sidebar - +
diff --git a/search.php b/search.php index 76e72525..55091dfa 100644 --- a/search.php +++ b/search.php @@ -145,11 +145,12 @@ if (function_exists('aksrt_archive_open_shell')) { aksrt_render_admin_quick_link('page-display/other', __('搜索页设置', 'aksrt')); } $admin_link = trim((string) ob_get_clean()); - set_query_var('aksrt_ph_eyebrow', __('站内搜索', 'aksrt')); - set_query_var('aksrt_ph_title', $search_title); - set_query_var('aksrt_ph_desc', $search_desc); - set_query_var('aksrt_ph_extra', $admin_link); - get_template_part('templates/parts/page-header'); + get_template_part('templates/parts/page-header', null, [ + 'eyebrow' => __('站内搜索', 'aksrt'), + 'title' => $search_title, + 'desc' => $search_desc, + 'extra' => $admin_link, + ]); ?>
- +
>