summaryrefslogtreecommitdiff
path: root/actions
diff options
context:
space:
mode:
authorEvan Prodromou <evan@controlyourself.ca>2009-01-19 13:44:10 +0000
committerEvan Prodromou <evan@controlyourself.ca>2009-01-19 13:44:10 +0000
commit91457944003049d021947fde0a5f2658393010d9 (patch)
treefacd9199c76dea6a7215ad1f420dfe3e1080e0c9 /actions
parent12c475c101c070cbcc4c63f7b1049f6d3282b9ee (diff)
Update facebook stuff to use new methods
change facebook stuff to use new methods for XML and HTML.
Diffstat (limited to 'actions')
-rw-r--r--actions/facebookhome.php32
-rw-r--r--actions/facebooksettings.php20
2 files changed, 26 insertions, 26 deletions
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();
diff --git a/actions/facebooksettings.php b/actions/facebooksettings.php
index bc034bc46..d4f03e58c 100644
--- a/actions/facebooksettings.php
+++ b/actions/facebooksettings.php
@@ -104,19 +104,19 @@ class FacebooksettingsAction 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('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');
- common_element_end('ul');
+ $this->elementEnd('fb:prompt-permission');
+ $this->elementEnd('li');
+ $this->elementEnd('ul');
}
$this->showFooter();