diff --git a/lib/theme.js b/lib/theme.js index c2940f8..d79645f 100644 --- a/lib/theme.js +++ b/lib/theme.js @@ -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)); \ No newline at end of file +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; +};