function showContent() { $cur = common_current_user(); $profile = $cur->getProfile(); $widget = new ExtendedProfileWidget($this, $profile, ExtendedProfileWidget::EDITABLE); $widget->show(); }
function showContent() { $cur = common_current_user(); if ($cur && $cur->id == $this->profile->id) { // your own page $this->elementStart('div', 'entity_actions'); $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('div'); } $widget = new ExtendedProfileWidget($this, $this->profile); $widget->show(); }
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(); }
function showContent() { $widget = new ExtendedProfileWidget($this, $this->scoped, ExtendedProfileWidget::EDITABLE); $widget->show(); }