aboutsummaryrefslogtreecommitdiff
path: root/views/default/event_calendar/reminder_section.php
diff options
context:
space:
mode:
authorKevin Jardine <kevinjardine@yahoo.com>2012-05-24 20:00:18 +0200
committerKevin Jardine <kevinjardine@yahoo.com>2012-05-24 20:00:18 +0200
commitb8c3767f8c790febb35141919936d616d3ebe2d4 (patch)
tree7e137e8482106ffc59ee30063cc8eb2bc4442374 /views/default/event_calendar/reminder_section.php
parentfc04fcffb8a03c166467e8633f8195ef48b29f4a (diff)
downloadelgg-b8c3767f8c790febb35141919936d616d3ebe2d4.tar.gz
elgg-b8c3767f8c790febb35141919936d616d3ebe2d4.tar.bz2
changed time handling and added more suppport for event polls
Diffstat (limited to 'views/default/event_calendar/reminder_section.php')
-rw-r--r--views/default/event_calendar/reminder_section.php28
1 files changed, 28 insertions, 0 deletions
diff --git a/views/default/event_calendar/reminder_section.php b/views/default/event_calendar/reminder_section.php
new file mode 100644
index 000000000..fffa6d065
--- /dev/null
+++ b/views/default/event_calendar/reminder_section.php
@@ -0,0 +1,28 @@
+<?php
+$fd = $vars['form_data'];
+$event_calendar_reminders = elgg_get_plugin_setting('reminders', 'event_calendar');
+$body = '';
+if ($event_calendar_reminders == 'yes') {
+ $body .= '<div class="event-calendar-edit-reminder-wrapper">';
+ if ($fd['send_reminder']) {
+ $body .= elgg_view('input/checkbox',array('name'=>'send_reminder','checked' => 'checked','value'=>1));
+ } else {
+ $body .= elgg_view('input/checkbox',array('name'=>'send_reminder','value'=>1));
+ }
+ $body .= elgg_echo('elgg_calendar:send_reminder_label'). ' ';
+ $numbers = array();
+ for ($i=1;$i<60;$i++) {
+ $numbers[$i] = $i;
+ }
+ $intervals = array(
+ 1 => elgg_echo('event_calendar:interval:minute'),
+ 60 => elgg_echo('event_calendar:interval:hour'),
+ 60*24 => elgg_echo('event_calendar:interval:day'),
+ );
+
+ $body .= elgg_view('input/dropdown',array('name'=>'reminder_number','options_values'=>$numbers,'value'=>$fd['reminder_number']));
+ $body .= elgg_view('input/dropdown',array('name'=>'reminder_interval','options_values'=>$intervals,'value'=>$fd['reminder_interval']));
+ $body .= elgg_echo('elgg_calendar:send_reminder_before');
+ $body .= '</div>';
+}
+echo $body;