$this->element('h2', null, _('Members'));
- $pml = new ProfileMiniList($member, $this);
- $cnt = $pml->show();
+ $gmml = new GroupMembersMiniList($member, $this);
+ $cnt = $gmml->show();
if ($cnt == 0) {
$this->element('p', null, _('(None)'));
}
return null;
}
}
+
+class GroupMembersMiniList extends ProfileMiniList
+{
+ function newListItem($profile)
+ {
+ return new GroupMembersMiniListItem($profile, $this->action);
+ }
+}
+
+class GroupMembersMiniListItem extends ProfileMiniListItem
+{
+ function linkAttributes()
+ {
+ $aAttrs = parent::linkAttributes();
+
+ if (common_config('nofollow', 'members')) {
+ $aAttrs['rel'] .= ' nofollow';
+ }
+
+ return $aAttrs;
+ }
+}
+