summaryrefslogtreecommitdiff
path: root/actions/facebookinvite.php
diff options
context:
space:
mode:
Diffstat (limited to 'actions/facebookinvite.php')
-rw-r--r--actions/facebookinvite.php47
1 files changed, 24 insertions, 23 deletions
diff --git a/actions/facebookinvite.php b/actions/facebookinvite.php
index fe0c5e493..1e6f6496e 100644
--- a/actions/facebookinvite.php
+++ b/actions/facebookinvite.php
@@ -41,26 +41,26 @@ class FacebookinviteAction extends FacebookAction
$facebook = get_facebook();
$fbuid = $facebook->require_login();
- $this->show_header('Invite');
+ $this->showHeader('Invite');
- common_element('h2', null, _('Thanks for inviting your friends to use Identi.ca!'));
- common_element('p', null, _('Invitations have been sent to the following users:'));
+ $this->element('h2', null, _('Thanks for inviting your friends to use Identi.ca!'));
+ $this->element('p', null, _('Invitations have been sent to the following users:'));
$friend_ids = $_POST['ids']; // Hmm... $this->arg('ids') doesn't seem to work
- common_element_start("ul");
+ $this->elementStart("ul");
foreach ($friend_ids as $friend) {
- common_element_start('li');
- common_element('fb:profile-pic', array('uid' => $friend));
- common_element('fb:name', array('uid' => $friend,
+ $this->elementStart('li');
+ $this->element('fb:profile-pic', array('uid' => $friend));
+ $this->element('fb:name', array('uid' => $friend,
'capitalize' => 'true'));
- common_element_end('li');
+ $this->elementEnd('li');
}
- common_element_end("ul");
+ $this->elementEnd("ul");
- $this->show_footer();
+ $this->showFooter();
}
function showInviteForm()
@@ -69,7 +69,8 @@ class FacebookinviteAction extends FacebookAction
$facebook = get_facebook();
$fbuid = $facebook->require_login();
- $this->show_header('Invite');
+ $this->showHeader();
+ $this->showNav('Invite');
// Get a list of users who are already using the app for exclusion
$exclude_ids = $facebook->api_client->friends_getAppUsers();
@@ -77,34 +78,34 @@ class FacebookinviteAction extends FacebookAction
$content = _('You have been invited to Identi.ca!') .
htmlentities('<fb:req-choice url="http://apps.facebook.com/identica_app/" label="Add"/>');
- common_element_start('fb:request-form', array('action' => 'invite.php',
+ $this->elementStart('fb:request-form', array('action' => 'invite.php',
'method' => 'post',
'invite' => 'true',
'type' => 'Identi.ca',
'content' => $content));
- common_hidden('invite', 'true');
+ $this->hidden('invite', 'true');
$actiontext = 'Invite your friends to use Identi.ca.';
- common_element('fb:multi-friend-selector', array('showborder' => 'false',
+ $this->element('fb:multi-friend-selector', array('showborder' => 'false',
'actiontext' => $actiontext,
'exclude_ids' => implode(',', $exclude_ids),
'bypass' => 'cancel'));
- common_element_end('fb:request-form');
+ $this->elementEnd('fb:request-form');
- common_element('h2', null, _('Friends already using Identi.ca:'));
- common_element_start("ul");
+ $this->element('h2', null, _('Friends already using Identi.ca:'));
+ $this->elementStart("ul");
foreach ($exclude_ids as $friend) {
- common_element_start('li');
- common_element('fb:profile-pic', array('uid' => $friend));
- common_element('fb:name', array('uid' => $friend,
+ $this->elementStart('li');
+ $this->element('fb:profile-pic', array('uid' => $friend));
+ $this->element('fb:name', array('uid' => $friend,
'capitalize' => 'true'));
- common_element_end('li');
+ $this->elementEnd('li');
}
- common_element_end("ul");
+ $this->elementEnd("ul");
- $this->show_footer();
+ $this->showFooter();
}