$unsubscribe = new UntagButton($this, $this->tagged, $this->peopletag);
$unsubscribe->show();
$this->elementEnd('body');
- $this->elementEnd('html');
+ $this->endHTML();
} else {
$url = common_local_url('subscriptions',
array('nickname' => $this->user->nickname));
$this->element('p', 'success', _('Join request canceled.'));
}
$this->elementEnd('body');
- $this->elementEnd('html');
+ $this->endHTML();
} else {
common_redirect(common_local_url('groupmembers', array('nickname' =>
$this->group->nickname)),
$this->element('p', 'success', _('Subscription canceled.'));
}
$this->elementEnd('body');
- $this->elementEnd('html');
+ $this->endHTML();
} else {
common_redirect(common_local_url('subqueue', array('nickname' =>
$cur->nickname)),
$jf = new JoinForm($this, $this->group);
$jf->show();
$this->elementEnd('body');
- $this->elementEnd('html');
+ $this->endHTML();
} else {
common_redirect(common_local_url('groupmembers', array('nickname' =>
$this->group->nickname)),
$subscribe = new SubscribeForm($this, $other);
$subscribe->show();
$this->elementEnd('body');
- $this->elementEnd('html');
+ $this->endHTML();
} else {
common_redirect(common_local_url('subscriptions',
array('nickname' => $user->nickname)),
$this->elementStart('body');
// @fixme add a sensible AJAX response form!
$this->elementEnd('body');
- $this->elementEnd('html');
+ $this->endHTML();
} else {
// @fixme if we could direct to the page on which this group
// would have shown... that would be awesome
$favor = new FavorForm($this, $notice);
$favor->show();
$this->elementEnd('body');
- $this->elementEnd('html');
+ $this->endHTML();
exit;
}
}
$disfavor = new DisFavorForm($this, $notice);
$disfavor->show();
$this->elementEnd('body');
- $this->elementEnd('html');
+ $this->endHTML();
exit;
}
common_redirect(common_local_url('showfavorites',
}
$form->show();
$this->elementEnd('body');
- $this->elementEnd('html');
+ $this->endHTML();
} else {
common_redirect(common_local_url('groupmembers', array('nickname' =>
$this->group->nickname)),
$jf = new JoinForm($this, $this->group);
$jf->show();
$this->elementEnd('body');
- $this->elementEnd('html');
+ $this->endHTML();
} else {
common_redirect(common_local_url('groupmembers', array('nickname' =>
$this->group->nickname)),
sprintf(_('Direct message to %s sent.'),
$this->other->nickname));
$this->elementEnd('body');
- $this->elementEnd('html');
+ $this->endHTML();
} else {
$url = common_local_url('outbox',
array('nickname' => $this->scoped->nickname));
$this->elementStart('body');
$this->element('p', array('id' => 'error'), $msg);
$this->elementEnd('body');
- $this->elementEnd('html');
+ $this->endHTML();
}
function showForm($msg = null)
$this->elementStart('body');
$this->element('p', array('id' => 'error'), $msg);
$this->elementEnd('body');
- $this->elementEnd('html');
+ $this->endHTML();
}
/**
$form->show();
$this->elementEnd('body');
- $this->elementEnd('html');
+ $this->endHTML();
}
/**
// TRANS: Confirmation text after sending a nudge.
$this->element('p', array('id' => 'nudge_response'), _('Nudge sent!'));
$this->elementEnd('body');
- $this->elementEnd('html');
+ $this->endHTML();
} else {
// display a confirmation to the user
common_redirect(common_local_url('showstream',
$form = $this->successNextForm();
$form->show();
$this->elementEnd('body');
- $this->elementEnd('html');
+ $this->endHTML();
} else {
$url = common_local_url('pluginsadminpanel');
common_redirect($url, 303);
}
}
$this->elementEnd('body');
- $this->elementEnd('html');
+ $this->endHTML();
}
function getResults()
$unsubscribe = new TagButton($this, $this->tagged, $this->peopletag);
$unsubscribe->show();
$this->elementEnd('body');
- $this->elementEnd('html');
+ $this->endHTML();
} else {
$url = common_local_url('subscriptions',
array('nickname' => $this->user->nickname));
// TRANS: Confirmation text after repeating a notice.
_('Repeated!'));
$this->elementEnd('body');
- $this->elementEnd('html');
+ $this->endHTML();
} else {
// @todo FIXME!
}
}
$form->show();
$this->elementEnd('body');
- $this->elementEnd('html');
+ $this->endHTML();
} else {
$url = common_local_url('subscriptions',
array('nickname' => $this->user->nickname));
$lf = new UnsubscribePeopletagForm($this, $this->peopletag);
$lf->show();
$this->elementEnd('body');
- $this->elementEnd('html');
+ $this->endHTML();
} else {
common_redirect(common_local_url('peopletagsubscribers',
array('tagger' => $this->tagger->nickname,
$this->elementStart('body');
$this->element('p', 'error', $error);
$this->elementEnd('body');
- $this->elementEnd('html');
+ $this->endHTML();
} else {
$this->showPage();
}
}
$this->elementEnd('body');
- $this->elementEnd('html');
+ $this->endHTML();
} else {
// TRANS: Success message if lists are saved.
$this->error = _('Lists saved.');
$subscribe = new SubscribeForm($this, $other);
$subscribe->show();
$this->elementEnd('body');
- $this->elementEnd('html');
+ $this->endHTML();
} else {
common_redirect(common_local_url('subscriptions',
array('nickname' => $this->scoped->nickname)),
$lf = new SubscribePeopletagForm($this, $this->peopletag);
$lf->show();
$this->elementEnd('body');
- $this->elementEnd('html');
+ $this->endHTML();
} else {
if (common_get_returnto()) {
common_redirect(common_get_returnto(), 303);
$this->elementStart('body');
$this->element('p', array('id' => 'error'), $this->message);
$this->elementEnd('body');
- $this->elementEnd('html');
+ $this->endHTML();
}
}
$this->elementStart('body');
$form->show();
$this->elementEnd('body');
- $this->elementEnd('html');
+ $this->endHTML();
} else {
common_redirect(common_local_url('spam'), 303);
}
$favor = new AnonFavorForm($this, $notice);
$favor->show();
$this->elementEnd('body');
- $this->elementEnd('html');
+ $this->endHTML();
} else {
$this->returnToPrevious();
}
$disfavor = new AnonDisFavorForm($this, $notice);
$disfavor->show();
$this->elementEnd('body');
- $this->elementEnd('html');
+ $this->endHTML();
} else {
$this->returnToPrevious();
}
$bf = new BookmarkForm($this, $this->title, $this->url, null, null, $this->thumbnail);
$bf->show();
$this->elementEnd('body');
- $this->elementEnd('html');
+ $this->endHTML();
}
/**
sprintf(_m('Direct message to %s sent.'),
$this->group->nickname));
$this->elementEnd('body');
- $this->elementEnd('html');
+ $this->endHTML();
} else {
common_redirect($gm->url, 303);
}
$this->elementStart('body');
$this->element('p', array('id' => 'error'), $msg);
$this->elementEnd('body');
- $this->elementEnd('html');
+ $this->endHTML();
}
/**
$form->show();
$this->elementEnd('body');
- $this->elementEnd('html');
+ $this->endHTML();
}
/**
$unsubscribe = new SearchUnsubForm($this, $this->search);
$unsubscribe->show();
$this->elementEnd('body');
- $this->elementEnd('html');
+ $this->endHTML();
} else {
$url = common_local_url('search',
array('search' => $this->search));
$subscribe = new SearchSubForm($this, $this->search);
$subscribe->show();
$this->elementEnd('body');
- $this->elementEnd('html');
+ $this->endHTML();
} else {
$url = common_local_url('search',
array('search' => $this->search));
$unsubscribe = new EditMirrorForm($this, $this->profile);
$unsubscribe->show();
$this->elementEnd('body');
- $this->elementEnd('html');
+ $this->endHTML();
} else {
$url = common_local_url('mirrorsettings');
common_redirect($url, 303);
function handle($args)
{
if ($this->boolean('ajax')) {
- header('Content-Type: text/html;charset=utf-8');
- $this->elementStart('html');
+ $this->startHTML('text/xml;charset=utf-8');
$this->elementStart('head');
// TRANS: Title for page with form to add a mirror feed provider on.
$this->element('title', null, _m('Provider add'));
$this->showAddFeedForm();
$this->elementEnd('body');
- $this->elementEnd('html');
+ $this->endHTML();
} else {
return parent::handle($args);
}
$unsubscribe = new TagUnsubForm($this, $this->tag);
$unsubscribe->show();
$this->elementEnd('body');
- $this->elementEnd('html');
+ $this->endHTML();
} else {
$url = common_local_url('tag',
array('tag' => $this->tag));
$subscribe = new TagSubForm($this, $this->tag);
$subscribe->show();
$this->elementEnd('body');
- $this->elementEnd('html');
+ $this->endHTML();
} else {
$url = common_local_url('tag',
array('tag' => $this->tag));
$this->elementStart('body');
$form->show();
$this->elementEnd('body');
- $this->elementEnd('html');
+ $this->endHTML();
}
/**
$this->elementStart('body');
$form->show();
$this->elementEnd('body');
- $this->elementEnd('html');
+ $this->endHTML();
}
}