update: custom theme

This commit is contained in:
tokumeikoi 2021-07-29 02:36:51 +09:00
parent 6a336d4253
commit de045c79f5
2 changed files with 8 additions and 7 deletions

View File

@ -2,9 +2,9 @@
<html>
<head>
<link rel="stylesheet" href="/theme/v2board/assets/components.chunk.css?v={{$verison}}">
<link rel="stylesheet" href="/theme/v2board/assets/umi.css?v={{$verison}}">
<link rel="stylesheet" href="/theme/v2board/assets/custom.css?v={{$verison}}">
<link rel="stylesheet" href="/theme/{{$theme}}/assets/components.chunk.css?v={{$verison}}">
<link rel="stylesheet" href="/theme/{{$theme}}/assets/umi.css?v={{$verison}}">
<link rel="stylesheet" href="/theme/{{$theme}}/assets/custom.css?v={{$verison}}">
<meta charset="utf-8">
<meta name="viewport" content="width=device-width,initial-scale=1,maximum-scale=1,minimum-scale=1,user-scalable=no">
<title>{{$title}}</title>
@ -28,9 +28,9 @@
<body>
<div id="root"></div>
<script src="/theme/v2board/assets/vendors.async.js?v={{$verison}}"></script>
<script src="/theme/v2board/assets/components.async.js?v={{$verison}}"></script>
<script src="/theme/v2board/assets/umi.js?v={{$verison}}"></script>
<script src="/theme/{{$theme}}/assets/vendors.async.js?v={{$verison}}"></script>
<script src="/theme/{{$theme}}/assets/components.async.js?v={{$verison}}"></script>
<script src="/theme/{{$theme}}/assets/umi.js?v={{$verison}}"></script>
<!-- Global site tag (gtag.js) - Google Analytics -->
<script async src="https://www.googletagmanager.com/gtag/js?id=G-P1E9Z5LRRK"></script>
<script>

View File

@ -21,6 +21,7 @@ Route::get('/', function (Request $request) {
}
$renderParams = [
'title' => config('v2board.app_name', 'V2Board'),
'theme' => config('v2board.frontend_theme', 'v2board'),
'theme_sidebar' => config('v2board.frontend_theme_sidebar', 'light'),
'theme_header' => config('v2board.frontend_theme_header', 'dark'),
'theme_color' => config('v2board.frontend_theme_color', 'default'),
@ -29,7 +30,7 @@ Route::get('/', function (Request $request) {
'description' => config('v2board.app_description', 'V2Board is best'),
'crisp_id' => config('v2board.frontend_customer_service_method') === 'crisp' ? config('v2board.frontend_customer_service_id') : ''
];
return view('theme::v2board.dashboard', $renderParams);
return view('theme::' . config('v2board.frontend_theme', 'v2board') . '.dashboard', $renderParams);
});
Route::get('/' . config('v2board.frontend_admin_path', 'admin'), function () {