This repository has been archived on 2024-04-08. You can view files and clone it, but cannot push or open issues or pull requests.
memberdb/config/themes.php

87 lines
2.4 KiB
PHP
Raw Permalink Normal View History

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
| 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)
|--------------------------------------------------------------------------
*/
'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
|--------------------------------------------------------------------------
*/
'asset_not_found' => 'THROW_EXCEPTION',
2016-10-14 04:06:12 +00:00
/*
|--------------------------------------------------------------------------
| Set the Active Theme. Can be set at runtime with:
| Themes::set('theme-name');
2016-10-14 04:06:12 +00:00
|--------------------------------------------------------------------------
*/
'active' => 'metronic-fe',
2016-10-14 04:06:12 +00:00
/*
|--------------------------------------------------------------------------
| 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
2016-10-14 04:06:12 +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' => [
2017-08-05 23:53:57 +00:00
'adminlte-be' => [
'extends' => null,
'views-path' => 'backend/adminlte',
'asset-path' => 'theme/backend/adminlte',
],
'metronic-fe' => [
2016-10-14 04:06:12 +00:00
'extends' => null,
'views-path' => 'frontend/metronic',
'asset-path' => 'theme/frontend/metronic',
2016-10-14 04:06:12 +00:00
],
'metronic-be' => [
2016-10-14 04:06:12 +00:00
'extends' => null,
'views-path' => 'backend/metronic',
'asset-path' => 'theme/backend/metronic',
],
2016-10-14 04:06:12 +00:00
2017-08-05 23:53:57 +00:00
'sbadmin-be' => [
'extends' => null,
'views-path' => 'backend/sbadmin',
'asset-path' => 'theme/backend/sbadmin',
],
2016-10-14 04:06:12 +00:00
],
];