priority menu item
This commit is contained in:
@ -32,7 +32,8 @@ class AdminThemeService
|
||||
public function setActiveAdminTheme(string $theme): void
|
||||
{
|
||||
$active_admin_theme = Option::where("key", "active_admin_theme")->first();
|
||||
$active_admin_theme->value = $theme;
|
||||
Debug::prn(getConst($theme));
|
||||
$active_admin_theme->value = getConst($theme);
|
||||
$active_admin_theme->save();
|
||||
}
|
||||
|
||||
@ -44,6 +45,7 @@ class AdminThemeService
|
||||
public function getAdminThemeInfo(string $theme): false|array|string
|
||||
{
|
||||
$info = [];
|
||||
$theme = getConst($theme);
|
||||
$info['path'] = $theme;
|
||||
if (file_exists($theme . "/manifest.json")){
|
||||
$manifest = file_get_contents($theme . "/manifest.json");
|
||||
|
Reference in New Issue
Block a user