mirror of
https://github.com/v2board/v2board.git
synced 2025-06-15 14:17:48 +08:00
update: theme
This commit is contained in:
@ -23,14 +23,10 @@ Route::get('/', function (Request $request) {
|
||||
'title' => config('v2board.app_name', 'V2Board'),
|
||||
'theme' => config('v2board.frontend_theme', 'v2board'),
|
||||
'theme_path' => '/theme/' . config('v2board.frontend_theme', 'v2board') . '/assets/',
|
||||
'theme_sidebar' => config('v2board.frontend_theme_sidebar', 'light'),
|
||||
'theme_header' => config('v2board.frontend_theme_header', 'dark'),
|
||||
'theme_color' => config('v2board.frontend_theme_color', 'default'),
|
||||
'background_url' => config('v2board.frontend_background_url'),
|
||||
'version' => config('app.version'),
|
||||
'description' => config('v2board.app_description', 'V2Board is best'),
|
||||
'crisp_id' => config('v2board.frontend_customer_service_method') === 'crisp' ? config('v2board.frontend_customer_service_id') : ''
|
||||
'description' => config('v2board.app_description', 'V2Board is best')
|
||||
];
|
||||
$renderParams['theme_config'] = config('theme.' . config('v2board.frontend_theme', 'v2board'));
|
||||
return view('theme::' . config('v2board.frontend_theme', 'v2board') . '.dashboard', $renderParams);
|
||||
});
|
||||
|
||||
|
Reference in New Issue
Block a user