mirror of
https://github.com/lkddi/nexusphp.git
synced 2026-04-14 04:20:49 +08:00
change category form schema
This commit is contained in:
@@ -225,11 +225,21 @@ class SearchBox extends NexusModel
|
||||
return Setting::get('main.browsecat');
|
||||
}
|
||||
|
||||
public static function getBrowseSearchBox()
|
||||
{
|
||||
return self::query()->find(self::getBrowseMode());
|
||||
}
|
||||
|
||||
public static function getSpecialMode()
|
||||
{
|
||||
return Setting::get('main.specialcat');
|
||||
}
|
||||
|
||||
public static function getSpecialSearchBox()
|
||||
{
|
||||
return self::query()->find(self::getSpecialMode());
|
||||
}
|
||||
|
||||
public function isSectionBrowse(): bool
|
||||
{
|
||||
return $this->id == self::getBrowseMode();
|
||||
|
||||
Reference in New Issue
Block a user