aboutsummaryrefslogtreecommitdiffstats
path: root/mod
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2013-08-22 01:00:54 -0700
committerfriendica <info@friendica.com>2013-08-22 01:00:54 -0700
commitaf72f40759418275abae575176f43d27388bfcd6 (patch)
tree57a502c74af82250b790ad139914d388b26ec68d /mod
parent22b6ddef9457e5ed3d38cf03be4b4451ec9d150c (diff)
downloadvolse-hubzilla-af72f40759418275abae575176f43d27388bfcd6.tar.gz
volse-hubzilla-af72f40759418275abae575176f43d27388bfcd6.tar.bz2
volse-hubzilla-af72f40759418275abae575176f43d27388bfcd6.zip
make premium channels a feature
Diffstat (limited to 'mod')
-rw-r--r--mod/settings.php13
1 files changed, 13 insertions, 0 deletions
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(