From 20d3aa2e77e4ba4c12d2a7332c7ac5f3a8f6b635 Mon Sep 17 00:00:00 2001 From: Friendika Date: Mon, 4 Jul 2011 20:57:07 -0700 Subject: community page --- include/main.js | 5 +++-- include/nav.php | 5 +++-- 2 files changed, 6 insertions(+), 4 deletions(-) (limited to 'include') diff --git a/include/main.js b/include/main.js index 26c78b277..216917d72 100644 --- a/include/main.js +++ b/include/main.js @@ -71,8 +71,9 @@ function NavUpdate() { - if($('#live-network').length) { src = 'network'; liveUpdate(); } - if($('#live-profile').length) { src = 'profile'; liveUpdate(); } + if($('#live-network').length) { src = 'network'; liveUpdate(); } + if($('#live-profile').length) { src = 'profile'; liveUpdate(); } + if($('#live-community').length) { src = 'community'; liveUpdate(); } if($('#live-display').length) { if(liking) { liking = 0; diff --git a/include/nav.php b/include/nav.php index 238d87035..3b15c2b8a 100644 --- a/include/nav.php +++ b/include/nav.php @@ -60,10 +60,9 @@ function nav(&$a) { $help_url = $a->get_baseurl() . '/help'; - if(! get_config('system','hide-help')) + if(! get_config('system','hide_help')) $nav['help'] = array($help_url, t('Help'), ""); - if($a->apps) $nav['apps'] = array('apps', t('Apps'), ""); @@ -76,6 +75,8 @@ function nav(&$a) { if(strlen($gdir)) $gdirpath = $gdir; } + elseif(! get_config('system','no_community_page')) + $nav['community'] = array('community', t('Community'), ""); $nav['directory'] = array($gdirpath, t('Directory'), ""); -- cgit v1.2.3