private static $selected = [
'global' => null,
'community' => null,
+ 'channel' => null,
'network' => null,
'home' => null,
'profiles' => null,
'directory' => null,
'settings' => null,
'contacts' => null,
- 'delegation'=> null,
+ 'delegation' => null,
'calendar' => null,
'register' => null
];
'$apps' => $this->getAppMenu(),
'$home' => $this->l10n->t('Go back'),
'$clear_notifs' => $this->l10n->t('Clear notifications'),
- '$search_hint' => $this->l10n->t('@name, !forum, #tags, content')
+ '$search_hint' => $this->l10n->t('@name, !group, #tags, content')
]);
Hook::callAll('page_header', $nav);
*/
private function getInfo(): array
{
- $ssl_state = (bool) $this->session->getLocalUserId();
-
/*
* Our network is distributed, and as you visit friends some
* sites look exactly the same - it isn't always easy to know where you are.
$myident = !empty($this->session->getLocalUserNickname()) ? $this->session->getLocalUserNickname() . '@' : '';
- $sitelocation = $myident . substr($this->baseUrl->get($ssl_state), strpos($this->baseUrl->get($ssl_state), '//') + 2);
+ $sitelocation = $myident . substr($this->baseUrl, strpos($this->baseUrl, '//') + 2);
$nav = [
'admin' => null,
'moderation' => null,
'apps' => null,
'community' => null,
+ 'channel' => null,
'home' => null,
'calendar' => null,
'login' => null,
if ($this->session->isAuthenticated()) {
// user menu
- $nav['usermenu'][] = ['profile/' . $this->session->getLocalUserNickname(), $this->l10n->t('Status'), '', $this->l10n->t('Your posts and conversations')];
+ $nav['usermenu'][] = ['profile/' . $this->session->getLocalUserNickname(), $this->l10n->t('Conversations'), '', $this->l10n->t('Conversations you started')];
$nav['usermenu'][] = ['profile/' . $this->session->getLocalUserNickname() . '/profile', $this->l10n->t('Profile'), '', $this->l10n->t('Your profile page')];
$nav['usermenu'][] = ['profile/' . $this->session->getLocalUserNickname() . '/photos', $this->l10n->t('Photos'), '', $this->l10n->t('Your photos')];
$nav['usermenu'][] = ['profile/' . $this->session->getLocalUserNickname() . '/media', $this->l10n->t('Media'), '', $this->l10n->t('Your postings with media')];
];
if ($this->config->get('system', 'poco_local_search')) {
- $nav['searchoption'][] = $this->l10n->t('Forums');
+ $nav['searchoption'][] = $this->l10n->t('Groups');
}
}
$gdirpath = Profile::zrl($this->config->get('system', 'directory'), true);
}
- if (($this->session->getLocalUserId() || $this->config->get('system', 'community_page_style') != Community::DISABLED_VISITOR) &&
- !($this->config->get('system', 'community_page_style') == Community::DISABLED)) {
+ if ((!$this->session->isAuthenticated() && $this->config->get('system', 'community_page_style') != Community::DISABLED_VISITOR) &&
+ !($this->config->get('system', 'community_page_style') == Community::DISABLED)
+ ) {
$nav['community'] = ['community', $this->l10n->t('Community'), '', $this->l10n->t('Conversations on this and other servers')];
}
if ($this->session->getLocalUserId()) {
+ $nav['channel'] = ['channel', $this->l10n->t('Channels'), '', $this->l10n->t('Current posts, filtered by several rules')];
$nav['calendar'] = ['calendar', $this->l10n->t('Calendar'), '', $this->l10n->t('Calendar')];
}