- $user = common_current_user();
- if ($user && ($user->id == $this->user->id)) {
- // TRANS: H1 text for page when viewing a list for self.
- $this->element('h1', null, _("You and friends"));
- } else {
- // TRANS: H1 text for page. %s is a user nickname.
- $this->element('h1', null, sprintf(_('%s and friends'), $this->user->nickname));
+ // Show invite button, as long as site isn't closed, and
+ // we have a logged in user.
+ if (common_config('invite', 'enabled') && !common_config('site', 'closed') && common_logged_in()) {
+ if (!common_config('site', 'private')) {
+ $ibs = new InviteButtonSection(
+ $this,
+ // TRANS: Button text for inviting more users to the StatusNet instance.
+ // TRANS: Less business/enterprise-oriented language for public sites.
+ _m('BUTTON', 'Send invite')
+ );
+ } else {
+ $ibs = new InviteButtonSection($this);
+ }
+ $ibs->show();
+ }
+ // XXX: make this a little more convenient
+
+ if (!common_config('performance', 'high')) {
+ $pop = new PopularNoticeSection($this, $this->scoped);
+ $pop->show();
+ $pop = new InboxTagCloudSection($this, $this->target);
+ $pop->show();