summaryrefslogtreecommitdiff
path: root/actions/facebookinvite.php
diff options
context:
space:
mode:
Diffstat (limited to 'actions/facebookinvite.php')
-rw-r--r--actions/facebookinvite.php25
1 files changed, 14 insertions, 11 deletions
diff --git a/actions/facebookinvite.php b/actions/facebookinvite.php
index 0b966cf26..b3653c78b 100644
--- a/actions/facebookinvite.php
+++ b/actions/facebookinvite.php
@@ -40,17 +40,20 @@ class FacebookinviteAction extends FacebookAction
$this->show_header('Invite');
- $fbml = '<fb:request-form '
- .'action="invite.php" '
- .'method="POST" '
- .'invite="true" '
- .'type="Identi.ca" '
- .'content="You have been invited to Identi.ca! '
- . htmlentities('<fb:req-choice url="http://apps.facebook.com/identica_app/" label="Add"/>') . '">'
- .'<fb:multi-friend-selector showborder="false" actiontext="Invite your friends to use Identi.ca.">'
- .'</fb:request-form>';
-
- echo $fbml;
+ $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',
+ 'method' => 'POST',
+ 'invite' => 'true',
+ 'type' => 'Identi.ca',
+ 'content' => $content));
+
+ $actiontext = 'Invite your friends to use Identi.ca.';
+ common_element_start('fb:multi-friend-selector', array('showborder' => 'false',
+ 'actiontext' => $actiontext));
+
+ common_element_end('fb:request-form');
$this->show_footer();