article feature

This commit is contained in:
zotlabs
2017-11-22 15:39:06 -08:00
parent 8bd8af7d16
commit 6c178d4485
17 changed files with 481 additions and 5 deletions

View File

@@ -491,6 +491,17 @@ function channel_apps($is_owner = false, $nickname = null) {
];
}
if($p['view_pages'] && feature_enabled($uid,'articles')) {
$tabs[] = [
'label' => t('Articles'),
'url' => z_root() . '/articles/' . $nickname ,
'sel' => ((argv(0) == 'articles') ? 'active' : ''),
'title' => t('View Articles'),
'id' => 'articles-tab',
'icon' => 'file-text-o'
];
}
if($has_webpages && feature_enabled($uid,'webpages')) {
$tabs[] = [