2015-01-01 18:47:11 +09:00
|
|
|
// ------------------------------------------------------------------------------------------- //
|
|
|
|
// -------------------------------------- Subscriptions -------------------------------------- //
|
|
|
|
// ------------------------------------------------------------------------------------------- //
|
|
|
|
|
|
|
|
// add a subscription to be preloaded before the rest of the app
|
2015-04-20 13:57:37 +09:00
|
|
|
Telescope.config.preloadSubscriptions.push('customPublication');
|
2015-01-01 18:47:11 +09:00
|
|
|
|
|
|
|
// ------------------------------------------------------------------------------------------- //
|
|
|
|
// ------------------------------------------- Nav ------------------------------------------- //
|
|
|
|
// ------------------------------------------------------------------------------------------- //
|
|
|
|
|
2015-04-20 13:57:37 +09:00
|
|
|
// add templates to the primary nav bar
|
2015-04-23 17:45:37 +09:00
|
|
|
Telescope.registerModule("primaryNav", {
|
2015-01-02 18:16:26 +09:00
|
|
|
template: 'customNav',
|
2015-01-01 18:47:11 +09:00
|
|
|
order: 99
|
|
|
|
});
|
|
|
|
|
|
|
|
// add templates to the secondary nav bar
|
2015-04-23 17:45:37 +09:00
|
|
|
Telescope.registerModule("secondaryNav", {
|
2015-01-02 18:16:26 +09:00
|
|
|
template: 'customNav',
|
2015-01-01 18:47:11 +09:00
|
|
|
order: 99
|
|
|
|
});
|
|
|
|
|
|
|
|
// add items to the admin menu
|
2015-04-23 17:45:37 +09:00
|
|
|
Telescope.registerModule("adminMenu", {
|
2015-01-02 18:16:26 +09:00
|
|
|
route: 'customRoute',
|
|
|
|
label: 'customAdminLink',
|
|
|
|
description: '' // optional
|
2015-01-01 18:47:11 +09:00
|
|
|
});
|
|
|
|
|
|
|
|
// ------------------------------------------------------------------------------------------- //
|
|
|
|
// ------------------------------------------ Zones ------------------------------------------ //
|
|
|
|
// ------------------------------------------------------------------------------------------- //
|
|
|
|
|
|
|
|
// add templates to the hero zone (before posts list)
|
2015-04-23 17:45:37 +09:00
|
|
|
Telescope.registerModule("hero", {
|
2015-01-02 18:16:26 +09:00
|
|
|
template: 'customHero',
|
2015-01-01 18:47:11 +09:00
|
|
|
order: 99
|
|
|
|
});
|
2015-04-20 13:57:37 +09:00
|
|
|
|
2015-01-01 18:47:11 +09:00
|
|
|
// add templates to the footer (after posts list)
|
2015-04-23 17:45:37 +09:00
|
|
|
Telescope.registerModule("footer", {
|
2015-01-02 18:16:26 +09:00
|
|
|
template: 'customFooter',
|
2015-01-01 18:47:11 +09:00
|
|
|
order: 99
|
|
|
|
});
|
|
|
|
|
|
|
|
// ------------------------------------------------------------------------------------------- //
|
|
|
|
// ------------------------------------------ Posts ------------------------------------------ //
|
|
|
|
// ------------------------------------------------------------------------------------------- //
|
|
|
|
|
|
|
|
// add templates to the post items
|
2015-04-23 17:45:37 +09:00
|
|
|
Telescope.registerModule("postItems", {
|
2015-01-02 18:16:26 +09:00
|
|
|
template: 'customModule',
|
2015-01-01 18:47:11 +09:00
|
|
|
order: 99
|
|
|
|
});
|
|
|
|
|
|
|
|
// add templates to the post heading zone
|
2015-04-23 17:45:37 +09:00
|
|
|
Telescope.registerModule("postHeading", {
|
2015-01-02 18:16:26 +09:00
|
|
|
template: 'customHeading',
|
2015-01-01 18:47:11 +09:00
|
|
|
order: 99
|
|
|
|
});
|
|
|
|
|
|
|
|
// add templates to the post meta zone
|
2015-04-23 17:45:37 +09:00
|
|
|
Telescope.registerModule("postMeta", {
|
2015-01-02 18:16:26 +09:00
|
|
|
template: 'customMeta',
|
2015-04-20 13:57:37 +09:00
|
|
|
order: 99
|
2015-01-01 18:47:11 +09:00
|
|
|
});
|
|
|
|
|
|
|
|
// ------------------------------------------------------------------------------------------- //
|
|
|
|
// -------------------------------------- User Profiles -------------------------------------- //
|
|
|
|
// ------------------------------------------------------------------------------------------- //
|
|
|
|
|
2015-04-23 17:45:37 +09:00
|
|
|
Telescope.registerModule("profileDisplay", {
|
2015-01-02 18:16:26 +09:00
|
|
|
template: 'customTemplate',
|
2015-04-20 13:57:37 +09:00
|
|
|
order: 99
|
2015-01-01 18:47:11 +09:00
|
|
|
});
|
|
|
|
|
2015-04-23 17:45:37 +09:00
|
|
|
Telescope.registerModule("profileEdit", {
|
2015-01-02 18:16:26 +09:00
|
|
|
template: 'customTemplate',
|
2015-04-20 13:57:37 +09:00
|
|
|
order: 99
|
|
|
|
});
|