3 * To change this template, choose Tools | Templates
4 * and open the template in the editor.
7 class RemoteProfileAction extends ShowstreamAction
11 $base = $this->target->getBestName();
12 $host = parse_url($this->target->profileurl, PHP_URL_HOST);
13 // TRANS: Remote profile action page title.
14 // TRANS: %1$s is a username, %2$s is a hostname.
15 return sprintf(_m('%1$s on %2$s'), $base, $host);
19 * Instead of showing notices, link to the original offsite profile.
21 function showNotices()
23 $url = $this->target->profileurl;
24 $host = parse_url($url, PHP_URL_HOST);
26 // TRANS: Message on remote profile page.
27 // TRANS: This message contains Markdown links in the form [description](link).
28 // TRANS: %1$s is a profile nickname, %2$s is a hostname, %3$s is a URL.
29 _m('This remote profile is registered on another site; see [%1$s\'s original profile page on %2$s](%3$s).'),
30 $this->target->nickname,
33 $html = common_markup_to_html($markdown);
36 if ($this->target->hasRole(Profile_role::SILENCED)) {
37 // TRANS: Message on blocked remote profile page.
38 $markdown = _m('Site moderators have silenced this profile, which prevents delivery of new messages to any users on this site.');
39 $this->raw(common_markup_to_html($markdown));
43 if (Event::handle('ShowStreamNoticeList', array($this->notice, $this, &$pnl))) {
44 $pnl = new ProfileNoticeList($this->notice, $this);
48 $this->showEmptyListMessage();
51 $args = array('id' => $this->target->id);
52 if (!empty($this->tag))
54 $args['tag'] = $this->tag;
56 $this->pagination($this->page>1, $cnt>NOTICES_PER_PAGE, $this->page,
57 'remoteprofile', $args);
68 * Don't do various extra stuff, and also trim some things to avoid crawlers.
72 $this->element('meta', array('name' => 'robots',
73 'content' => 'noindex,nofollow'));
76 function showLocalNav()
81 function showSections()
86 function showStatistics()