feat(admin): rebuild page display settings

This commit is contained in:
2026-08-19 00:07:13 +08:00
parent 09b1e8fd35
commit 480e2bf07e
117 changed files with 1815 additions and 9081 deletions
+1 -6
View File
@@ -50,7 +50,7 @@ trait DisplayPageGroups {
* 获取顶部多功能组件设置
*/
public static function get_header_slider_settings(): array {
$s = self::get_all();
$s = self::read_domain('page_display', 'header-components');
$allowed_page_types = [
'home',
'category',
@@ -59,10 +59,6 @@ trait DisplayPageGroups {
'single',
'search',
'page',
'topics',
'forum_home',
'forum_plate',
'forum_post',
];
$show_on = isset($s['header_slider_show']) ? (array) $s['header_slider_show'] : [];
$show_on = array_values(array_intersect(
@@ -218,7 +214,6 @@ trait DisplayPageGroups {
'tag' => self::get_tag_page_settings(),
'user_home' => self::get_user_home_settings(),
'other' => self::get_other_page_settings(),
'background' => self::get_global_background_settings(),
];
}