exit(1);
}
-require_once INSTALLDIR.'/lib/profilelist.php';
-
/**
* Widget to show a list of subscriptions
*
* @license http://www.fsf.org/licensing/licenses/agpl-3.0.html GNU Affero General Public License version 3.0
* @link http://status.net/
*/
-
class SubscriptionList extends ProfileList
{
/** Owner of this list */
$this->owner = $owner;
}
- function newListItem($profile)
+ function newListItem(Profile $profile)
{
return new SubscriptionListItem($profile, $this->owner, $this->action);
}
function showProfile()
{
$this->startProfile();
- $this->showAvatar();
+ $this->showAvatar($this->profile);
+ $this->showNickname();
$this->showFullName();
$this->showLocation();
$this->showHomepage();
$this->showBio();
// Relevant portion!
$this->showTags();
+ if ($this->isOwn()) {
+ $this->showOwnerControls();
+ }
$this->endProfile();
}
+ function showOwnerControls()
+ {
+ // pass
+ }
+
function isOwn()
{
$user = common_current_user();