forked from GNUsocial/gnu-social
add an event for group members minilist
This commit is contained in:
parent
ac9fda4bc0
commit
ffc1ac02c3
@ -388,18 +388,23 @@ class ShowgroupAction extends GroupDesignAction
|
|||||||
$this->elementStart('div', array('id' => 'entity_members',
|
$this->elementStart('div', array('id' => 'entity_members',
|
||||||
'class' => 'section'));
|
'class' => 'section'));
|
||||||
|
|
||||||
$this->element('h2', null, _('Members'));
|
if (Event::handle('StartShowGroupMembersMiniList', array($this))) {
|
||||||
|
|
||||||
$pml = new ProfileMiniList($member, $this);
|
$this->element('h2', null, _('Members'));
|
||||||
$cnt = $pml->show();
|
|
||||||
if ($cnt == 0) {
|
|
||||||
$this->element('p', null, _('(None)'));
|
|
||||||
}
|
|
||||||
|
|
||||||
if ($cnt > MEMBERS_PER_SECTION) {
|
$pml = new ProfileMiniList($member, $this);
|
||||||
$this->element('a', array('href' => common_local_url('groupmembers',
|
$cnt = $pml->show();
|
||||||
array('nickname' => $this->group->nickname))),
|
if ($cnt == 0) {
|
||||||
_('All members'));
|
$this->element('p', null, _('(None)'));
|
||||||
|
}
|
||||||
|
|
||||||
|
if ($cnt > MEMBERS_PER_SECTION) {
|
||||||
|
$this->element('a', array('href' => common_local_url('groupmembers',
|
||||||
|
array('nickname' => $this->group->nickname))),
|
||||||
|
_('All members'));
|
||||||
|
}
|
||||||
|
|
||||||
|
Event::handle('EndShowGroupMembersMiniList', array($this));
|
||||||
}
|
}
|
||||||
|
|
||||||
$this->elementEnd('div');
|
$this->elementEnd('div');
|
||||||
|
Loading…
Reference in New Issue
Block a user