mirror of
https://github.com/NuSkooler/enigma-bbs.git
synced 2025-06-10 14:44:40 +02:00
* More work on theming
This commit is contained in:
parent
73952a2c37
commit
a3ba9b0252
3 changed files with 92 additions and 75 deletions
|
@ -296,15 +296,23 @@ function applyThemeCustomization(options) {
|
|||
}
|
||||
|
||||
if(themeConfig.mci) {
|
||||
console.log('>>>>>>>>>>>>>>>>>>>>>>> ' + options.name)
|
||||
Object.keys(themeConfig.mci).forEach(function mciEntry(mci) {
|
||||
_.defaults(options.mci[mci], themeConfig.mci[mci]);
|
||||
// :TODO: a better way to do this?
|
||||
if(options.mci[mci]) {
|
||||
_.defaults(options.mci[mci], themeConfig.mci[mci]);
|
||||
} else {
|
||||
options.mci[mci] = themeConfig.mci[mci];
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
if(themeConfig.config) {
|
||||
Object.keys(themeConfig.config).forEach(function confEntry(conf) {
|
||||
_.defaultsDeep(options.config[conf], themeConfig.config[conf]);
|
||||
if(options.config[conf]) {
|
||||
_.defaultsDeep(options.config[conf], themeConfig.config[conf]);
|
||||
} else {
|
||||
options.config[conf] = themeConfig.config[conf];
|
||||
}
|
||||
});
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue