summaryrefslogtreecommitdiff
path: root/actions/showgroup.php
diff options
context:
space:
mode:
authorEvan Prodromou <evan@status.net>2010-04-05 10:47:07 -0400
committerEvan Prodromou <evan@status.net>2010-04-05 10:47:07 -0400
commit96761c14eafc5933119c95021da4bd8d89b4dd61 (patch)
treef80c1bfecadfc5557872819d92dd185fc0a7271b /actions/showgroup.php
parent2e51d331459d212807bd977fcc972b1127d889fc (diff)
override linkAttributes() method for groupmembersminilist
Diffstat (limited to 'actions/showgroup.php')
-rw-r--r--actions/showgroup.php27
1 files changed, 25 insertions, 2 deletions
diff --git a/actions/showgroup.php b/actions/showgroup.php
index 6e0666690..3d369e9eb 100644
--- a/actions/showgroup.php
+++ b/actions/showgroup.php
@@ -392,8 +392,8 @@ class ShowgroupAction extends GroupDesignAction
$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)'));
}
@@ -507,3 +507,26 @@ class GroupAdminSection extends ProfileSection
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;
+ }
+}
+