3 if (!defined('GNUSOCIAL')) { exit(1); }
5 class SubscriptionListItem extends ProfileListItem
7 /** Owner of this list */
10 // FIXME: TagSubs plugin sends a TagSub here, but should send a Profile and handle TagSub specifics itself?
11 function __construct($target, $owner, HTMLOutputter $action)
13 if ($owner instanceof Profile) {
14 parent::__construct($target, $action, $owner);
16 parent::__construct($target, $action);
19 $this->owner = $owner;
22 function showProfile()
24 $this->startProfile();
25 $this->showAvatar($this->profile);
26 $this->showNickname();
27 $this->showFullName();
28 $this->showLocation();
29 $this->showHomepage();
34 $this->showOwnerControls();
39 function showOwnerControls()
46 $user = common_current_user();
47 return (!empty($user) && ($this->owner->id == $user->id));