Update theme.js

This commit is contained in:
Barış Soner Uşaklı 2021-01-16 12:37:37 -05:00 committed by GitHub
parent 80f77b58af
commit 13d181c18b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,35 +1,30 @@
(function(module) {
"use strict";
var Theme = {};
"use strict";
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'
}
]);
var Theme = module.exports;
callback(null, areas);
};
module.exports = Theme;
}(module));
Theme.defineWidgetAreas = async function(areas) {
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'
}
]);
return areas;
};