default theme
This commit is contained in:
@ -63,6 +63,20 @@ class AdminConsoleController extends ConsoleController
|
||||
);
|
||||
$this->out->r("create option active_admin_theme", "green");
|
||||
|
||||
$this->optionService->createFromParams(
|
||||
key: "theme_paths",
|
||||
value: "{\"paths\": [\"{KERNEL}/themes\", \"{APP}/themes\"]}",
|
||||
label: "Пути к темам сайта"
|
||||
);
|
||||
$this->out->r("create option theme_paths", "green");
|
||||
|
||||
$this->optionService->createFromParams(
|
||||
key: "active_theme",
|
||||
value: "{KERNEL}/themes/default",
|
||||
label: "Активная тема сайта"
|
||||
);
|
||||
$this->out->r("create option active_theme", "green");
|
||||
|
||||
$this->optionService->createFromParams(
|
||||
key: "module_paths",
|
||||
value: "{\"paths\": [\"{KERNEL_MODULES}\", \"{APP}/modules\"]}",
|
||||
@ -72,7 +86,7 @@ class AdminConsoleController extends ConsoleController
|
||||
|
||||
$this->optionService->createFromParams(
|
||||
key: "active_modules",
|
||||
value: "{\"modules\":[\"admin_themes\", \"secure\", \"user\", \"menu\", \"post\", \"option\"]}",
|
||||
value: "{\"modules\":[\"admin_themes\",\"themes\",\"secure\", \"user\", \"menu\", \"post\", \"option\"]}",
|
||||
label: "Активные модули"
|
||||
);
|
||||
$this->out->r("create option active_modules", "green");
|
||||
@ -133,6 +147,14 @@ class AdminConsoleController extends ConsoleController
|
||||
]);
|
||||
$this->out->r("create item menu admin-themes", "green");
|
||||
|
||||
$this->menuService->createItem([
|
||||
"label" => "Темы сайта",
|
||||
"url" => "/admin/settings/themes",
|
||||
"slug" => "themes",
|
||||
"parent_slug" => "settings"
|
||||
]);
|
||||
$this->out->r("create item menu themes", "green");
|
||||
|
||||
$this->menuService->createItem([
|
||||
"label" => "Меню",
|
||||
"url" => "/admin/settings/menu",
|
||||
|
Reference in New Issue
Block a user