feat(admin): rebuild page display settings

This commit is contained in:
kate522 committed 2026-08-19 00:07:13 +08:00
1 parent 09b1e8fd35
commit 480e2bf07e
117 files changed
+1815 -9081

No files matched your search

-20
View File
@@ -48,7 +48,6 @@ if (!function_exists('aksrt_homepage_get_latest_query')) {
return $query;
}
}
if (!function_exists('aksrt_homepage_get_tab_query')) {
/**
* Build a category-tab query.
@@ -100,7 +99,6 @@ if (!function_exists('aksrt_homepage_get_tab_query')) {
return $queries[$cache_key];
}
}
if (!function_exists('aksrt_homepage_has_active_sidebars')) {
/**
* Check whether any sidebar in the given stack is active.
@@ -362,21 +360,3 @@ if (!function_exists('aksrt_homepage_render_posts_grid')) {
}
}
}
if (!function_exists('aksrt_homepage_render_section')) {
/**
* Render the remaining first-class homepage banner section.
*
* These are fixed homepage sections, not a freeform module canvas bridge.
*/
function aksrt_homepage_render_section(string $type): void {
$type = sanitize_key($type);
if ($type !== 'banner') {
return;
}
// Fixed homepage owns these sections directly.
// Header slider is rendered by aksrt_header_slide(), never by this module path.
get_template_part('templates/parts/home-modules/module', $type);
}
}