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.subscriptions.preload('customPublication');
2015-01-01 18:47:11 +09:00
// ------------------------------------------------------------------------------------------- //
// ------------------------------------------- Nav ------------------------------------------- //
// ------------------------------------------------------------------------------------------- //
// add templates to the primary nav bar
2015-04-24 09:48:36 +09:00
Telescope.modules.register("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-24 09:48:36 +09:00
Telescope.modules.register("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-24 09:48:36 +09:00
Telescope.modules.register("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-24 09:48:36 +09:00
Telescope.modules.register("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)
2015-04-24 09:48:36 +09:00
Telescope.modules.register("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-24 09:48:36 +09:00
Telescope.modules.register("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-24 09:48:36 +09:00
Telescope.modules.register("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-24 09:48:36 +09:00
Telescope.modules.register("postMeta", {
2015-01-02 18:16:26 +09:00
template: 'customMeta',
order: 99
2015-01-01 18:47:11 +09:00
});
// ------------------------------------------------------------------------------------------- //
// -------------------------------------- User Profiles -------------------------------------- //
// ------------------------------------------------------------------------------------------- //
2015-04-24 09:48:36 +09:00
Telescope.modules.register("profileDisplay", {
2015-01-02 18:16:26 +09:00
template: 'customTemplate',
order: 99
2015-01-01 18:47:11 +09:00
});
2015-04-24 09:48:36 +09:00
Telescope.modules.register("profileEdit", {
2015-01-02 18:16:26 +09:00
template: 'customTemplate',
order: 99
});