aboutsummaryrefslogtreecommitdiff
path: root/mod/event_connect/views/default/plugin/event_connector/settings.php
diff options
context:
space:
mode:
Diffstat (limited to 'mod/event_connect/views/default/plugin/event_connector/settings.php')
-rw-r--r--mod/event_connect/views/default/plugin/event_connector/settings.php26
1 files changed, 26 insertions, 0 deletions
diff --git a/mod/event_connect/views/default/plugin/event_connector/settings.php b/mod/event_connect/views/default/plugin/event_connector/settings.php
new file mode 100644
index 000000000..668cbda33
--- /dev/null
+++ b/mod/event_connect/views/default/plugin/event_connector/settings.php
@@ -0,0 +1,26 @@
+<?php
+ if($vars['entity']->timezone == "")
+ $vars['entity']->timezone = "Europe/Paris";
+?>
+<p>
+ <?php echo elgg_echo('event_connector:timezone'); ?>
+ <select name="params[timezone]">
+ <?php
+ $timezone_identifiers = DateTimeZone::listIdentifiers();
+ foreach( $timezone_identifiers as $value ){
+ if ( preg_match( '/^(America|Antartica|Arctic|Asia|Atlantic|Europe|Indian|Pacific)\//', $value ) ){
+ $ex=explode("/",$value);//obtain continent,city
+ if ($continent!=$ex[0]){
+ if ($continent!="") echo '</optgroup>';
+ echo '<optgroup label="'.$ex[0].'">';
+ }
+
+ $city=$ex[1];
+ $continent=$ex[0];
+ echo '<option value="'.$value.'"'; if ($vars['entity']->timezone == $value) echo " selected=\"yes\" "; echo ">".$city.'</option>';
+ }
+ }
+ ?>
+ </optgroup>
+ </select>
+</p> \ No newline at end of file