diff options
author | Kevin Jardine <kevinjardine@yahoo.com> | 2012-04-26 16:21:00 +0200 |
---|---|---|
committer | Kevin Jardine <kevinjardine@yahoo.com> | 2012-04-26 16:21:00 +0200 |
commit | 872381995dbcd77b90ac5175ffc7ba51ec75c42a (patch) | |
tree | a8151c7dd533a71693f6d5a0d923b7391af21e20 /views/default/forms/event_calendar | |
parent | a9a76a300972a6451aa45a83e094e697d4c51bf6 (diff) | |
download | elgg-872381995dbcd77b90ac5175ffc7ba51ec75c42a.tar.gz elgg-872381995dbcd77b90ac5175ffc7ba51ec75c42a.tar.bz2 |
Merges in BBB web conference functionality from now defunct sched_conf plugin
Diffstat (limited to 'views/default/forms/event_calendar')
-rw-r--r-- | views/default/forms/event_calendar/edit.php | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/views/default/forms/event_calendar/edit.php b/views/default/forms/event_calendar/edit.php index 260e8afe0..79e2a5d0b 100644 --- a/views/default/forms/event_calendar/edit.php +++ b/views/default/forms/event_calendar/edit.php @@ -26,6 +26,7 @@ $event_calendar_more_required = elgg_get_plugin_setting('more_required', 'event_ $event_calendar_personal_manage = elgg_get_plugin_setting('personal_manage', 'event_calendar'); $event_calendar_repeated_events = elgg_get_plugin_setting('repeated_events', 'event_calendar'); $event_calendar_reminders = elgg_get_plugin_setting('reminders', 'event_calendar'); +$event_calendar_bbb_server_url = elgg_get_plugin_setting('bbb_server_url', 'event_calendar'); if ($event_calendar_more_required == 'yes') { $required_fields = array('title','venue','start_date','start_time', @@ -168,9 +169,13 @@ $body .= elgg_view('event_calendar/container',array('container_guid'=>$vars['con $body .= '</p>'; $body .= '<p class="event-calendar-description">'.$prefix['calendar'].elgg_echo('event_calendar:calendar_description').'</p>'; -if(elgg_plugin_exists('sched_conf')) { +if($event_calendar_bbb_server_url) { $body .= '<p>'; - $body .= elgg_view('input/checkbox',array('name'=>'web_conference','value'=>$web_conference,'options_values'=>array('1'))); + if ($fd['web_conference']) { + $body .= elgg_view('input/checkbox',array('name'=>'web_conference','value'=>1,'checked'=>'checked')); + } else { + $body .= elgg_view('input/checkbox',array('name'=>'web_conference','value'=>1)); + } $body .= elgg_echo('event_calendar:web_conference_label'); $body .= '</p>'; } |