3 if (!defined('GNUSOCIAL')) { exit(1); }
5 class SubscribersListItem extends SubscriptionListItem
10 if (Event::handle('StartProfileListItemActionElements', array($this))) {
11 $this->showSubscribeButton();
13 $this->showBlockForm();
14 Event::handle('EndProfileListItemActionElements', array($this));
19 function showBlockForm()
21 $user = common_current_user();
23 if (!empty($user) && $this->owner->id == $user->id) {
24 $returnto = array('action' => 'subscribers',
25 'nickname' => $this->owner->getNickname());
26 $page = $this->out->arg('page');
28 $returnto['param-page'] = $page;
30 $bf = new BlockForm($this->out, $this->profile, $returnto);
35 function linkAttributes()
37 $aAttrs = parent::linkAttributes();
39 if (common_config('nofollow', 'subscribers')) {
40 $aAttrs['rel'] .= ' nofollow';
46 function homepageAttributes()
48 $aAttrs = parent::linkAttributes();
50 if (common_config('nofollow', 'subscribers')) {
51 $aAttrs['rel'] = 'nofollow';