3 if (!defined('GNUSOCIAL')) { exit(1); }
5 class SubscriptionListItem extends ProfileListItem
7 /** Owner of this list */
10 function __construct(Profile $profile, $owner, $action)
12 parent::__construct($profile, $action);
14 $this->owner = $owner;
17 function showProfile()
19 $this->startProfile();
20 $this->showAvatar($this->profile);
21 $this->showNickname();
22 $this->showFullName();
23 $this->showLocation();
24 $this->showHomepage();
29 $this->showOwnerControls();
34 function showOwnerControls()
41 $user = common_current_user();
42 return (!empty($user) && ($this->owner->id == $user->id));