More base setup and integration with AdminLTE
This commit is contained in:
@@ -14,12 +14,12 @@ return [
|
||||
|--------------------------------------------------------------------------
|
||||
| File path where themes will be located.
|
||||
| Can be outside default views path EG: resources/themes
|
||||
| Leave it null if you place your themes in the default views folder
|
||||
| Leave it null if you place your themes in the default views folder
|
||||
| (as defined in config\views.php)
|
||||
|--------------------------------------------------------------------------
|
||||
*/
|
||||
|
||||
'themes_path' => null, // eg: realpath(base_path('resources/themes'))
|
||||
'themes_path' => realpath(base_path('resources/theme')), // eg: realpath(base_path('resources/themes'))
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
@@ -28,28 +28,28 @@ return [
|
||||
|--------------------------------------------------------------------------
|
||||
*/
|
||||
|
||||
'asset_not_found' => 'LOG_ERROR',
|
||||
'asset_not_found' => 'THROW_EXCEPTION',
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Set the Active Theme. Can be set at runtime with:
|
||||
| Themes::set('theme-name');
|
||||
| Themes::set('theme-name');
|
||||
|--------------------------------------------------------------------------
|
||||
*/
|
||||
|
||||
'active' => 'default',
|
||||
'active' => 'metronic-fe',
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Define available themes. Format:
|
||||
|
|
||||
| 'theme-name' => [
|
||||
| 'extends' => 'theme-to-extend', // optional
|
||||
| 'views-path' => 'path-to-views', // defaults to: resources/views/theme-name
|
||||
| 'asset-path' => 'path-to-assets', // defaults to: public/theme-name
|
||||
| 'extends' => 'theme-to-extend', // optional
|
||||
| 'views-path' => 'path-to-views', // defaults to: resources/views/theme-name
|
||||
| 'asset-path' => 'path-to-assets', // defaults to: public/theme-name
|
||||
|
|
||||
| // you can add your own custom keys and retrieve them with Theme::config('key');
|
||||
| 'key' => 'value',
|
||||
| // you can add your own custom keys and retrieve them with Theme::getSetting('key');
|
||||
| 'key' => 'value',
|
||||
| ],
|
||||
|
|
||||
|--------------------------------------------------------------------------
|
||||
@@ -57,41 +57,18 @@ return [
|
||||
|
||||
'themes' => [
|
||||
|
||||
'default' => [
|
||||
'metronic-fe' => [
|
||||
'extends' => null,
|
||||
'views-path' => '',
|
||||
'asset-path' => '',
|
||||
'views-path' => 'frontend/metronic',
|
||||
'asset-path' => 'theme/frontend/metronic',
|
||||
],
|
||||
|
||||
'sbadmindemo' => [
|
||||
'metronic-be' => [
|
||||
'extends' => null,
|
||||
'views-path' => null,
|
||||
'asset-path' => null,
|
||||
]
|
||||
'views-path' => 'backend/metronic',
|
||||
'asset-path' => 'theme/backend/metronic',
|
||||
],
|
||||
|
||||
// Add your themes here...
|
||||
|
||||
/*--------------[ Example Structre ]-------------
|
||||
|
||||
// Recomended (all defaults) : Assets -> \public\BasicTheme , Views -> \resources\views\BasicTheme
|
||||
|
||||
'BasicTheme',
|
||||
|
||||
|
||||
// This theme shares the views with BasicTheme but defines its own assets in \public\SomeTheme
|
||||
|
||||
'SomeTheme' => [
|
||||
'views-path' => 'BasicTheme',
|
||||
],
|
||||
|
||||
|
||||
// This theme extends BasicTheme and ovverides SOME views\assets in its folders
|
||||
|
||||
'AnotherTheme' => [
|
||||
'extends' => 'BasicTheme',
|
||||
],
|
||||
|
||||
------------------------------------------------*/
|
||||
],
|
||||
|
||||
];
|
||||
|
Reference in New Issue
Block a user