return $this->profile->profileurl;
}
- function canEdit()
- {
- $user = common_current_user();
- return ((!empty($user)) && ($user->id == $this->profile->id));
- }
-
- function editUrl()
- {
- return common_local_url('profilesettings');
- }
-
- function editText()
- {
- return _('Edit');
- }
-
function location()
{
return $this->profile->location;
return $this->group->mainpage;
}
- function canEdit()
- {
- $user = common_current_user();
- return ((!empty($user)) && ($user->isAdmin($this->group)));
- }
-
- function editUrl()
- {
- return common_local_url('editgroup', array('nickname' => $this->group->nickname));
- }
-
- function editText()
- {
- return _('Edit');
- }
-
function location()
{
return $this->group->location;
abstract function avatar();
abstract function name();
abstract function url();
- abstract function canEdit();
- abstract function editUrl();
- abstract function editText();
abstract function location();
abstract function homepage();
abstract function description();
'width' => $size,
'height' => $size));
- if ($this->canEdit()) {
- $this->out->element('a', array('href' => $this->editUrl()),
- $this->editText());
- }
-
$name = $this->name();
if (!empty($name)) {