+ function showProfile()
+ {
+ $this->startProfile();
+
+ $this->showAvatar($this->profile->getProfile());
+ $this->out->element('a', array('href' => $this->profile->homeUrl(),
+ 'class' => 'p-org p-nickname',
+ 'rel' => 'contact group'),
+ $this->profile->getNickname());
+
+ $this->showFullName();
+ $this->showLocation();
+ $this->showHomepage();
+ $this->showDescription(); // groups have this instead of bios
+ // Relevant portion!
+ $this->showTags();
+ $this->endProfile();
+ }
+
+ function endActions()
+ {
+ // delete button
+ $cur = common_current_user();
+ list($action, $r2args) = $this->out->returnToArgs();
+ $r2args['action'] = $action;
+ if ($cur instanceof User && $cur->hasRight(Right::DELETEGROUP)) {
+ $this->out->elementStart('li', 'entity_delete');
+ $df = new DeleteGroupForm($this->out, $this->profile, $r2args);
+ $df->show();
+ $this->out->elementEnd('li');
+ }
+
+ $this->out->elementEnd('ul');
+ $this->out->elementEnd('td');
+ }
+