feat(admin): rebuild page display settings
This commit is contained in:
@@ -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(),
|
||||
];
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user