* @link http://status.net/
*/
-if (!defined('STATUSNET') && !defined('LACONICA')) {
- exit(1);
-}
-
-require_once INSTALLDIR.'/lib/widget.php';
+if (!defined('GNUSOCIAL')) { exit(1); }
/**
* Menu for public group of actions
$this->action->elementStart('ul', array('class' => 'nav'));
if (Event::handle('StartPublicGroupNav', array($this))) {
- // TRANS: Menu item in search group navigation panel.
- $this->out->menuItem(common_local_url('public'), _m('MENU','Public'),
- // TRANS: Menu item title in search group navigation panel.
- _('Public timeline'), $this->actionName == 'public', 'nav_timeline_public');
+ if (!common_config('singleuser', 'enabled')) {
+ // TRANS: Menu item in search group navigation panel.
+ $this->out->menuItem(common_local_url('public'), _m('MENU','Public'),
+ // TRANS: Menu item title in search group navigation panel.
+ _('Public timeline'), $this->actionName == 'public', 'nav_timeline_public');
+ }
+ if (!common_config('public', 'localonly') || $this->action->getScoped() instanceof Profile) {
+ // Allow network wide view if you're logged in
+ // TRANS: Menu item in search group navigation panel.
+ $this->out->menuItem(common_local_url('networkpublic'), _m('MENU','Network'),
+ // TRANS: Menu item title in search group navigation panel.
+ _('Network public timeline'), $this->actionName == 'networkpublic', 'nav_timeline_networkpublic');
+ }
// TRANS: Menu item in search group navigation panel.
$this->out->menuItem(common_local_url('groups'), _m('MENU','Groups'),
// TRANS: Menu item title in search group navigation panel.
_('User groups'), $this->actionName == 'groups', 'nav_groups');
- // TRANS: Menu item in search group navigation panel.
- $this->out->menuItem(common_local_url('publictagcloud'), _m('MENU','Recent tags'),
- // TRANS: Menu item title in search group navigation panel.
- _('Recent tags'), $this->actionName == 'publictagcloud', 'nav_recent-tags');
-
- // TRANS: Menu item in search group navigation panel.
- $this->out->menuItem(common_local_url('publicpeopletagcloud'), _m('MENU','People tags'),
- // TRANS: Menu item title in search group navigation panel.
- _('People tags'), in_array($this->actionName, array('publicpeopletagcloud',
- 'peopletag', 'selftag')), 'nav_people-tags');
-
if (count(common_config('nickname', 'featured')) > 0) {
// TRANS: Menu item in search group navigation panel.
$this->out->menuItem(common_local_url('featured'), _m('MENU','Featured'),
_('Featured users'), $this->actionName == 'featured', 'nav_featured');
}
- // TRANS: Menu item in search group navigation panel.
- $this->out->menuItem(common_local_url('favorited'), _m('MENU','Popular'),
- // TRANS: Menu item title in search group navigation panel.
- _('Popular notices'), $this->actionName == 'favorited', 'nav_timeline_favorited');
-
Event::handle('EndPublicGroupNav', array($this));
}
$this->action->elementEnd('ul');