Features to src
Move Features to class in Friendica\Content namespace. Update function calls and references.
This commit is contained in:
parent
2685c9bb1c
commit
2f0da29c75
24 changed files with 241 additions and 211 deletions
|
@ -3,6 +3,7 @@
|
|||
* @file mod/network.php
|
||||
*/
|
||||
use Friendica\App;
|
||||
use Friendica\Content\Features;
|
||||
use Friendica\Content\ForumManager;
|
||||
use Friendica\Core\System;
|
||||
use Friendica\Core\Config;
|
||||
|
@ -156,8 +157,8 @@ function network_init(App $a) {
|
|||
$a->page['aside'] = '';
|
||||
}
|
||||
|
||||
$a->page['aside'] .= (feature_enabled(local_user(),'groups') ? group_side('network/0','network','standard',$group_id) : '');
|
||||
$a->page['aside'] .= (feature_enabled(local_user(), 'forumlist_widget') ? ForumManager::widget(local_user(), $cid) : '');
|
||||
$a->page['aside'] .= (Features::isEnabled(local_user(),'groups') ? group_side('network/0','network','standard',$group_id) : '');
|
||||
$a->page['aside'] .= (Features::isEnabled(local_user(), 'forumlist_widget') ? ForumManager::widget(local_user(), $cid) : '');
|
||||
$a->page['aside'] .= posted_date_widget('network',local_user(),false);
|
||||
$a->page['aside'] .= networks_widget('network',(x($_GET, 'nets') ? $_GET['nets'] : ''));
|
||||
$a->page['aside'] .= saved_searches($search);
|
||||
|
@ -166,7 +167,7 @@ function network_init(App $a) {
|
|||
|
||||
function saved_searches($search) {
|
||||
|
||||
if (!feature_enabled(local_user(),'savedsearch')) {
|
||||
if (!Features::isEnabled(local_user(),'savedsearch')) {
|
||||
return '';
|
||||
}
|
||||
|
||||
|
@ -918,7 +919,7 @@ function network_tabs(App $a)
|
|||
),
|
||||
);
|
||||
|
||||
if (feature_enabled(local_user(),'personal_tab')) {
|
||||
if (Features::isEnabled(local_user(),'personal_tab')) {
|
||||
$tabs[] = array(
|
||||
'label' => t('Personal'),
|
||||
'url' => str_replace('/new', '', $cmd) . ((x($_GET,'cid')) ? '/?f=&cid=' . $_GET['cid'] : '/?f=') . '&conv=1',
|
||||
|
@ -929,7 +930,7 @@ function network_tabs(App $a)
|
|||
);
|
||||
}
|
||||
|
||||
if (feature_enabled(local_user(),'new_tab')) {
|
||||
if (Features::isEnabled(local_user(),'new_tab')) {
|
||||
$tabs[] = array(
|
||||
'label' => t('New'),
|
||||
'url' => 'network/new' . ((x($_GET,'cid')) ? '/?f=&cid=' . $_GET['cid'] : ''),
|
||||
|
@ -940,7 +941,7 @@ function network_tabs(App $a)
|
|||
);
|
||||
}
|
||||
|
||||
if (feature_enabled(local_user(),'link_tab')) {
|
||||
if (Features::isEnabled(local_user(),'link_tab')) {
|
||||
$tabs[] = array(
|
||||
'label' => t('Shared Links'),
|
||||
'url' => str_replace('/new', '', $cmd) . ((x($_GET,'cid')) ? '/?f=&cid=' . $_GET['cid'] : '/?f=') . '&bmark=1',
|
||||
|
@ -951,7 +952,7 @@ function network_tabs(App $a)
|
|||
);
|
||||
}
|
||||
|
||||
if (feature_enabled(local_user(),'star_posts')) {
|
||||
if (Features::isEnabled(local_user(),'star_posts')) {
|
||||
$tabs[] = array(
|
||||
'label' => t('Starred'),
|
||||
'url' => str_replace('/new', '', $cmd) . ((x($_GET,'cid')) ? '/?f=&cid=' . $_GET['cid'] : '/?f=') . '&star=1',
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue