mirror of
https://github.com/NuSkooler/enigma-bbs.git
synced 2025-07-22 18:56:00 +02:00
* Some solid progress on themeing / customization via theme.json
This commit is contained in:
parent
767319e234
commit
34bf823f1f
8 changed files with 98 additions and 32 deletions
|
@ -42,8 +42,8 @@ function loadTheme(themeID, cb) {
|
|||
theme.helpers = {
|
||||
getPasswordChar : function() {
|
||||
var pwChar = Config.defaults.passwordChar;
|
||||
if(_.isObject(theme.defaults) && _.isObject(theme.defaults.general)) {
|
||||
var themePasswordChar = theme.defaults.general.passwordChar;
|
||||
if(_.has(theme, 'customization.defaults.general')) {
|
||||
var themePasswordChar = theme.customization.defaults.general.passwordChar;
|
||||
if(_.isString(themePasswordChar)) {
|
||||
pwChar = themePasswordChar.substr(0, 1);
|
||||
} else if(_.isNumber(themePasswordChar)) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue