]> git.mxchange.org Git - quix0rs-gnu-social.git/blob - plugins/ExtendedProfile/extendedprofile.php
18fef20331f8ff3900d77a46bd6b88bfac0def70
[quix0rs-gnu-social.git] / plugins / ExtendedProfile / extendedprofile.php
1 <?php
2 /*
3  * StatusNet - the distributed open-source microblogging tool
4  * Copyright (C) 2011, StatusNet, Inc.
5  *
6  * 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
20 if (!defined('STATUSNET')) {
21     exit(1);
22 }
23
24 class ExtendedProfile
25 {
26     function getSections()
27     {
28         return array(
29             'basic' => array(
30                 'label' => _m('Personal'),
31                 'fields' => array(
32                     'fullname' => array(
33                         'label' => _m('Full name'),
34                         'profile' => 'fullname',
35                         'vcard' => 'fn',
36                     ),
37                     'title' => array(
38                         'label' => _m('Title'),
39                         'vcard' => 'title',
40                     ),
41                     'manager' => array(
42                         'label' => _m('Manager'),
43                         'type' => 'person',
44                         'vcard' => 'x-manager',
45                     ),
46                     'location' => array(
47                         'label' => _m('Location'),
48                         'profile' => 'location'
49                     ),
50                     'bio' => array(
51                         'label' => _m('Bio'),
52                         'type' => 'textarea',
53                         'profile' => 'bio',
54                     ),
55                     'tags' => array(
56                         'label' => _m('Tags'),
57                         'type' => 'tags',
58                         'profile' => 'tags',
59                     ),
60                 ),
61             ),
62             'contact' => array(
63                 'label' => _m('Contact'),
64                 'fields' => array(
65                     'phone' => array(
66                         'label' => _m('Phone'),
67                         'type' => 'phone',
68                         'multi' => true,
69                         'vcard' => 'tel',
70                     ),
71                     'im' => array(
72                         'label' => _m('IM'),
73                         'type' => 'im',
74                         'multi' => true,
75                     ),
76                     'website' => array(
77                         'label' => _m('Websites'),
78                         'type' => 'website',
79                         'multi' => true,
80                     ),
81                 ),
82             ),
83             'personal' => array(
84                 'label' => _m('Personal'),
85                 'fields' => array(
86                     'birthday' => array(
87                         'label' => _m('Birthday'),
88                         'type' => 'date',
89                         'vcard' => 'bday',
90                     ),
91                     'spouse' => array(
92                         'label' => _m('Spouse\'s name'),
93                         'vcard' => 'x-spouse',
94                     ),
95                     'kids' => array(
96                         'label' => _m('Kids\' names')
97                     ),
98                 ),
99             ),
100             'experience' => array(
101                 'label' => _m('Work experience'),
102                 'fields' => array(
103                     'experience' => array(
104                         'type' => 'experience',
105                         'label' => _m('Employer'),
106                     ),
107                 ),
108             ),
109             'education' => array(
110                 'label' => _m('Education'),
111                 'fields' => array(
112                     'education' => array(
113                         'type' => 'education',
114                         'label' => _m('Institution'),
115                     ),
116                 ),
117             ),
118         );
119     }
120 }