]> git.mxchange.org Git - friendica.git/blob - include/features.php
Merge pull request #2035 from FlxAlbroscheit/develop
[friendica.git] / include / features.php
1 <?php
2
3 /*
4  * Features management
5  */
6
7
8 function feature_enabled($uid,$feature) {
9         //return true;
10
11         $x = get_pconfig($uid,'feature',$feature);
12         $arr = array('uid' => $uid, 'feature' => $feature, 'enabled' => $x);
13         call_hooks('feature_enabled',$arr);
14         return($arr['enabled']);
15 }
16
17 function get_features() {
18
19         $arr = array(
20
21                 // General
22                 'general' => array(
23                         t('General Features'),
24                         //array('expire',         t('Content Expiration'),              t('Remove old posts/comments after a period of time')),
25                         array('multi_profiles', t('Multiple Profiles'),                 t('Ability to create multiple profiles')),
26                         array('photo_location', t('Photo Location'),                    t('Photo metadata is normally stripped. This extracts the location (if present) prior to stripping metadata and links it to a map.'),false),
27                 ),
28
29                 // Post composition
30                 'composition' => array(
31                         t('Post Composition Features'),
32                         array('richtext',       t('Richtext Editor'),                   t('Enable richtext editor')),
33                         array('preview',        t('Post Preview'),                      t('Allow previewing posts and comments before publishing them')),
34                         array('aclautomention', t('Auto-mention Forums'),               t('Add/remove mention when a fourm page is selected/deselected in ACL window.')),
35                 ),
36
37                 // Network sidebar widgets
38                 'widgets' => array(
39                         t('Network Sidebar Widgets'),
40                         array('archives',       t('Search by Date'),                    t('Ability to select posts by date ranges')),
41                         array('groups',                 t('Group Filter'),                              t('Enable widget to display Network posts only from selected group')),
42                         array('networks',               t('Network Filter'),                    t('Enable widget to display Network posts only from selected network')),
43                         array('savedsearch',    t('Saved Searches'),                    t('Save search terms for re-use')),
44                 ),
45
46                 // Network tabs
47                 'net_tabs' => array(
48                         t('Network Tabs'),
49                         array('personal_tab',   t('Network Personal Tab'),              t('Enable tab to display only Network posts that you\'ve interacted on')),
50                         array('new_tab',                t('Network New Tab'),                   t('Enable tab to display only new Network posts (from the last 12 hours)')),
51                         array('link_tab',       t('Network Shared Links Tab'),  t('Enable tab to display only Network posts with links in them')),
52                 ),
53
54                 // Item tools
55                 'tools' => array(
56                         t('Post/Comment Tools'),
57                         array('multi_delete',   t('Multiple Deletion'),                 t('Select and delete multiple posts/comments at once')),
58                         array('edit_posts',     t('Edit Sent Posts'),                   t('Edit and correct posts and comments after sending')),
59                         array('commtag',        t('Tagging'),                                   t('Ability to tag existing posts')),
60                         array('categories',     t('Post Categories'),                   t('Add categories to your posts')),
61                         array('filing',         t('Saved Folders'),                             t('Ability to file posts under folders')),
62                         array('dislike',        t('Dislike Posts'),                             t('Ability to dislike posts/comments')),
63                         array('star_posts',     t('Star Posts'),                                t('Ability to mark special posts with a star indicator')),
64                         array('ignore_posts',   t('Mute Post Notifications'),                   t('Ability to mute notifications for a thread')),
65                 ),
66         );
67
68         call_hooks('get_features',$arr);
69         return $arr;
70 }