Vulcan/packages/telescope-blank/lib/hooks.js

89 lines
2.9 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.config.primaryNav.push({
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.config.secondaryNav.push({
2015-01-02 18:16:26 +09:00
template: 'customNav',
2015-01-01 18:47:11 +09:00
order: 99
});
// add items to the view menu
Telescope.config.viewsMenu.push({
2015-01-02 18:16:26 +09:00
route: 'customRoute',
label: 'customViewLink',
description: '' // optional
2015-01-01 18:47:11 +09:00
});
// add items to the admin menu
Telescope.config.adminMenu.push({
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.config.heroModules.push({
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.config.footerModules.push({
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.config.postModules.push({
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.config.postHeading.push({
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.config.postMeta.push({
2015-01-02 18:16:26 +09:00
template: 'customMeta',
order: 99
2015-01-01 18:47:11 +09:00
});
// ------------------------------------------------------------------------------------------- //
// -------------------------------------- User Profiles -------------------------------------- //
// ------------------------------------------------------------------------------------------- //
Telescope.config.userProfileDisplay.push({
2015-01-02 18:16:26 +09:00
template: 'customTemplate',
order: 99
2015-01-01 18:47:11 +09:00
});
Telescope.config.userProfileEdit.push({
2015-01-02 18:16:26 +09:00
template: 'customTemplate',
order: 99
});