$this->userProfile = Profile::current();
- $stream = new PublicNoticeStream($this->userProfile);
+ $stream = new ThreadingPublicNoticeStream($this->userProfile);
$this->notice = $stream->getNotices(($this->page-1)*NOTICES_PER_PAGE,
NOTICES_PER_PAGE + 1);
function showSections()
{
- $pop = new PopularNoticeSection($this);
- $pop->show();
$ibs = new InviteButtonSection($this);
$ibs->show();
- $gbp = new GroupsByMembersSection($this);
- $gbp->show();
+ $pop = new PopularNoticeSection($this);
+ $pop->show();
+ $cloud = new PublicTagCloudSection($this);
+ $cloud->show();
$feat = new FeaturedUsersSection($this);
$feat->show();
}
$this->elementEnd('div');
}
}
+
+class ThreadingPublicNoticeStream extends ThreadingNoticeStream
+{
+ function __construct($profile)
+ {
+ parent::__construct(new PublicNoticeStream($profile));
+ }
+}