12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061 |
- <?php
- if (!defined('GNUSOCIAL')) { exit(1); }
- class ProfileDetailAction extends ShowstreamAction
- {
- function isReadOnly($args)
- {
- return true;
- }
- function title()
- {
- return $this->target->getFancyName();
- }
- function showStylesheets() {
- parent::showStylesheets();
- $this->cssLink('plugins/ExtendedProfile/css/profiledetail.css');
- return true;
- }
- function showContent()
- {
- $cur = common_current_user();
- if ($this->scoped instanceof Profile && $this->scoped->sameAs($this->target)) {
- $this->elementStart('div', 'entity_actions');
- $this->elementStart('ul');
- $this->elementStart('li', 'entity_edit');
- $this->element('a', array('href' => common_local_url('profiledetailsettings'),
-
- 'title' => _m('Edit extended profile settings')),
-
- _m('Edit'));
- $this->elementEnd('li');
- $this->elementEnd('ul');
- $this->elementEnd('div');
- }
- $widget = new ExtendedProfileWidget($this, $this->target);
- $widget->show();
- }
- }
|