. */ if (!defined('STATUSNET')) { exit(1); } class ProfileDetailAction extends ShowstreamAction { function isReadOnly($args) { return true; } function title() { return $this->profile->getFancyName(); } function showStylesheets() { parent::showStylesheets(); $this->cssLink('plugins/ExtendedProfile/css/profiledetail.css'); return true; } function showContent() { $cur = common_current_user(); if ($cur && $cur->id == $this->profile->id) { // your own page $this->elementStart('div', 'entity_actions'); $this->elementStart('ul'); $this->elementStart('li', 'entity_edit'); $this->element('a', array('href' => common_local_url('profiledetailsettings'), // TRANS: Link title for link on user profile. 'title' => _m('Edit extended profile settings')), // TRANS: Link text for link on user profile. _m('Edit')); $this->elementEnd('li'); $this->elementEnd('ul'); $this->elementEnd('div'); } $widget = new ExtendedProfileWidget($this, $this->profile); $widget->show(); } }