aboutsummaryrefslogtreecommitdiffstats
path: root/include/nav.php
diff options
context:
space:
mode:
authorPaolo T <tuscanhobbit@users.noreply.github.com>2014-09-02 13:15:59 +0200
committerPaolo T <tuscanhobbit@users.noreply.github.com>2014-09-02 13:15:59 +0200
commitfee5b6bd1599599da2f3b662f04b9651b23fb4e4 (patch)
treee4ab47f657ce1e6ae0aabf6be51bdf169e4b389d /include/nav.php
parenta1f85cda3ec0e6fc1c661ee12b1e7d87b3f242c5 (diff)
parent9dac46ca25b11f80dded42db31e7e062fc7b5142 (diff)
downloadvolse-hubzilla-fee5b6bd1599599da2f3b662f04b9651b23fb4e4.tar.gz
volse-hubzilla-fee5b6bd1599599da2f3b662f04b9651b23fb4e4.tar.bz2
volse-hubzilla-fee5b6bd1599599da2f3b662f04b9651b23fb4e4.zip
Merge pull request #2 from friendica/master
Merge from main project
Diffstat (limited to 'include/nav.php')
-rw-r--r--include/nav.php15
1 files changed, 14 insertions, 1 deletions
diff --git a/include/nav.php b/include/nav.php
index 8133ecf67..799faf5ce 100644
--- a/include/nav.php
+++ b/include/nav.php
@@ -38,6 +38,14 @@ EOT;
intval($channel['channel_id'])
);
+ $chans = q("select channel_name, channel_id from channel where channel_account_id = %d and not ( channel_pageflags & %d ) order by channel_name ",
+ intval(get_account_id()),
+ intval(PAGE_REMOVED)
+ );
+
+
+
+
}
elseif(remote_user())
$observer = $a->get_observer();
@@ -78,6 +86,11 @@ EOT;
$userinfo = null;
if(local_user()) {
+
+
+ if($chans && count($chans) > 1 && feature_enabled(local_user(),'nav_channel_select'))
+ $nav['channels'] = $chans;
+
$nav['logout'] = Array('logout',t('Logout'), "", t('End this session'));
// user menu
@@ -193,7 +206,7 @@ EOT;
$nav['all_events']['all']=array('events', t('See all events'), "", "");
$nav['all_events']['mark'] = array('', t('Mark all events seen'), '','');
- $nav['manage'] = array('manage', t('Channel Select'), "", t('Manage Your Channels'));
+ $nav['manage'] = array('manage', t('Channel Manager'), "", t('Manage Your Channels'));
$nav['settings'] = array('settings', t('Settings'),"", t('Account/Channel Settings'));