From f2a98e2329324c83ed1e492cb908a5849b87591f Mon Sep 17 00:00:00 2001 From: Evan Prodromou Date: Fri, 30 Sep 2011 12:23:10 -0400 Subject: [PATCH] show group aliases on group profile block --- lib/groupprofileblock.php | 19 +++++++++++++++++++ theme/base/css/display.css | 6 ++++++ 2 files changed, 25 insertions(+) diff --git a/lib/groupprofileblock.php b/lib/groupprofileblock.php index fc0679247b..58e553a4c2 100644 --- a/lib/groupprofileblock.php +++ b/lib/groupprofileblock.php @@ -153,4 +153,23 @@ class GroupProfileBlock extends ProfileBlock } $this->out->elementEnd('div'); } + + function showName() + { + parent::showName(); + $this->showAliases(); + } + + function showAliases() + { + $aliases = $this->group->getAliases(); + + if (!empty($aliases)) { + $this->out->elementStart('ul', 'group_aliases'); + foreach ($aliases as $alias) { + $this->out->element('li', 'group_alias', $alias); + } + $this->out->elementEnd('ul'); + } + } } diff --git a/theme/base/css/display.css b/theme/base/css/display.css index 7f96d846c1..d2d07c4cec 100644 --- a/theme/base/css/display.css +++ b/theme/base/css/display.css @@ -1976,6 +1976,12 @@ display:block; width:auto; } +.profile_block .group_aliases .group_alias { + display:inline; + list-style-type: none; + font-style: italic; +} + .profile_block .entity_tags dt { display: inline; margin-right: 3px; -- 2.39.5