diff options
author | Kevin Jardine <kevinjardine@yahoo.com> | 2012-03-19 17:09:30 +0100 |
---|---|---|
committer | Kevin Jardine <kevinjardine@yahoo.com> | 2012-03-19 17:09:30 +0100 |
commit | 2d19bfa232be5eff43bb6c1d1eef12e681552956 (patch) | |
tree | d956a896521dfa64f70bc79686d28892ccc0e90e /views/default/plugins | |
parent | 978d6aa6283933c805622d4d24fa6068833f7817 (diff) | |
download | elgg-2d19bfa232be5eff43bb6c1d1eef12e681552956.tar.gz elgg-2d19bfa232be5eff43bb6c1d1eef12e681552956.tar.bz2 |
full calendar click to view, time system revamp
Diffstat (limited to 'views/default/plugins')
-rw-r--r-- | views/default/plugins/event_calendar/settings.php | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/views/default/plugins/event_calendar/settings.php b/views/default/plugins/event_calendar/settings.php index 42ac601e5..93724484c 100644 --- a/views/default/plugins/event_calendar/settings.php +++ b/views/default/plugins/event_calendar/settings.php @@ -3,6 +3,8 @@ $yn_options = array(elgg_echo('event_calendar:settings:yes')=>'yes', elgg_echo('event_calendar:settings:no')=>'no', ); +$time_format_options = array(elgg_echo('event_calendar:time_format:12hour')=>'12',elgg_echo('event_calendar:time_format:24hour')=>'24'); + $membership_options = array( elgg_echo('event_calendar:personal_manage:open') => 'open' , elgg_echo('event_calendar:personal_manage:closed') => 'closed', @@ -88,6 +90,17 @@ $body .= elgg_view('input/radio',array('name'=>'params[times]','value'=>$event_c $body .= '<br />'; +$event_calendar_time_format = elgg_get_plugin_setting('timeformat', 'event_calendar'); +if (!$event_calendar_time_format) { + $event_calendar_time_format = '24'; +} + +$body .= elgg_echo('event_calendar:settings:timeformat:title'); +$body .= '<br />'; +$body .= elgg_view('input/radio',array('name'=>'params[timeformat]','value'=>$event_calendar_time_format,'options'=>$time_format_options)); + +$body .= '<br />'; + $event_calendar_autopersonal = elgg_get_plugin_setting('autopersonal', 'event_calendar'); if (!$event_calendar_autopersonal) { $event_calendar_autopersonal = 'yes'; |