From 734f631e1ea9022c6de492e0d2979c9ca00585a4 Mon Sep 17 00:00:00 2001 From: Zach Copley Date: Wed, 1 Jul 2009 18:40:14 -0700 Subject: Show correct number of profile avatars and 'all' link in subs asides --- lib/profileminilist.php | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) (limited to 'lib/profileminilist.php') diff --git a/lib/profileminilist.php b/lib/profileminilist.php index 09bef6f7c..357b4a2db 100644 --- a/lib/profileminilist.php +++ b/lib/profileminilist.php @@ -47,6 +47,7 @@ define('PROFILES_PER_MINILIST', 27); class ProfileMiniList extends ProfileList { + function startList() { $this->out->elementStart('ul', 'entities users xoxo'); @@ -56,6 +57,23 @@ class ProfileMiniList extends ProfileList { return new ProfileMiniListItem($profile, $this->action); } + + function showProfiles() + { + $cnt = 0; + + while ($this->profile->fetch()) { + $cnt++; + if ($cnt > PROFILES_PER_MINILIST) { + break; + } + $pli = $this->newListItem($this->profile); + $pli->show(); + } + + return $cnt; + } + } class ProfileMiniListItem extends ProfileListItem -- cgit v1.2.3-54-g00ecf