summaryrefslogtreecommitdiff
path: root/actions/userauthorization.php
diff options
context:
space:
mode:
authorEvan Prodromou <evan@controlyourself.ca>2009-01-15 22:57:15 +0000
committerEvan Prodromou <evan@controlyourself.ca>2009-01-15 22:57:15 +0000
commiteaa81d25fa7bd954132ce7f901fae69b0d46ec1a (patch)
tree25ac22e73ca93935b2a27e1e91e485b04ec3e01d /actions/userauthorization.php
parent2b2fb276219f87cdc0430d91ac3695e098ae48f4 (diff)
Convert all actions to use new UI functions
I did a massive search-and-replace to get all the action subclasses to use the new output function (common_element() -> $this->element(), etc.) There's still a lot to do, but it's a first step
Diffstat (limited to 'actions/userauthorization.php')
-rw-r--r--actions/userauthorization.php44
1 files changed, 22 insertions, 22 deletions
diff --git a/actions/userauthorization.php b/actions/userauthorization.php
index 05efbc16c..196fae9ad 100644
--- a/actions/userauthorization.php
+++ b/actions/userauthorization.php
@@ -84,51 +84,51 @@ class UserauthorizationAction extends Action
$avatar = $req->get_parameter('omb_listenee_avatar');
common_show_header(_('Authorize subscription'));
- common_element('p', null, _('Please check these details to make sure '.
+ $this->element('p', null, _('Please check these details to make sure '.
'that you want to subscribe to this user\'s notices. '.
'If you didn\'t just ask to subscribe to someone\'s notices, '.
'click "Cancel".'));
- common_element_start('div', 'profile');
+ $this->elementStart('div', 'profile');
if ($avatar) {
- common_element('img', array('src' => $avatar,
+ $this->element('img', array('src' => $avatar,
'class' => 'avatar profile',
'width' => AVATAR_PROFILE_SIZE,
'height' => AVATAR_PROFILE_SIZE,
'alt' => $nickname));
}
- common_element('a', array('href' => $profile,
+ $this->element('a', array('href' => $profile,
'class' => 'external profile nickname'),
$nickname);
if ($fullname) {
- common_element_start('div', 'fullname');
+ $this->elementStart('div', 'fullname');
if ($homepage) {
- common_element('a', array('href' => $homepage),
+ $this->element('a', array('href' => $homepage),
$fullname);
} else {
- common_text($fullname);
+ $this->text($fullname);
}
- common_element_end('div');
+ $this->elementEnd('div');
}
if ($location) {
- common_element('div', 'location', $location);
+ $this->element('div', 'location', $location);
}
if ($bio) {
- common_element('div', 'bio', $bio);
+ $this->element('div', 'bio', $bio);
}
- common_element_start('div', 'license');
- common_element('a', array('href' => $license,
+ $this->elementStart('div', 'license');
+ $this->element('a', array('href' => $license,
'class' => 'license'),
$license);
- common_element_end('div');
- common_element_end('div');
- common_element_start('form', array('method' => 'post',
+ $this->elementEnd('div');
+ $this->elementEnd('div');
+ $this->elementStart('form', array('method' => 'post',
'id' => 'userauthorization',
'name' => 'userauthorization',
'action' => common_local_url('userauthorization')));
- common_hidden('token', common_session_token());
- common_submit('accept', _('Accept'));
- common_submit('reject', _('Reject'));
- common_element_end('form');
+ $this->hidden('token', common_session_token());
+ $this->submit('accept', _('Accept'));
+ $this->submit('reject', _('Reject'));
+ $this->elementEnd('form');
common_show_footer();
}
@@ -328,18 +328,18 @@ class UserauthorizationAction extends Action
function show_accept_message($tok)
{
common_show_header(_('Subscription authorized'));
- common_element('p', null,
+ $this->element('p', null,
_('The subscription has been authorized, but no '.
'callback URL was passed. Check with the site\'s instructions for '.
'details on how to authorize the subscription. Your subscription token is:'));
- common_element('blockquote', 'token', $tok);
+ $this->element('blockquote', 'token', $tok);
common_show_footer();
}
function show_reject_message($tok)
{
common_show_header(_('Subscription rejected'));
- common_element('p', null,
+ $this->element('p', null,
_('The subscription has been rejected, but no '.
'callback URL was passed. Check with the site\'s instructions for '.
'details on how to fully reject the subscription.'));