feat(forum): add complete forum workflows

This commit is contained in:
kate522 committed 2026-11-11 00:09:43 +08:00
1 parent a254cbd3e9
commit ee65fc7fd2
39 files changed
+3425 -4

No files matched your search

@@ -160,6 +160,10 @@ function jio_get_search_type_options(): array {
'post' => __('文章', 'jio'),
'user' => __('用户', 'jio'),
];
if (class_exists('\\Jio\\Forum\\Core') && \Jio\Forum\Core::enabled() && jio_get_setting('jio_forum_search_enabled', true)) {
$label_map['forum'] = __('帖子', 'jio');
$label_map['plate'] = __('版块', 'jio');
}
if (!class_exists('\Jio\Settings\Settings')) {
return ['post' => $label_map['post']];
@@ -175,6 +179,10 @@ function jio_get_search_type_options(): array {
$options[$type] = $label_map[$type];
}
}
if (isset($label_map['forum'])) {
$options['forum'] = $label_map['forum'];
$options['plate'] = $label_map['plate'];
}
if (empty($options)) {
$options['post'] = $label_map['post'];