diff options
author | friendica <info@friendica.com> | 2013-08-22 01:00:54 -0700 |
---|---|---|
committer | friendica <info@friendica.com> | 2013-08-22 01:00:54 -0700 |
commit | af72f40759418275abae575176f43d27388bfcd6 (patch) | |
tree | 57a502c74af82250b790ad139914d388b26ec68d | |
parent | 22b6ddef9457e5ed3d38cf03be4b4451ec9d150c (diff) | |
download | volse-hubzilla-af72f40759418275abae575176f43d27388bfcd6.tar.gz volse-hubzilla-af72f40759418275abae575176f43d27388bfcd6.tar.bz2 volse-hubzilla-af72f40759418275abae575176f43d27388bfcd6.zip |
make premium channels a feature
-rw-r--r-- | include/features.php | 3 | ||||
-rw-r--r-- | mod/settings.php | 13 |
2 files changed, 14 insertions, 2 deletions
diff --git a/include/features.php b/include/features.php index 757f719df..6272b33ea 100644 --- a/include/features.php +++ b/include/features.php @@ -27,8 +27,7 @@ function get_features() { //FIXME - needs a description, but how the hell do we explain this to normals? array('sendzid', t('Extended Identity Sharing'), t(' ')), array('expert', t('Expert Mode'), t('Enable Expert Mode to provide advanced configuration options')), - - + array('premium_channel', t('Premium Channel'), t('Allows you to set restrictions and terms on those that connect with your channel')), ), // Post composition diff --git a/mod/settings.php b/mod/settings.php index 36befead1..2a3a64581 100644 --- a/mod/settings.php +++ b/mod/settings.php @@ -31,6 +31,8 @@ function settings_aside(&$a) { $a->argv[] = 'channel'; } + $channel = $a->get_channel(); + $abook_self_id = 0; // Retrieve the 'self' address book entry for use in the auto-permissions link @@ -101,6 +103,17 @@ function settings_aside(&$a) { ); + + if(feature_enabled(local_user(),'premium_channel')) { + $tabs[] = array( + 'label' => t('Premium Channel Settings'), + 'url' => $a->get_baseurl(true) . '/connect/' . $channel['channel_address'], + 'selected' => '' + ); + + } + + $tabtpl = get_markup_template("generic_links_widget.tpl"); $a->page['aside'] = replace_macros($tabtpl, array( |