Skip to content
Permalink
Browse files

updating cerulean to latest widget system

  • Loading branch information...
psychobunny committed Feb 21, 2014
1 parent f389300 commit 50e49a9da5a89484fa8001bbda2e613b69f18e86
Showing with 40 additions and 1 deletion.
  1. +30 −0 lib/theme.js
  2. +1 −1 package.json
  3. +9 −0 plugin.json
@@ -0,0 +1,30 @@
(function(module) {

This comment has been minimized.

Copy link
@rahmanw

rahmanw Dec 18, 2015

Leave a line note

"use strict";

var Theme = {};

Theme.defineWidgetAreas = function(areas, callback) {
areas = areas.concat([
{
'name': 'MOTD',
'template': 'home.tpl',
'location': 'motd'
},
{
'name': 'Homepage Footer',
'template': 'home.tpl',
'location': 'footer'
},
{
'name': 'Category Sidebar',
'template': 'category.tpl',
'location': 'sidebar'
}
]);

callback(null, areas);
};

module.exports = Theme;

}(module));
@@ -1,6 +1,6 @@
{
"name": "nodebb-theme-cerulean",
"version": "0.0.12-1",
"version": "0.0.13",
"description": "Cerulean theme for NodeBB",
"main": "theme.less",
"repository": {
@@ -0,0 +1,9 @@
{
"library": "./lib/theme.js",
"hooks": [
{
"hook": "filter:widgets.getAreas", "method": "defineWidgetAreas", "callbacked": true
}
],
"staticDir": "./public"
}

This comment has been minimized.

Copy link
@rahmanw

rahmanw Dec 18, 2015

Leave a line note

0 comments on commit 50e49a9

Please sign in to comment.
You can’t perform that action at this time.