- _('Public Stream Feed (Atom)')));
- }
-
- /**
- * Show tabset for this page
- *
- * Uses the PublicGroupNav widget
- *
- * @return void
- * @see PublicGroupNav
- */
-
- function showLocalNav()
- {
- $nav = new PublicGroupNav($this);
- $nav->show();
- }
-
- function showEmptyList()
- {
- $message = _('This is the public timeline for %%site.name%% but no one has posted anything yet.') . ' ';
-
- if (common_logged_in()) {
- $message .= _('Be the first to post!');
- }
- else {
- if (! (common_config('site','closed') || common_config('site','inviteonly'))) {
- $message .= _('Why not [register an account](%%action.register%%) and be the first to post!');
- }
- }
-
- $this->elementStart('div', 'guide');
- $this->raw(common_markup_to_html($message));
- $this->elementEnd('div');
- }
-
- /**
- * Fill the content area
- *
- * Shows a list of the notices in the public stream, with some pagination
- * controls.
- *
- * @return void
- */
-
- function showContent()
- {
- $nl = new NoticeList($this->notice, $this);
-
- $cnt = $nl->show();
-
- if ($cnt == 0) {
- $this->showEmptyList();
- }
-
- $this->pagination($this->page > 1, $cnt > NOTICES_PER_PAGE,
- $this->page, 'public');
- }
-
- function showSections()
- {
- // $top = new TopPostersSection($this);
- // $top->show();
- $pop = new PopularNoticeSection($this);
- $pop->show();
- $gbp = new GroupsByMembersSection($this);
- $gbp->show();
- $feat = new FeaturedUsersSection($this);
- $feat->show();
- }
-
- function showAnonymousMessage()
- {
- if (! (common_config('site','closed') || common_config('site','inviteonly'))) {
- $m = _('This is %%site.name%%, a social networking site. ' .
- '[Join now](%%action.register%%) to share notices about yourself with friends, family, and colleagues! ' .
- '([Read more](%%doc.help%%))');
- } else {
- $m = _('This is %%site.name%%, a social networking site.');
- }
- $this->elementStart('div', array('id' => 'anon_notice'));
- $this->raw(common_markup_to_html($m));
- $this->elementEnd('div');