]> git.mxchange.org Git - quix0rs-gnu-social.git/blobdiff - plugins/SubMirror/actions/mirrorsettings.php
Merge branch 'statusnetworkapi' into 1.0.x
[quix0rs-gnu-social.git] / plugins / SubMirror / actions / mirrorsettings.php
index ae09111ec4981b4b2ddf04af06ea4100bc50a2c7..2db7504a64d9b890b265a459310a767316e87925 100644 (file)
@@ -38,7 +38,7 @@ class MirrorSettingsAction extends SettingsAction
      */
     function title()
     {
-        // TRANS: Title.
+        // TRANS: Page title.
         return _m('Feed mirror settings');
     }
 
@@ -50,7 +50,7 @@ class MirrorSettingsAction extends SettingsAction
 
     function getInstructions()
     {
-        // TRANS: Instructions.
+        // TRANS: Page instructions.
         return _m('You can mirror updates from many RSS and Atom feeds ' .
                   'into your StatusNet timeline!');
     }
@@ -100,7 +100,20 @@ class MirrorSettingsAction extends SettingsAction
 
     function showAddFeedForm()
     {
-        $form = new AddMirrorForm($this);
+        switch ($this->arg('provider')) {
+        case 'statusnet':
+            break;
+        case 'twitter':
+            $form = new AddTwitterMirrorForm($this);
+            break;
+        case 'wordpress':
+            break;
+        case 'linkedin':
+            break;
+        case 'feed':
+        default:
+            $form = new AddMirrorForm($this);
+        }
         $form->show();
     }
 
@@ -116,7 +129,8 @@ class MirrorSettingsAction extends SettingsAction
             header('Content-Type: text/html;charset=utf-8');
             $this->elementStart('html');
             $this->elementStart('head');
-            $this->element('title', null, _('Provider add'));
+            // TRANS: Title for page with form to add a mirror feed provider on.
+            $this->element('title', null, _m('Provider add'));
             $this->elementEnd('head');
             $this->elementStart('body');