aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorzotlabs <mike@macgirvin.com>2018-03-25 21:16:10 -0700
committerzotlabs <mike@macgirvin.com>2018-03-25 21:16:10 -0700
commit5a739ddc47842700185798f4221e7afc872cf5a3 (patch)
tree782b400703fc6ab1e460cafe320943ddf86cc459 /include
parentbb4f9eecbe88c5d6ead654cefefcd3c57f23c1fe (diff)
parent4ef2493e957ce1f2c8ea4045dba2746032f34d41 (diff)
downloadvolse-hubzilla-5a739ddc47842700185798f4221e7afc872cf5a3.tar.gz
volse-hubzilla-5a739ddc47842700185798f4221e7afc872cf5a3.tar.bz2
volse-hubzilla-5a739ddc47842700185798f4221e7afc872cf5a3.zip
Merge branch 'newmemberwidget'
Diffstat (limited to 'include')
-rw-r--r--include/features.php13
1 files changed, 11 insertions, 2 deletions
diff --git a/include/features.php b/include/features.php
index 993266977..5481c37a4 100644
--- a/include/features.php
+++ b/include/features.php
@@ -28,8 +28,9 @@ function get_feature_default($feature) {
$f = get_features(false);
foreach($f as $cat) {
foreach($cat as $feat) {
- if(is_array($feat) && $feat[0] === $feature)
+ if(is_array($feat) && $feat[0] === $feature) {
return $feat[3];
+ }
}
}
return false;
@@ -45,6 +46,7 @@ function feature_level($feature,$def) {
function get_features($filtered = true) {
+ $account = \App::get_account();
$arr = [
@@ -53,7 +55,14 @@ function get_features($filtered = true) {
t('General Features'),
-
+ [
+ 'start_menu',
+ t('New Member Links'),
+ t('Display new member quick links menu'),
+ (($account['account_created'] > datetime_convert('','','now - 60 days')) ? true : false),
+ get_config('feature_lock','start_menu'),
+ feature_level('start_menu',1),
+ ],
[
'advanced_profiles',