mirror of
https://codeberg.org/streams/streams.git
synced 2024-09-20 15:35:12 +00:00
disable feature setting for collections and make feature settings for personal and new tab working.
This commit is contained in:
parent
f3fd9535a4
commit
ed00301bb6
2 changed files with 10 additions and 7 deletions
|
@ -1388,21 +1388,23 @@ function network_tabs() {
|
|||
'sel'=>$postord_active,
|
||||
'title' => t('Sort by Post Date'),
|
||||
),
|
||||
);
|
||||
|
||||
array(
|
||||
if(feature_enabled(local_user(),'personal_tab'))
|
||||
$tabs[] = array(
|
||||
'label' => t('Personal'),
|
||||
'url' => $a->get_baseurl(true) . '/' . $cmd . '?f=' . ((x($_GET,'cid')) ? '&cid=' . $_GET['cid'] : '') . '&conv=1',
|
||||
'sel' => $conv_active,
|
||||
'title' => t('Posts that mention or involve you'),
|
||||
),
|
||||
array(
|
||||
);
|
||||
|
||||
if(feature_enabled(local_user(),'new_tab'))
|
||||
$tabs[] = array(
|
||||
'label' => t('New'),
|
||||
'url' => $a->get_baseurl(true) . '/' . $cmd . '?f=' . ((x($_GET,'cid')) ? '&cid=' . $_GET['cid'] : '') . '&new=1' . ((x($_GET,'gid')) ? '&gid=' . $_GET['gid'] : ''),
|
||||
'sel' => $new_active,
|
||||
'title' => t('Activity Stream - by date'),
|
||||
),
|
||||
|
||||
);
|
||||
);
|
||||
|
||||
if(feature_enabled(local_user(),'star_posts'))
|
||||
$tabs[] = array(
|
||||
|
|
|
@ -46,7 +46,8 @@ function get_features() {
|
|||
'net_module' => array(
|
||||
t('Network and Stream Filtering'),
|
||||
array('archives', t('Search by Date'), t('Ability to select posts by date ranges')),
|
||||
array('groups', t('Collections Filter'), t('Enable widget to display Network posts only from selected collections')),
|
||||
// Disabled until a solution for default feature settings is found.
|
||||
// array('groups', t('Collections Filter'), t('Enable widget to display Network posts only from selected collections')),
|
||||
array('savedsearch', t('Saved Searches'), t('Save search terms for re-use')),
|
||||
array('personal_tab', t('Network Personal Tab'), t('Enable tab to display only Network posts that you\'ve interacted on')),
|
||||
array('new_tab', t('Network New Tab'), t('Enable tab to display all new Network activity')),
|
||||
|
|
Loading…
Reference in a new issue