diff options
author | zotlabs <mike@macgirvin.com> | 2017-08-23 00:01:02 -0700 |
---|---|---|
committer | zotlabs <mike@macgirvin.com> | 2017-08-23 00:01:02 -0700 |
commit | e084b776eee9f1fc66e3f4a37b92ec70ccc49286 (patch) | |
tree | bf19cfd1d3823ec13df1606319bd638e142a4849 /include/conversation.php | |
parent | 41ff8fdd375fcf395b547dd02f3bdcbb198ec0c1 (diff) | |
download | volse-hubzilla-e084b776eee9f1fc66e3f4a37b92ec70ccc49286.tar.gz volse-hubzilla-e084b776eee9f1fc66e3f4a37b92ec70ccc49286.tar.bz2 volse-hubzilla-e084b776eee9f1fc66e3f4a37b92ec70ccc49286.zip |
cards feature
Diffstat (limited to 'include/conversation.php')
-rw-r--r-- | include/conversation.php | 16 |
1 files changed, 14 insertions, 2 deletions
diff --git a/include/conversation.php b/include/conversation.php index 3b8ec19d3..c9142ac30 100644 --- a/include/conversation.php +++ b/include/conversation.php @@ -1835,7 +1835,8 @@ function profile_tabs($a, $is_owner = false, $nickname = null){ require_once('include/menu.php'); $has_bookmarks = menu_list_count(local_channel(),'',MENU_BOOKMARK) + menu_list_count(local_channel(),'',MENU_SYSTEM|MENU_BOOKMARK); - if ($is_owner && $has_bookmarks) { + + if($is_owner && $has_bookmarks) { $tabs[] = array( 'label' => t('Bookmarks'), 'url' => z_root() . '/bookmarks', @@ -1846,6 +1847,17 @@ function profile_tabs($a, $is_owner = false, $nickname = null){ ); } + if(feature_enabled($uid,'cards')) { + $tabs[] = array( + 'label' => t('Cards'), + 'url' => z_root() . '/cards/' . $nickname, + 'sel' => ((argv(0) == 'cards') ? 'active' : ''), + 'title' => t('View Cards'), + 'id' => 'cards-tab', + 'icon' => 'list' + ); + } + if($has_webpages && feature_enabled($uid,'webpages')) { $tabs[] = array( 'label' => t('Webpages'), @@ -1856,7 +1868,7 @@ function profile_tabs($a, $is_owner = false, $nickname = null){ 'icon' => 'newspaper-o' ); } - + if ($p['view_wiki']) { if(feature_enabled($uid,'wiki') && (get_account_techlevel($account_id) > 3)) { |