aboutsummaryrefslogtreecommitdiff
path: root/views/default/plugin/event_connector/settings.php
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2014-03-15 15:08:30 -0300
committerSilvio Rhatto <rhatto@riseup.net>2014-03-15 15:08:30 -0300
commit9ca1ec52d98470c67d9ce756159935fe684347b0 (patch)
tree66fa7070b1837cd59962127b6c8b7d4fc19f95e9 /views/default/plugin/event_connector/settings.php
downloadelgg-9ca1ec52d98470c67d9ce756159935fe684347b0.tar.gz
elgg-9ca1ec52d98470c67d9ce756159935fe684347b0.tar.bz2
Squashed 'mod/event_connect/' content from commit 3688c10
git-subtree-dir: mod/event_connect git-subtree-split: 3688c10f1bfdaecdb0bb515b2ce3d8490d0487c8
Diffstat (limited to 'views/default/plugin/event_connector/settings.php')
-rw-r--r--views/default/plugin/event_connector/settings.php26
1 files changed, 26 insertions, 0 deletions
diff --git a/views/default/plugin/event_connector/settings.php b/views/default/plugin/event_connector/settings.php
new file mode 100644
index 000000000..668cbda33
--- /dev/null
+++ b/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