init
This commit is contained in:
@@ -0,0 +1,17 @@
|
||||
/*
|
||||
Hey there!
|
||||
|
||||
This is the client file for your theme. If you need to do any client-side work in javascript,
|
||||
this is where it needs to go.
|
||||
|
||||
You can listen for page changes by writing something like this:
|
||||
|
||||
$(window).on('action:ajaxify.end', function(data) {
|
||||
var url = data.url;
|
||||
console.log('I am now at: ' + url);
|
||||
});
|
||||
*/
|
||||
|
||||
$(document).ready(function() {
|
||||
// Your code goes here
|
||||
});
|
||||
@@ -0,0 +1,35 @@
|
||||
(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));
|
||||
Reference in New Issue
Block a user