]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
show group aliases on group profile block
authorEvan Prodromou <evan@status.net>
Fri, 30 Sep 2011 16:23:10 +0000 (12:23 -0400)
committerEvan Prodromou <evan@status.net>
Fri, 30 Sep 2011 16:23:10 +0000 (12:23 -0400)
lib/groupprofileblock.php
theme/base/css/display.css

index fc0679247b933665e6306ab00483927700f81193..58e553a4c23348aca55296f36d457d547f5abb4e 100644 (file)
@@ -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');
+        }
+    }
 }
index 7f96d846c1a0ea8d3767d3403543c7dfadfc28a6..d2d07c4cec609c8de93f38796f58058be9ef09f9 100644 (file)
@@ -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;