exit(1);
}
+require_once INSTALLDIR.'/lib/peopletags.php';
+
/**
* Profile block to show for an account
*
* @license http://www.fsf.org/licensing/licenses/agpl-3.0.html AGPL 3.0
* @link http://status.net/
*/
-
class AccountProfileBlock extends ProfileBlock
{
protected $profile = null;
return $this->profile->bio;
}
+ 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();
+ }
+ }
+ }
+
function showActions()
{
if (Event::handle('StartProfilePageActionsSection', array($this->out, $this->profile))) {
$this->out->elementStart('li', 'entity_edit');
$this->out->element('a', array('href' => common_local_url('profilesettings'),
// TRANS: Link title for link on user profile.
- 'title' => _('Edit profile settings')),
+ 'title' => _('Edit profile settings.')),
// TRANS: Link text for link on user profile.
- _('Edit'));
+ _m('BUTTON','Edit'));
$this->out->elementEnd('li');
} else { // someone else's page
$this->out->elementStart('li', 'entity_send-a-message');
$this->out->element('a', array('href' => common_local_url('newmessage', array('to' => $this->user->id)),
// TRANS: Link title for link on user profile.
- 'title' => _('Send a direct message to this user')),
+ 'title' => _('Send a direct message to this user.')),
// TRANS: Link text for link on user profile.
- _('Message'));
+ _m('BUTTON','Message'));
$this->out->elementEnd('li');
// nudge
$this->out->element('a', array('href' => $url,
'class' => 'entity_remote_subscribe'),
// TRANS: Link text for link that will subscribe to a remote profile.
- _('Subscribe'));
+ _m('BUTTON','Subscribe'));
}
-}
\ No newline at end of file
+
+ function show()
+ {
+ $this->out->elementStart('div', 'profile_block account_profile_block section');
+ if (Event::handle('StartShowAccountProfileBlock', array($this->out, $this->profile))) {
+ parent::show();
+ Event::handle('EndShowAccountProfileBlock', array($this->out, $this->profile));
+ }
+ $this->out->elementEnd('div');
+ }
+}