- if ($this->profile->hasRole(Profile_role::DELETED)) {
- $this->out->elementStart('div', 'entity_actions');
- // TRANS: H2 for user actions in a profile.
- $this->out->element('h2', null, _('User actions'));
- $this->out->elementStart('ul');
- $this->out->elementStart('p', array('class' => 'profile_deleted'));
- // TRANS: Text shown in user profile of not yet compeltely deleted users.
- $this->out->text(_('User deletion in progress...'));
- $this->out->elementEnd('p');
- $this->out->elementEnd('ul');
- $this->out->elementEnd('div');
- return;
+ $others = array();
+
+ Event::handle('OtherAccountProfiles', array($this->profile, &$others));
+
+ return $others;
+ }
+
+ function showTags()
+ {
+ $cur = common_current_user();
+
+ $self_tags = new SelftagsWidget($this->out, $this->profile, $this->profile);
+ $self_tags->show();
+
+ if ($cur) {
+ // don't show self-tags again
+ if ($cur->id != $this->profile->id && $cur->getProfile()->canTag($this->profile)) {
+ $tags = new PeopletagsWidget($this->out, $cur, $this->profile);
+ $tags->show();
+ }