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

98 lines
2.6 KiB
PHP
Raw 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
| (as defined in config\views.php)
|--------------------------------------------------------------------------
*/
'themes_path' => null, // eg: realpath(base_path('resources/themes'))
/*
|--------------------------------------------------------------------------
| Set behavior if an asset is not found in a Theme hierarcy.
| Available options: THROW_EXCEPTION | LOG_ERROR | ASSUME_EXISTS | IGNORE
|--------------------------------------------------------------------------
*/
'asset_not_found' => 'LOG_ERROR',
/*
|--------------------------------------------------------------------------
| Set the Active Theme. Can be set at runtime with:
| Themes::set('theme-name');
|--------------------------------------------------------------------------
*/
'active' => 'default',
/*
|--------------------------------------------------------------------------
| 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
|
| // you can add your own custom keys and retrieve them with Theme::config('key');
| 'key' => 'value',
| ],
|
|--------------------------------------------------------------------------
*/
'themes' => [
'default' => [
'extends' => null,
'views-path' => '',
'asset-path' => '',
],
'sbadmindemo' => [
'extends' => null,
'views-path' => null,
'asset-path' => null,
]
// 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',
],
------------------------------------------------*/
],
];