first cut on restructuring the previously called network tabs

This commit is contained in:
Mario Vavti
2018-05-30 14:02:58 +02:00
parent 7d088c8d56
commit 9fcb3bf2e8
5 changed files with 52 additions and 17 deletions
+11 -11
View File
@@ -386,23 +386,23 @@ function get_features($filtered = true, $level = (-1)) {
],
[
'personal_tab',
t('Network Personal Tab'),
'order_tab',
t('Alternate Stream Order'),
t('Ability to order the stream by last post date, last comment date or unthreaded activities'),
false,
get_config('feature_lock','order_tab'),
feature_level('order_tab',2),
],
[
'personal_tab',
t('Network Personal Tab'),
t('Enable tab to display only Network posts that you\'ve interacted on'),
false,
get_config('feature_lock','personal_tab'),
feature_level('personal_tab',1),
],
[
'new_tab',
t('Network New Tab'),
t('Enable tab to display all new Network activity'),
false,
get_config('feature_lock','new_tab'),
feature_level('new_tab',2),
],
[
'affinity',
t('Affinity Tool'),
+1 -1
View File
@@ -284,7 +284,7 @@ function group_side($every="connections",$each="group",$edit = false, $group_id
'text' => t('All Channels'),
'id' => 0,
'selected' => (($group_id == 0) ? 'group-selected' : ''),
'href' => $every . (($every === 'network') ? '?f=&gid=0' : '') . ((x($_GET,'order')) ? '&order=' . $_GET['order'] : ''),
'href' => $every . (($every === 'network') ? '?f=&gid=0' : ''),
);
+21 -1
View File
@@ -3333,4 +3333,24 @@ function unique_multidim_array($array, $key) {
$i++;
}
return $temp_array;
}
}
function network_qstring($req) {
$ret = '?f=';
if(x($req, 'cid'))
$ret .= '&cid=' . $req['cid'];
if(x($req, 'gid'))
$ret .= '&gid=' . $req['gid'];
if(x($req, 'star'))
$ret .= '&star=' . $req['star'];
if(x($req, 'conv'))
$ret .= '&conv=' . $req['conv'];
return $ret;
}