diff options
| author | Jules Laplace <jules@okfoc.us> | 2016-09-29 12:13:19 -0400 |
|---|---|---|
| committer | Jules Laplace <jules@okfoc.us> | 2016-09-29 12:13:19 -0400 |
| commit | d4f9c31a1721fdea6b92ae90ca5c4bd8635fd0cb (patch) | |
| tree | 4c8c73d15c77f4d79313ecb45fc650d43f65235f /app/index.js | |
| parent | 50fac2191fbf0dd101d6071242c03dfad295b3ed (diff) | |
v0.2.0 - new admin theme
Diffstat (limited to 'app/index.js')
| -rw-r--r-- | app/index.js | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/app/index.js b/app/index.js index 57d571c..34964de 100644 --- a/app/index.js +++ b/app/index.js @@ -43,14 +43,16 @@ function OKCMS(options) { var templateRoot = options.templateRoot || 'templates'; var adminPath = this._adminPath = adminConfig.path || '/admin'; + var adminTheme = this._adminTheme = adminConfig.theme || 'okadmin' var adminRoot = this._adminRoot = adminConfig.root || - path.join(__dirname, '../themes/okadmin/public'); + path.join(__dirname, '../themes/' + adminTheme + '/public'); var adminLibPath = this._adminLibPath = adminConfig.libPath || path.join(adminPath, "_lib"); var adminLibRoot = this._adminLibRoot = adminConfig.libRoot || path.join(__dirname, '../themes/okadmin/public'); var adminTemplateRoot = adminConfig.templateRoot || path.join(__dirname, '../themes/okadmin/templates'); +console.log(adminTheme, adminRoot) var debug = !!options.debug; var production = !!options.production; |
