Move 288 types from global AKSRT_* + inc/classes manual requires into
namespace AKSRT\{Domain} under src/AKSRT/, wire composer.json psr-4,
and slim bootstrap to helpers/modules/hooks only. Split multi-class
widget/gateway files, update admin contract audit paths, and document
the layout in ADR/README.
35 lines
1.4 KiB
PHP
35 lines
1.4 KiB
PHP
<?php
|
|
/**
|
|
* @package AKSRT
|
|
*/
|
|
|
|
namespace AKSRT\Admin\Schema;
|
|
|
|
defined('ABSPATH') || exit;
|
|
|
|
class SchemaForumBoardPage {
|
|
|
|
public static function build(): array {
|
|
return [
|
|
'key' => 'board_page',
|
|
'title' => '版块页面',
|
|
'version' => '1.0.0',
|
|
'option_key' => 'aksrt_settings',
|
|
'groups' => [
|
|
['key' => 'layout', 'title' => '版块页布局', 'fields' => [
|
|
['key' => 'bbs_plate_top_info_s', 'label' => '版块信息卡', 'type' => 'switch', 'default' => true, 'help' => '版块页顶部显示版块详情卡片'],
|
|
['key' => 'bbs_plate_tab', 'label' => '版块栏目', 'type' => 'group', 'default' => [
|
|
['label' => '全部', 'sort' => 'date'],
|
|
['label' => '推荐', 'sort' => 'featured'],
|
|
['label' => '最新回复', 'sort' => 'last_reply'],
|
|
['label' => '热门', 'sort' => 'hot'],
|
|
['label' => '精华', 'sort' => 'essence'],
|
|
]],
|
|
['key' => 'bbs_plate_tab_active_index', 'label' => '默认选中 Tab', 'type' => 'number', 'default' => 0, 'min' => 0],
|
|
['key' => 'bbs_plate_tab_swiper', 'label' => '移动端滑动切换', 'type' => 'switch', 'default' => true],
|
|
]],
|
|
],
|
|
];
|
|
}
|
|
}
|