]> git.mxchange.org Git - quix0rs-gnu-social.git/blob - plugins/SubMirror/lib/addtwittermirrorform.php
172d321de2a5ecca73eac33d48e130b1233f9d87
[quix0rs-gnu-social.git] / plugins / SubMirror / lib / addtwittermirrorform.php
1 <?php
2 /**
3  * StatusNet, the distributed open-source microblogging tool
4  * PHP version 5
5  *
6  * LICENCE: This program is free software: you can redistribute it and/or modify
7  * it under the terms of the GNU Affero General Public License as published by
8  * the Free Software Foundation, either version 3 of the License, or
9  * (at your option) any later version.
10  *
11  * This program is distributed in the hope that it will be useful,
12  * but WITHOUT ANY WARRANTY; without even the implied warranty of
13  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14  * GNU Affero General Public License for more details.
15  *
16  * You should have received a copy of the GNU Affero General Public License
17  * along with this program.  If not, see <http://www.gnu.org/licenses/>.
18  *
19  * @package   StatusNet
20  * @copyright 2010 StatusNet, Inc.
21  * @license   http://www.fsf.org/licensing/licenses/agpl-3.0.html GNU Affero General Public License version 3.0
22  * @link      http://status.net/
23  */
24
25 if (!defined('STATUSNET') && !defined('LACONICA')) {
26     exit(1);
27 }
28
29 class AddTwitterMirrorForm extends AddMirrorForm
30 {
31
32     /**
33      * Visible or invisible data elements
34      *
35      * Display the form fields that make up the data of the form.
36      * Sub-classes should overload this to show their data.
37      *
38      * @return void
39      */
40     function formData()
41     {
42         $this->out->hidden('provider', 'twitter');
43         $this->out->elementStart('fieldset');
44
45         $this->out->elementStart('ul');
46
47         $this->li();
48         $this->doInput('addmirror-feedurl',
49                        'screen_name',
50                        // TRANS: Field label.
51                        _m('Twitter username:'),
52                        $this->out->trimmed('screen_name'));
53         $this->unli();
54
55         $this->li();
56         // TRANS: Button text for adding a Twitter feed mirror.
57         $this->out->submit('addmirror-save', _m('BUTTON','Add feed'));
58         $this->unli();
59         $this->out->elementEnd('ul');
60         $this->out->elementEnd('fieldset');
61     }
62 }