1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
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;
|