summaryrefslogtreecommitdiff
path: root/actions/facebookinvite.php
diff options
context:
space:
mode:
authorZach Copley <zach@controlyourself.ca>2009-01-11 07:03:59 +0000
committerZach Copley <zach@controlyourself.ca>2009-01-11 07:03:59 +0000
commit689be142158dae5af1516cb38b947f0364d725dd (patch)
tree5abdea40b707a4e84b12826e9dc295eb3867b616 /actions/facebookinvite.php
parentf0436655c8644844b3f37d722a120df3b0727575 (diff)
trac750 - Facebook app now uses XMLWriter for output (much cleaner!)
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();