$this->elementEnd('div');
}
- /**
- * Local navigation
- *
- * This page is part of the public group, so show that.
- *
- * @return void
- */
- function showLocalNav()
- {
- $nav = new PublicGroupNav($this);
- $nav->show();
- }
-
/**
* Content area
*
*/
function showContent()
{
- $pop = new Popularity();
- $pop->offset = ($this->page - 1) * NOTICES_PER_PAGE;
- $pop->limit = NOTICES_PER_PAGE;
- $pop->expiry = 600;
- $notice = $pop->getNotices();
+ $stream = new PopularNoticeStream(Profile::current());
+ $notice = $stream->getNotices(($this->page-1)*NOTICES_PER_PAGE, NOTICES_PER_PAGE+1);
$nl = new NoticeList($notice, $this);