From 3d56ab227d03840928a9fcebb0a8508fe69f31b6 Mon Sep 17 00:00:00 2001 From: friendica Date: Wed, 7 Nov 2012 18:48:31 -0800 Subject: turn multiple profiles into a feature, implement connection flags (block,hide,archive,etc.) --- include/features.php | 23 ++++++++++++----------- include/nav.php | 4 +++- 2 files changed, 15 insertions(+), 12 deletions(-) (limited to 'include') diff --git a/include/features.php b/include/features.php index 5ed412698..5711c22b6 100644 --- a/include/features.php +++ b/include/features.php @@ -16,17 +16,18 @@ function get_features() { $arr = array( -array('multi_delete', t('Multiple Deletion'), t('Select and delete multiple posts/comments at once')), -array('expire', t('Content Expiration'), t('Remove old posts/comments after a period of time')), -array('commtag', t('Community Tagging'), t('Tag existing posts and share the links')), -array('categories', t('Post Categories'), t('Add categories to your channel postings')), -array('filing', t('Saved Folders'), t('Ability to file posts under easily remembered names')), -array('archives', t('Search by Date'), t('Select posts by date ranges')), -array('dislike', t('Dislike Posts'), t('Ability to dislike posts/comments')), -array('savedsearch', t('Saved Searches'), t('Save search terms for re-use')), -array('preview', t('Post Preview'), t('Preview posts and comments before publishing them')), -array('edit_posts', t('Edit Sent Posts'), t('Edit and correct posts and comments after sending')), -array('richtext', t('Richtext Editor'), t('Use richtext/visual editor where applicable')), +array('multi_delete', t('Multiple Deletion'), t('Select and delete multiple posts/comments at once')), +array('expire', t('Content Expiration'), t('Remove old posts/comments after a period of time')), +array('commtag', t('Community Tagging'), t('Tag existing posts and share the links')), +array('categories', t('Post Categories'), t('Add categories to your channel postings')), +array('filing', t('Saved Folders'), t('Ability to file posts under easily remembered names')), +array('archives', t('Search by Date'), t('Select posts by date ranges')), +array('dislike', t('Dislike Posts'), t('Ability to dislike posts/comments')), +array('savedsearch', t('Saved Searches'), t('Save search terms for re-use')), +array('preview', t('Post Preview'), t('Preview posts and comments before publishing them')), +array('edit_posts', t('Edit Sent Posts'), t('Edit and correct posts and comments after sending')), +array('richtext', t('Richtext Editor'), t('Use richtext/visual editor where applicable')), +array('multi_profiles', t('Multiple Profiles'), t('Show different profiles to different connections/collections')), ); call_hooks('get_features',$arr); diff --git a/include/nav.php b/include/nav.php index 5b86a0691..c714502a1 100644 --- a/include/nav.php +++ b/include/nav.php @@ -152,7 +152,9 @@ EOT; $nav['manage'] = array('manage', t('Channel Select'), "", t('Manage Your Channels')); $nav['settings'] = array('settings', t('Settings'),"", t('Account/Channel Settings')); - $nav['profiles'] = array('profiles', t('Profiles'),"", t('Manage/Edit Profiles')); + if(feature_enabled(local_user(),'multi_profiles')) + $nav['profiles'] = array('profiles', t('Profiles'),"", t('Manage/Edit Profiles')); + $nav['contacts'] = array('connections', t('Connections'),"", t('Manage/Edit Friends and Connections')); } -- cgit v1.2.3