feat(navigation): hard-switch to Zibll navigation and Font Awesome 5
This commit is contained in:
1 parent
3c3ddac8be
commit
a0b84977a2
630 files changed
+101647
-11293
No files matched your search
@@ -77,6 +77,9 @@ class Settings {
|
||||
|
||||
// 搜索结果排除(search_no_page / search_exclude_cats)
|
||||
add_action('pre_get_posts', [self::class, 'filter_search_query']);
|
||||
add_filter('posts_search', [ThemeSearch::class, 'filter_posts_search'], 50, 2);
|
||||
add_filter('posts_join', [ThemeSearch::class, 'filter_posts_search_join'], 50, 2);
|
||||
add_filter('posts_distinct', [ThemeSearch::class, 'filter_posts_search_distinct'], 50, 2);
|
||||
|
||||
// 全局列表默认排序(list_orderby)
|
||||
add_action('pre_get_posts', [self::class, 'apply_list_orderby']);
|
||||
@@ -236,13 +239,6 @@ class Settings {
|
||||
|
||||
|
||||
|
||||
/** 获取搜索模式 */
|
||||
public static function search_mode(): string {
|
||||
return ThemeSearch::search_mode();
|
||||
}
|
||||
|
||||
|
||||
|
||||
/** 是否启用搜索历史 */
|
||||
public static function search_history_enabled(): bool {
|
||||
return ThemeSearch::search_history_enabled();
|
||||
@@ -278,13 +274,6 @@ class Settings {
|
||||
|
||||
|
||||
|
||||
/** 是否启用搜索建议 */
|
||||
public static function search_suggestions_enabled(): bool {
|
||||
return ThemeSearch::search_suggestions_enabled();
|
||||
}
|
||||
|
||||
|
||||
|
||||
/** 是否在搜索面板显示热门文章 */
|
||||
public static function search_posts_enabled(): bool {
|
||||
return ThemeSearch::search_posts_enabled();
|
||||
@@ -320,8 +309,8 @@ class Settings {
|
||||
|
||||
|
||||
|
||||
/** 是否显示更多分类 */
|
||||
public static function search_more_cat_obj(): bool {
|
||||
/** 允许用户选择的更多分类 ID */
|
||||
public static function search_more_cat_obj(): array {
|
||||
return ThemeSearch::search_more_cat_obj();
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user