helpers.displayMenuItem

v1.18.x
psychobunny 10 years ago
parent 61cbb70691
commit 6dacaf6bb5

@ -13,6 +13,18 @@
return (config.loggedIn || !config.privateUserInfo);
};
helpers.displayMenuItem = function(data, index) {
var properties = data.navigation[index].properties;
if (properties.loggedIn && !ldata.oggedIn ||
properties.adminOnly && !data.isAdmin ||
properties.installed && properties.installed.search && !data.searchEnabled) {
return false;
}
return true;
};
helpers.buildMetaTag = function(tag) {
var name = tag.name ? 'name="' + tag.name + '" ' : '',
property = tag.property ? 'property="' + tag.property + '" ' : '',

Loading…
Cancel
Save