// ------------------------------------- Schemas -------------------------------- // // array containing properties to be added to the post/settings/comments schema on startup. addToPostSchema = []; addToCommentsSchema = []; addToSettingsSchema = []; // ------------------------------------- Navigation -------------------------------- // // array containing nav items; initialize with views menu and admin menu primaryNav = ['viewsMenu', 'adminMenu']; secondaryNav = ['userMenu', 'notificationsMenu', 'submitButton']; // array containing items in the admin menu adminNav = []; // array containing items in the views menu viewNav = [ { route: 'posts_top', label: 'Top' }, { route: 'posts_new', label: 'New' }, { route: 'posts_best', label: 'Best' }, { route: 'posts_digest', label: 'Digest' } ]; // ------------------------------------- Views -------------------------------- // // object containing post list view parameters viewParameters = {} viewParameters.top = function (terms) { return { options: {sort: {sticky: -1, score: -1}} }; } viewParameters.new = function (terms) { return { options: {sort: {sticky: -1, postedAt: -1}} }; } viewParameters.best = function (terms) { return { options: {sort: {sticky: -1, baseScore: -1}} }; } viewParameters.pending = function (terms) { return { find: {status: 1}, options: {sort: {createdAt: -1}} }; } viewParameters.digest = function (terms) { return { find: { postedAt: { $gte: terms.after, $lt: terms.before } }, options: { sort: {sticky: -1, baseScore: -1, limit: 0} } }; } heroModules = []; footerModules = []; // array containing post modules modulePositions = [ 'left-left', 'left-center', 'left-right', 'center-left', 'center-center', 'center-right', 'right-left', 'right-center', 'right-right' ]; postModules = [ { template: 'postUpvote', position: 'left-left' }, { template: 'postActions', position: 'left-right' }, { template: 'postContent', position: 'center-center' }, { template: 'postDiscuss', position: 'right-right' } ]; postHeading = [ { template: 'postTitle', order: 1 }, { template: 'postDomain', order: 5 } ] postMeta = [ { template: 'postInfo', order: 1 }, { template: 'postCommentsLink', order: 3 }, { template: 'postAdmin', order: 5 } ] // ------------------------------ Callbacks ------------------------------ // postSubmitRenderedCallbacks = []; postSubmitClientCallbacks = []; postSubmitServerCallbacks = []; postEditRenderedCallbacks = []; postEditClientCallbacks = []; commentEditClientCallbacks = []; // not used yet commentEditServerCallbacks = []; // not used yet commentEditClientCallbacks = []; // not used yet // ------------------------------ Dynamic Templates ------------------------------ // templates = {} getTemplate = function (name) { // if template has been overwritten, return this; else return template name return !!templates[name] ? templates[name] : name; } // ------------------------------ Theme Settings ------------------------------ // themeSettings = { 'useDropdowns': true // whether or not to use dropdown menus in a theme }; // ------------------------------ Subscriptions ------------------------------ // // array containing subscriptions to be preloaded preloadSubscriptions = [];