diff options
author | Kevin Jardine <kevinjardine@yahoo.com> | 2011-06-28 23:13:49 -0700 |
---|---|---|
committer | Kevin Jardine <kevinjardine@yahoo.com> | 2011-06-28 23:13:49 -0700 |
commit | 0a013cd9833a20d3b6334d80dba581bbbb2ce756 (patch) | |
tree | bad977e423a6d1193d362295611fe4472c2373af /views/default/settings | |
parent | 1dd01c7ff9685995b4bc9de0ceeb7856086c3f40 (diff) | |
parent | 29792a9858484266952a53268e4fd0dd29b2f4a5 (diff) | |
download | elgg-0a013cd9833a20d3b6334d80dba581bbbb2ce756.tar.gz elgg-0a013cd9833a20d3b6334d80dba581bbbb2ce756.tar.bz2 |
Merge pull request #1 from cash/master
moved code into base directory
Diffstat (limited to 'views/default/settings')
-rw-r--r-- | views/default/settings/event_calendar/edit.php | 363 |
1 files changed, 363 insertions, 0 deletions
diff --git a/views/default/settings/event_calendar/edit.php b/views/default/settings/event_calendar/edit.php new file mode 100644 index 000000000..429a85b26 --- /dev/null +++ b/views/default/settings/event_calendar/edit.php @@ -0,0 +1,363 @@ +<?php +$yn_options = array(elgg_echo('event_calendar:settings:yes')=>'yes', + elgg_echo('event_calendar:settings:no')=>'no', +); + +$access_options = array( ACCESS_PRIVATE => elgg_echo("PRIVATE"), + ACCESS_LOGGED_IN => elgg_echo("LOGGED_IN"), + ACCESS_PUBLIC => elgg_echo("PUBLIC")); + +// TODO - merge the agenda view into the list format options + +$listing_options = array(elgg_echo('event_calendar:settings:paged')=>'paged', + elgg_echo('event_calendar:settings:month')=>'month', +); + +$body = ''; + +$event_calendar_hide_access = get_plugin_setting('hide_access', 'event_calendar'); +if (!$event_calendar_hide_access) { + $event_calendar_hide_access = 'no'; +} + +$body .= elgg_echo('event_calendar:settings:hide_access:title'); +$body .= '<br />'; +$body .= elgg_view('input/radio',array('internalname'=>'params[hide_access]','value'=>$event_calendar_hide_access,'options'=>$yn_options)); + +$body .= '<br />'; + +$event_calendar_default_access = get_plugin_setting('default_access', 'event_calendar'); +if (!$event_calendar_default_access) { + $event_calendar_default_access = ACCESS_LOGGED_IN; +} + +$body .= elgg_echo('event_calendar:settings:default_access:title'); +$body .= '<br />'; +$body .= elgg_view('input/pulldown',array('internalname'=>'params[default_access]','value'=>$event_calendar_default_access,'options_values'=>$access_options)); + +$body .= '<br /><br />'; + +$event_calendar_hide_end = get_plugin_setting('hide_end', 'event_calendar'); +if (!$event_calendar_hide_end) { + $event_calendar_hide_end = 'no'; +} + +$body .= elgg_echo('event_calendar:settings:hide_end:title'); +$body .= '<br />'; +$body .= elgg_view('input/radio',array('internalname'=>'params[hide_end]','value'=>$event_calendar_hide_end,'options'=>$yn_options)); + +$body .= '<br />'; + +$event_calendar_listing_format = get_plugin_setting('listing_format', 'event_calendar'); +if (!$event_calendar_listing_format) { + $event_calendar_listing_format = 'month'; +} + +$body .= elgg_echo('event_calendar:settings:listing_format:title'); +$body .= '<br />'; +$body .= elgg_view('input/radio',array('internalname'=>'params[listing_format]','value'=>$event_calendar_listing_format,'options'=>$listing_options)); + +$body .= '<br />'; + +$event_calendar_times = get_plugin_setting('times', 'event_calendar'); +if (!$event_calendar_times) { + $event_calendar_times = 'no'; +} + +$body .= elgg_echo('event_calendar:settings:times:title'); +$body .= '<br />'; +$body .= elgg_view('input/radio',array('internalname'=>'params[times]','value'=>$event_calendar_times,'options'=>$yn_options)); + +$body .= '<br />'; + +$event_calendar_autopersonal = get_plugin_setting('autopersonal', 'event_calendar'); +if (!$event_calendar_autopersonal) { + $event_calendar_autopersonal = 'yes'; +} + +$body .= elgg_echo('event_calendar:settings:autopersonal:title'); +$body .= '<br />'; +$body .= elgg_view('input/radio',array('internalname'=>'params[autopersonal]','value'=>$event_calendar_autopersonal,'options'=>$yn_options)); + +$body .= '<br />'; + +$event_calendar_autogroup = get_plugin_setting('autogroup', 'event_calendar'); +if (!$event_calendar_autogroup) { + $event_calendar_autogroup = 'no'; +} + +$body .= elgg_echo('event_calendar:settings:autogroup:title'); +$body .= '<br />'; +$body .= elgg_view('input/radio',array('internalname'=>'params[autogroup]','value'=>$event_calendar_autogroup,'options'=>$yn_options)); + +$body .= '<br />'; + +$event_calendar_add_to_group_calendar = get_plugin_setting('add_to_group_calendar', 'event_calendar'); +if (!$event_calendar_add_to_group_calendar) { + $event_calendar_add_to_group_calendar = 'no'; +} + +$body .= elgg_echo('event_calendar:settings:add_to_group_calendar:title'); +$body .= '<br />'; +$body .= elgg_view('input/radio',array('internalname'=>'params[add_to_group_calendar]','value'=>$event_calendar_add_to_group_calendar,'options'=>$yn_options)); + +$body .= '<br />'; + +$event_calendar_agenda_view = get_plugin_setting('agenda_view', 'event_calendar'); +if (!$event_calendar_agenda_view) { + $event_calendar_agenda_view = 'no'; +} + +$body .= elgg_echo('event_calendar:settings:agenda_view:title'); +$body .= '<br />'; +$body .= elgg_view('input/radio',array('internalname'=>'params[agenda_view]','value'=>$event_calendar_agenda_view,'options'=>$yn_options)); + +$body .= '<br />'; + +$event_calendar_venue_view = get_plugin_setting('venue_view', 'event_calendar'); +if (!$event_calendar_venue_view) { + $event_calendar_venue_view = 'no'; +} + +$body .= elgg_echo('event_calendar:settings:venue_view:title'); +$body .= '<br />'; +$body .= elgg_view('input/radio',array('internalname'=>'params[venue_view]','value'=>$event_calendar_venue_view,'options'=>$yn_options)); + +$body .= '<br />'; + +$options = array(elgg_echo('event_calendar:settings:no')=>'no', + elgg_echo('event_calendar:settings:site_calendar:admin')=>'admin', + elgg_echo('event_calendar:settings:site_calendar:loggedin')=>'loggedin', +); + +$event_calendar_site_calendar = get_plugin_setting('site_calendar', 'event_calendar'); +if (!$event_calendar_site_calendar) { + $event_calendar_site_calendar = 'admin'; +} + +$body .= elgg_echo('event_calendar:settings:site_calendar:title').'<br />'; +$body .= elgg_view('input/radio',array('internalname'=>'params[site_calendar]','value'=>$event_calendar_site_calendar,'options'=>$options)); + +$body .= '<br />'; + +$options = array(elgg_echo('event_calendar:settings:no')=>'no', + elgg_echo('event_calendar:settings:group_calendar:admin')=>'admin', + elgg_echo('event_calendar:settings:group_calendar:members')=>'members', +); + +$event_calendar_group_calendar = get_plugin_setting('group_calendar', 'event_calendar'); +if (!$event_calendar_group_calendar) { + $event_calendar_group_calendar = 'members'; +} + +$body .= elgg_echo('event_calendar:settings:group_calendar:title').'<br />'; +$body .= elgg_view('input/radio',array('internalname'=>'params[group_calendar]','value'=>$event_calendar_group_calendar,'options'=>$options)); + +$body .= '<br />'; + +$options = array(elgg_echo('event_calendar:settings:group_default:yes')=>'yes', + elgg_echo('event_calendar:settings:group_default:no')=>'no', +); + +$event_calendar_group_default = get_plugin_setting('group_default', 'event_calendar'); +if (!$event_calendar_group_default) { + $event_calendar_group_default = 'yes'; +} + +$body .= elgg_echo('event_calendar:settings:group_default:title'); +$body .= '<br />'; +$body .= elgg_view('input/radio',array('internalname'=>'params[group_default]','value'=>$event_calendar_group_default,'options'=>$options)); + +$body .= '<br />'; + +$event_calendar_group_always_display = get_plugin_setting('group_always_display', 'event_calendar'); +if (!$event_calendar_group_always_display) { + $event_calendar_group_always_display = 'no'; +} + +$body .= elgg_echo('event_calendar:settings:group_always_display:title'); +$body .= '<br />'; +$body .= elgg_view('input/radio',array('internalname'=>'params[group_always_display]','value'=>$event_calendar_group_always_display,'options'=>$yn_options)); + +$body .= '<br />'; + +$options = array(elgg_echo('event_calendar:settings:group_profile_display_option:left')=>'left', + elgg_echo('event_calendar:settings:group_profile_display_option:right')=>'right', + elgg_echo('event_calendar:settings:group_profile_display_option:none')=>'none', +); + +$event_calendar_group_profile_display = get_plugin_setting('group_profile_display', 'event_calendar'); +if (!$event_calendar_group_profile_display) { + $event_calendar_group_profile_display = 'right'; +} + +$body .= elgg_echo('event_calendar:settings:group_profile_display:title').'<br />'; +$body .= elgg_view('input/radio',array('internalname'=>'params[group_profile_display]','value'=>$event_calendar_group_profile_display,'options'=>$options)); + +$body .= '<br />'; + +$event_calendar_add_users = get_plugin_setting('add_users', 'event_calendar'); +if (!$event_calendar_add_users) { + $event_calendar_add_users = 'no'; +} + +$body .= elgg_echo('event_calendar:settings:add_users:title'); +$body .= '<br />'; +$body .= elgg_view('input/radio',array('internalname'=>'params[add_users]','value'=>$event_calendar_add_users,'options'=>$yn_options)); + +$body .= '<br />'; + +$event_calendar_add_users_notify = get_plugin_setting('add_users_notify', 'event_calendar'); +if (!$event_calendar_add_users_notify) { + $event_calendar_add_users_notify = 'no'; +} + +$body .= elgg_echo('event_calendar:settings:add_users_notify:title'); +$body .= '<br />'; +$body .= elgg_view('input/radio',array('internalname'=>'params[add_users_notify]','value'=>$event_calendar_add_users_notify,'options'=>$yn_options)); + +$body .= '<br />'; + +$event_calendar_personal_manage = get_plugin_setting('personal_manage', 'event_calendar'); +if (!$event_calendar_personal_manage) { + $event_calendar_personal_manage = 'yes'; +} + +$body .= elgg_echo('event_calendar:settings:personal_manage:title'); +$body .= '<br />'; +$body .= elgg_view('input/radio',array('internalname'=>'params[personal_manage]','value'=>$event_calendar_personal_manage,'options'=>$yn_options)); + +$body .= '<br />'; + +$event_calendar_spots_display = get_plugin_setting('spots_display', 'event_calendar'); +if (!$event_calendar_spots_display) { + $event_calendar_spots_display = 'no'; +} + +$body .= elgg_echo('event_calendar:settings:spots_display:title'); +$body .= '<br />'; +$body .= elgg_view('input/radio',array('internalname'=>'params[spots_display]','value'=>$event_calendar_spots_display,'options'=>$yn_options)); + +$body .= '<br />'; + +$event_calendar_no_collisions = get_plugin_setting('no_collisions', 'event_calendar'); +if (!$event_calendar_no_collisions) { + $event_calendar_no_collisions = 'no'; +} + +$body .= elgg_echo('event_calendar:settings:no_collisions:title'); +$body .= '<br />'; +$body .= elgg_view('input/radio',array('internalname'=>'params[no_collisions]','value'=>$event_calendar_no_collisions,'options'=>$yn_options)); + +$body .= '<br />'; + +$event_calendar_collision_length = get_plugin_setting('collision_length', 'event_calendar'); +if (!$event_calendar_collision_length) { + $event_calendar_collision_length = '3600'; +} + +$body .= elgg_echo('event_calendar:settings:collision_length:title'); +$body .= '<br />'; +$body .= elgg_view('input/text',array('internalname'=>'params[collision_length]','value'=>$event_calendar_collision_length)); + +$body .= '<br /><br />'; + +$event_calendar_region_display = get_plugin_setting('region_display', 'event_calendar'); +if (!$event_calendar_region_display) { + $event_calendar_region_display = 'no'; +} + +$body .= elgg_echo('event_calendar:settings:region_display:title'); +$body .= '<br />'; +$body .= elgg_view('input/radio',array('internalname'=>'params[region_display]','value'=>$event_calendar_region_display,'options'=>$yn_options)); + +$body .= '<br />'; + +$event_calendar_region_list = get_plugin_setting('region_list', 'event_calendar'); +if (!$event_calendar_region_list) { + $event_calendar_region_list = ''; +} + +$body .= elgg_echo('event_calendar:settings:region_list:title'); +$body .= '<br />'; +$body .= elgg_view('event_calendar/input/longtext',array('internalname'=>'params[region_list]','value'=>$event_calendar_region_list)); + +$body .= '<br />'; + +$event_calendar_region_list_handles = get_plugin_setting('region_list_handles', 'event_calendar'); +if (!$event_calendar_region_list_handles) { + $event_calendar_region_list_handles = 'no'; +} + +$body .= elgg_echo('event_calendar:settings:region_list_handles:title'); +$body .= '<br />'; +$body .= elgg_view('input/radio',array('internalname'=>'params[region_list_handles]','value'=>$event_calendar_region_list_handles,'options'=>$yn_options)); + +$body .= '<br />'; + +$event_calendar_type_display = get_plugin_setting('type_display', 'event_calendar'); +if (!$event_calendar_type_display) { + $event_calendar_type_display = 'no'; +} + +$body .= elgg_echo('event_calendar:settings:type_display:title'); +$body .= '<br />'; +$body .= elgg_view('input/radio',array('internalname'=>'params[type_display]','value'=>$event_calendar_type_display,'options'=>$yn_options)); + +$body .= '<br />'; + +$event_calendar_type_list = get_plugin_setting('type_list', 'event_calendar'); +if (!$event_calendar_type_list) { + $event_calendar_type_list = ''; +} + +$body .= elgg_echo('event_calendar:settings:type_list:title'); +$body .= '<br />'; +$body .= elgg_view('event_calendar/input/longtext',array('internalname'=>'params[type_list]','value'=>$event_calendar_type_list)); + +$body .= '<br />'; + +$event_calendar_type_list_handles = get_plugin_setting('type_list_handles', 'event_calendar'); +if (!$event_calendar_type_list_handles) { + $event_calendar_type_list_handles = 'no'; +} + +$body .= elgg_echo('event_calendar:settings:type_list_handles:title'); +$body .= '<br />'; +$body .= elgg_view('input/radio',array('internalname'=>'params[type_list_handles]','value'=>$event_calendar_type_list_handles,'options'=>$yn_options)); + +$body .= '<br />'; + +$event_calendar_first_date = get_plugin_setting('first_date', 'event_calendar'); +if (!$event_calendar_first_date) { + $event_calendar_first_date = ''; +} + +$body .= elgg_echo('event_calendar:settings:first_date:title'); +$body .= '<br />'; +$body .= elgg_view('input/text',array('internalname'=>'params[first_date]','value'=>$event_calendar_first_date)); + +$body .= '<br /><br />'; + +$event_calendar_last_date = get_plugin_setting('last_date', 'event_calendar'); +if (!$event_calendar_last_date) { + $event_calendar_last_date = ''; +} + +$body .= elgg_echo('event_calendar:settings:last_date:title'); +$body .= '<br />'; +$body .= elgg_view('input/text',array('internalname'=>'params[last_date]','value'=>$event_calendar_last_date)); + +$body .= '<br /><br />'; + +$event_calendar_more_required = get_plugin_setting('more_required', 'event_calendar'); +if (!$event_calendar_more_required) { + $event_calendar_more_required = 'no'; +} + +$body .= elgg_echo('event_calendar:settings:more_required:title'); +$body .= '<br />'; +$body .= elgg_view('input/radio',array('internalname'=>'params[more_required]','value'=>$event_calendar_more_required,'options'=>$yn_options)); + +echo $body; +?>
\ No newline at end of file |