2016-10-14 04:06:12 +00:00
|
|
|
<?php
|
|
|
|
|
|
|
|
return [
|
|
|
|
|
|
|
|
/*
|
|
|
|
|--------------------------------------------------------------------------
|
|
|
|
| Switch this package on/off. Usefull for testing...
|
|
|
|
|--------------------------------------------------------------------------
|
|
|
|
*/
|
|
|
|
|
|
|
|
'enabled' => true,
|
|
|
|
|
|
|
|
/*
|
|
|
|
|--------------------------------------------------------------------------
|
|
|
|
| File path where themes will be located.
|
|
|
|
| Can be outside default views path EG: resources/themes
|
2016-10-20 14:40:52 +00:00
|
|
|
| Leave it null if you place your themes in the default views folder
|
2016-10-14 04:06:12 +00:00
|
|
|
| (as defined in config\views.php)
|
|
|
|
|--------------------------------------------------------------------------
|
|
|
|
*/
|
|
|
|
|
2016-10-20 14:40:52 +00:00
|
|
|
'themes_path' => realpath(base_path('resources/theme')), // eg: realpath(base_path('resources/themes'))
|
2016-10-14 04:06:12 +00:00
|
|
|
|
|
|
|
/*
|
|
|
|
|--------------------------------------------------------------------------
|
|
|
|
| Set behavior if an asset is not found in a Theme hierarcy.
|
|
|
|
| Available options: THROW_EXCEPTION | LOG_ERROR | ASSUME_EXISTS | IGNORE
|
|
|
|
|--------------------------------------------------------------------------
|
|
|
|
*/
|
|
|
|
|
2016-10-20 14:40:52 +00:00
|
|
|
'asset_not_found' => 'THROW_EXCEPTION',
|
2016-10-14 04:06:12 +00:00
|
|
|
|
|
|
|
/*
|
|
|
|
|--------------------------------------------------------------------------
|
|
|
|
| Set the Active Theme. Can be set at runtime with:
|
2016-10-20 14:40:52 +00:00
|
|
|
| Themes::set('theme-name');
|
2016-10-14 04:06:12 +00:00
|
|
|
|--------------------------------------------------------------------------
|
|
|
|
*/
|
|
|
|
|
2016-10-20 14:40:52 +00:00
|
|
|
'active' => 'metronic-fe',
|
2016-10-14 04:06:12 +00:00
|
|
|
|
|
|
|
/*
|
|
|
|
|--------------------------------------------------------------------------
|
|
|
|
| Define available themes. Format:
|
|
|
|
|
|
|
|
|
| 'theme-name' => [
|
2016-10-20 14:40:52 +00:00
|
|
|
| '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
|
2016-10-14 04:06:12 +00:00
|
|
|
|
|
2016-10-20 14:40:52 +00:00
|
|
|
| // you can add your own custom keys and retrieve them with Theme::getSetting('key');
|
|
|
|
| 'key' => 'value',
|
2016-10-14 04:06:12 +00:00
|
|
|
| ],
|
|
|
|
|
|
|
|
|
|--------------------------------------------------------------------------
|
|
|
|
*/
|
|
|
|
|
|
|
|
'themes' => [
|
|
|
|
|
2016-10-20 14:40:52 +00:00
|
|
|
'metronic-fe' => [
|
2016-10-14 04:06:12 +00:00
|
|
|
'extends' => null,
|
2016-10-20 14:40:52 +00:00
|
|
|
'views-path' => 'frontend/metronic',
|
|
|
|
'asset-path' => 'theme/frontend/metronic',
|
2016-10-14 04:06:12 +00:00
|
|
|
],
|
|
|
|
|
2016-10-20 14:40:52 +00:00
|
|
|
'metronic-be' => [
|
2016-10-14 04:06:12 +00:00
|
|
|
'extends' => null,
|
2016-10-20 14:40:52 +00:00
|
|
|
'views-path' => 'backend/metronic',
|
|
|
|
'asset-path' => 'theme/backend/metronic',
|
|
|
|
],
|
2016-10-14 04:06:12 +00:00
|
|
|
|
|
|
|
],
|
|
|
|
|
|
|
|
];
|