From 91457944003049d021947fde0a5f2658393010d9 Mon Sep 17 00:00:00 2001 From: Evan Prodromou Date: Mon, 19 Jan 2009 13:44:10 +0000 Subject: Update facebook stuff to use new methods change facebook stuff to use new methods for XML and HTML. --- actions/facebookhome.php | 32 ++++++++++++++++---------------- 1 file changed, 16 insertions(+), 16 deletions(-) (limited to 'actions/facebookhome.php') diff --git a/actions/facebookhome.php b/actions/facebookhome.php index ae29ee1f8..14342f944 100644 --- a/actions/facebookhome.php +++ b/actions/facebookhome.php @@ -184,7 +184,7 @@ class FacebookhomeAction extends FacebookAction $this->showLogo(); - common_element_start('div', array('class' => 'content')); + $this->elementStart('div', array('class' => 'content')); // Figure what the URL of our app is. $app_props = $facebook->api_client->Admin_getAppProperties( @@ -196,30 +196,30 @@ class FacebookhomeAction extends FacebookAction 'your Facebook status with your latest notice, you need ' . 'to give it permission.'), $app_name); - common_element_start('p'); - common_element('span', array('id' => 'permissions_notice'), $instructions); - common_element_end('p'); + $this->elementStart('p'); + $this->element('span', array('id' => 'permissions_notice'), $instructions); + $this->elementEnd('p'); - common_element_start('form', array('method' => 'post', + $this->elementStart('form', array('method' => 'post', 'action' => $app_url, 'id' => 'facebook-skip-permissions')); - common_element_start('ul', array('id' => 'fb-permissions-list')); - common_element_start('li', array('id' => 'fb-permissions-item')); - common_element_start('fb:prompt-permission', array('perms' => 'status_update', + $this->elementStart('ul', array('id' => 'fb-permissions-list')); + $this->elementStart('li', array('id' => 'fb-permissions-item')); + $this->elementStart('fb:prompt-permission', array('perms' => 'status_update', 'next_fbjs' => 'document.setLocation(\'' . $app_url . '\')')); - common_element('span', array('class' => 'facebook-button'), + $this->element('span', array('class' => 'facebook-button'), _('Allow Identi.ca to update my Facebook status')); - common_element_end('fb:prompt-permission'); - common_element_end('li'); + $this->elementEnd('fb:prompt-permission'); + $this->elementEnd('li'); - common_element_start('li', array('id' => 'fb-permissions-item')); + $this->elementStart('li', array('id' => 'fb-permissions-item')); common_submit('skip', _('Skip')); - common_element_end('li'); - common_element_end('ul'); + $this->elementEnd('li'); + $this->elementEnd('ul'); - common_element_end('form'); - common_element_end('div'); + $this->elementEnd('form'); + $this->elementEnd('div'); common_end_xml(); -- cgit v1.2.3-54-g00ecf