try to get the right class for profileminilist
This commit is contained in:
parent
23fd58b74c
commit
ee8dd62038
|
@ -62,8 +62,23 @@ class ProfileList extends Widget
|
|||
|
||||
function show()
|
||||
{
|
||||
$this->out->elementStart('ul', 'profiles');
|
||||
$this->startList();
|
||||
$this->showProfiles();
|
||||
$this->endList();
|
||||
}
|
||||
|
||||
function startList()
|
||||
{
|
||||
$this->out->elementStart('ul', 'profiles');
|
||||
}
|
||||
|
||||
function endList()
|
||||
{
|
||||
$this->out->elementEnd('ul');
|
||||
}
|
||||
|
||||
function showProfiles()
|
||||
{
|
||||
$cnt = 0;
|
||||
|
||||
while ($this->profile->fetch()) {
|
||||
|
@ -75,8 +90,6 @@ class ProfileList extends Widget
|
|||
$pli->show();
|
||||
}
|
||||
|
||||
$this->out->elementEnd('ul');
|
||||
|
||||
return $cnt;
|
||||
}
|
||||
|
||||
|
|
|
@ -47,6 +47,11 @@ define('PROFILES_PER_MINILIST', 27);
|
|||
|
||||
class ProfileMiniList extends ProfileList
|
||||
{
|
||||
function startList()
|
||||
{
|
||||
$this->out->elementStart('ul', 'entity users xoxo');
|
||||
}
|
||||
|
||||
function newListItem($profile)
|
||||
{
|
||||
return new ProfileMiniListItem($profile, $this->action);
|
||||
|
|
Loading…
Reference in New Issue
Block a user