导入 AKSRT 主题开发源码
This commit is contained in:
1 parent
9681dd3d48
commit
1268a55dd0
595 files changed
+127705
No files matched your search
@@ -0,0 +1,32 @@
|
||||
<?php
|
||||
/**
|
||||
* AKSRT_Admin_Schema_Forum_Homepage section schema.
|
||||
*
|
||||
* @package AKSRT
|
||||
*/
|
||||
|
||||
defined('ABSPATH') || exit;
|
||||
|
||||
class AKSRT_Admin_Schema_Forum_Homepage {
|
||||
|
||||
public static function build(): array {
|
||||
return [
|
||||
'key' => 'homepage',
|
||||
'title' => '首页设置',
|
||||
'version' => '1.0.0',
|
||||
'option_key' => 'aksrt_settings',
|
||||
'groups' => [
|
||||
['key' => 'tabs', 'title' => '首页 Tab', 'fields' => [
|
||||
['key' => 'bbs_home_tab', 'label' => '首页栏目', 'type' => 'group', 'default' => [
|
||||
['type' => 'follow', 'label' => '关注'],
|
||||
['type' => 'synthesis', 'label' => '综合'],
|
||||
['type' => 'plate', 'label' => '版块'],
|
||||
], 'help' => '可拖拽排序,支持 follow / synthesis / plate / tabs 类型'],
|
||||
['key' => 'bbs_home_tab_active_index', 'label' => '默认选中 Tab', 'type' => 'number', 'default' => 1, 'min' => 0],
|
||||
['key' => 'bbs_home_tab_quick_posts_s', 'label' => '快速发帖', 'type' => 'switch', 'default' => true, 'help' => '首页顶部显示快速发帖入口'],
|
||||
['key' => 'bbs_home_tab_swiper', 'label' => '移动端滑动切换', 'type' => 'switch', 'default' => true],
|
||||
]],
|
||||
],
|
||||
];
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user