Vulcan/packages/custom/lib/hooks.js

82 lines
2.8 KiB
JavaScript
Raw Normal View History

2015-01-01 18:47:11 +09:00
// ------------------------------------------------------------------------------------------- //
// -------------------------------------- Subscriptions -------------------------------------- //
// ------------------------------------------------------------------------------------------- //
// add a subscription to be preloaded before the rest of the app
Telescope.config.preloadSubscriptions.push('customPublication');
2015-01-01 18:47:11 +09:00
// ------------------------------------------------------------------------------------------- //
// ------------------------------------------- Nav ------------------------------------------- //
// ------------------------------------------------------------------------------------------- //
// add templates to the primary nav bar
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
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
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)
Telescope.registerModule("hero", {
2015-01-02 18:16:26 +09:00
template: 'customHero',
2015-01-01 18:47:11 +09:00
order: 99
});
2015-01-01 18:47:11 +09:00
// add templates to the footer (after posts list)
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
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
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
Telescope.registerModule("postMeta", {
2015-01-02 18:16:26 +09:00
template: 'customMeta',
order: 99
2015-01-01 18:47:11 +09:00
});
// ------------------------------------------------------------------------------------------- //
// -------------------------------------- User Profiles -------------------------------------- //
// ------------------------------------------------------------------------------------------- //
Telescope.registerModule("profileDisplay", {
2015-01-02 18:16:26 +09:00
template: 'customTemplate',
order: 99
2015-01-01 18:47:11 +09:00
});
Telescope.registerModule("profileEdit", {
2015-01-02 18:16:26 +09:00
template: 'customTemplate',
order: 99
});