清理 page-header 传参:主路径改 $args 契约
archive/search/page 不再用 aksrt_ph_* query-var 传参, page.php 同步对齐 content-shell 主结构。
This commit is contained in:
+6
-5
@@ -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,
|
||||
]);
|
||||
?>
|
||||
|
||||
<section class="content-stream content-stream--search content-stream--archive" data-page-kind="search" data-render-mode="<?php echo esc_attr((string) $render_config['mode']); ?>" data-card-style="<?php echo esc_attr((string) $render_config['card_style']); ?>">
|
||||
|
||||
Reference in New Issue
Block a user