]> git.mxchange.org Git - quix0rs-gnu-social.git/blobdiff - actions/facebooksettings.php
Added mark_hash for content (i.e., to indicate tags with the
[quix0rs-gnu-social.git] / actions / facebooksettings.php
index a08abc93719117d9a161b29121494a9591ef5b5a..d4f03e58c09db24a43a06df43af7cb9ee51007c1 100644 (file)
@@ -72,26 +72,25 @@ class FacebooksettingsAction extends FacebookAction
 
         if ($facebook->api_client->users_hasAppPermission('status_update')) {
 
-            common_element_start('form', array('method' => 'post',
+            $this->elementStart('form', array('method' => 'post',
                                                'id' => 'facebook_settings'));
 
-            common_element('h2', null, _('Sync preferences'));
+            $this->element('h2', null, _('Sync preferences'));
 
-            common_checkbox('noticesync', _('Automatically update my Facebook status with my notices.'),
+            $this->checkbox('noticesync', _('Automatically update my Facebook status with my notices.'),
                                 ($flink) ? ($flink->noticesync & FOREIGN_NOTICE_SEND) : true);
 
-            common_checkbox('replysync', _('Send "@" replies to Facebook.'),
+            $this->checkbox('replysync', _('Send "@" replies to Facebook.'),
                              ($flink) ? ($flink->noticesync & FOREIGN_NOTICE_SEND_REPLY) : true);
 
             $prefix = $facebook->api_client->data_getUserPreference(1);
 
-
-            common_input('prefix', _('Prefix'),
+            $this->input('prefix', _('Prefix'),
                          ($prefix) ? $prefix : null,
                          _('A string to prefix notices with.'));
-            common_submit('save', _('Save'));
+            $this->submit('save', _('Save'));
 
-            common_element_end('form');
+            $this->elementEnd('form');
 
         } else {
 
@@ -105,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();