article feature
This commit is contained in:
@@ -539,6 +539,15 @@ function conversation($items, $mode, $update, $page_mode = 'traditional', $prepa
|
||||
$jsreload = $_SESSION['return_url'];
|
||||
}
|
||||
|
||||
elseif ($mode === 'articles') {
|
||||
$profile_owner = App::$profile['profile_uid'];
|
||||
$page_writeable = ($profile_owner == local_channel());
|
||||
$live_update_div = '<div id="live-articles"></div>' . "\r\n"
|
||||
. "<script> var profile_uid = " . App::$profile['profile_uid']
|
||||
. "; var netargs = '?f='; var profile_page = " . App::$pager['page'] . "; </script>\r\n";
|
||||
$jsreload = $_SESSION['return_url'];
|
||||
}
|
||||
|
||||
|
||||
elseif ($mode === 'display') {
|
||||
$profile_owner = local_channel();
|
||||
@@ -714,7 +723,7 @@ function conversation($items, $mode, $update, $page_mode = 'traditional', $prepa
|
||||
|
||||
$conv_link_mid = (($mode == 'moderate') ? $item['parent_mid'] : $item['mid']);
|
||||
|
||||
$conv_link = (($item['item_type'] == ITEM_TYPE_CARD) ? $item['plink'] : z_root() . '/display/' . gen_link_id($conv_link_mid));
|
||||
$conv_link = ((in_array($item['item_type'],[ ITEM_TYPE_CARD, ITEM_TYPE_ARTICLE] )) ? $item['plink'] : z_root() . '/display/' . gen_link_id($conv_link_mid));
|
||||
|
||||
|
||||
$tmp_item = array(
|
||||
@@ -1887,6 +1896,17 @@ function profile_tabs($a, $is_owner = false, $nickname = null){
|
||||
'icon' => 'list'
|
||||
);
|
||||
}
|
||||
|
||||
if(feature_enabled($uid,'articles')) {
|
||||
$tabs[] = array(
|
||||
'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[] = array(
|
||||
|
Reference in New Issue
Block a user