settings for events and cdav calendar

This commit is contained in:
Mario
2018-09-23 19:18:05 +02:00
parent 1f1d5b9181
commit 781fdaafcd
10 changed files with 186 additions and 28 deletions

View File

@@ -104,25 +104,6 @@ function get_features($filtered = true, $level = (-1)) {
feature_level('private_notes',1),
],
[
'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'),
feature_level('smart_birthdays',2),
],
[
'event_tz_select',
t('Event Timezone Selection'),
t('Allow event creation in timezones other than your own.'),
false,
get_config('feature_lock','event_tz_select'),
feature_level('event_tz_select',2),
],
[
'premium_channel',
t('Premium Channel'),
@@ -275,6 +256,20 @@ function get_features($filtered = true, $level = (-1)) {
############################################
############################################
'calendar' => [
t('CalDAV'),
[
'cal_first_day',
t('Start calendar week on Monday'),
t('Default is Sunday'),
false,
get_config('feature_lock','cal_first_day')
]
],
'connections' => [
t('Connections'),
@@ -358,6 +353,36 @@ function get_features($filtered = true, $level = (-1)) {
],
'events' => [
t('Events'),
[
'cal_first_day',
t('Start calendar week on Monday'),
t('Default is Sunday'),
false,
get_config('feature_lock','cal_first_day')
],
[
'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'),
],
[
'event_tz_select',
t('Event Timezone Selection'),
t('Allow event creation in timezones other than your own.'),
false,
get_config('feature_lock','event_tz_select'),
]
],
'manage' => [
t('Manage'),