diff options
author | Evan Prodromou <evan@controlyourself.ca> | 2009-06-14 14:55:08 -0700 |
---|---|---|
committer | Evan Prodromou <evan@controlyourself.ca> | 2009-06-14 14:55:08 -0700 |
commit | 10b7e8ff69a6f003efd7385d38feb2300ef69f10 (patch) | |
tree | 620612d2d8377e91c5057b00423b9c59b4214644 /lib/profileminilist.php | |
parent | f32799699c516bf78d591624bc60fbbeaced1bc8 (diff) | |
parent | daf2e7ef47b6ed071e764858c4b1a9f5eaadb65d (diff) |
Merge branch '0.8.x' into groupblock
Diffstat (limited to 'lib/profileminilist.php')
-rw-r--r-- | lib/profileminilist.php | 23 |
1 files changed, 6 insertions, 17 deletions
diff --git a/lib/profileminilist.php b/lib/profileminilist.php index 57496d0e9..f11cae8a5 100644 --- a/lib/profileminilist.php +++ b/lib/profileminilist.php @@ -47,26 +47,15 @@ define('PROFILES_PER_MINILIST', 27); class ProfileMiniList extends ProfileList { - function show() + function newListItem($profile) { - $this->out->elementStart('ul', 'entities users xoxo'); - - $cnt = 0; - - while ($this->profile->fetch()) { - $cnt++; - if($cnt > PROFILES_PER_MINILIST) { - break; - } - $this->showProfile(); - } - - $this->out->elementEnd('ul'); - - return $cnt; + return new ProfileMiniListItem($profile, $this->action); } +} - function showProfile() +class ProfileMiniListItem extends ProfileListItem +{ + function show() { $this->out->elementStart('li', 'vcard'); $this->out->elementStart('a', array('title' => $this->profile->getBestName(), |