diff options
author | redmatrix <mike@macgirvin.com> | 2016-08-25 17:09:19 -0700 |
---|---|---|
committer | redmatrix <mike@macgirvin.com> | 2016-08-25 17:09:19 -0700 |
commit | a969f181379a350609b24ba8258fcdd204f07d11 (patch) | |
tree | c54787754d260228bf366bbe0fde03b3e472b476 /include | |
parent | 8d94402d25bc1f4c07d2182ea48badabc6642617 (diff) | |
download | volse-hubzilla-a969f181379a350609b24ba8258fcdd204f07d11.tar.gz volse-hubzilla-a969f181379a350609b24ba8258fcdd204f07d11.tar.bz2 volse-hubzilla-a969f181379a350609b24ba8258fcdd204f07d11.zip |
move premium channel to 'pro' since that's the only configuration where it works reliably.
Diffstat (limited to 'include')
-rw-r--r-- | include/features.php | 15 |
1 files changed, 12 insertions, 3 deletions
diff --git a/include/features.php b/include/features.php index 356de35a2..a5baddf52 100644 --- a/include/features.php +++ b/include/features.php @@ -62,14 +62,11 @@ function get_features($filtered = true) { array('ajaxchat', t('Access Controlled Chatrooms'), t('Provide chatrooms and chat services with access control.'),true,get_config('feature_lock','ajaxchat')), array('smart_birthdays', t('Smart Birthdays'), t('Make birthday events timezone aware in case your friends are scattered across the planet.'),true,get_config('feature_lock','smart_birthdays')), array('expert', t('Expert Mode'), t('Enable Expert Mode to provide advanced configuration options'),false,get_config('feature_lock','expert')), - array('premium_channel', t('Premium Channel'), t('Allows you to set restrictions and terms on those that connect with your channel'),false,get_config('feature_lock','premium_channel')), ), // Post composition 'composition' => array( t('Post Composition Features'), -// array('richtext', t('Richtext Editor'), t('Enable richtext editor'),falseget_config('feature_lock','richtext')), -// array('markdown', t('Use Markdown'), t('Allow use of "Markdown" to format posts'),false,get_config('feature_lock','markdown')), array('large_photos', t('Large Photos'), t('Include large (1024px) photo thumbnails in posts. If not enabled, use small (640px) photo thumbnails'),false,get_config('feature_lock','large_photos')), array('channel_sources', t('Channel Sources'), t('Automatically import channel content from other channels or feeds'),false,get_config('feature_lock','channel_sources')), array('content_encrypt', t('Even More Encryption'), t('Allow optional encryption of content end-to-end with a shared secret key'),false,get_config('feature_lock','content_encrypt')), @@ -106,6 +103,18 @@ function get_features($filtered = true) { ), ); + + + if(\Zotlabs\Lib\System::get_server_role() === 'pro') { + $arr['general'][] = [ + 'premium_channel', + t('Premium Channel'), + t('Allows you to set restrictions and terms on those that connect with your channel'), + false, + get_config('feature_lock','premium_channel') + ]; + } + // removed any locked features and remove the entire category if this makes it empty if($filtered) { |