35 lines
578 B
JavaScript
35 lines
578 B
JavaScript
(function(module) {
|
|
"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'
|
|
},
|
|
{
|
|
'name': 'Topic Footer',
|
|
'template': 'topic.tpl',
|
|
'location': 'footer'
|
|
}
|
|
]);
|
|
|
|
callback(null, areas);
|
|
};
|
|
|
|
module.exports = Theme;
|
|
|
|
}(module)); |