diff options
author | Silvio Rhatto <rhatto@riseup.net> | 2014-03-15 15:08:30 -0300 |
---|---|---|
committer | Silvio Rhatto <rhatto@riseup.net> | 2014-03-15 15:08:30 -0300 |
commit | 9ca1ec52d98470c67d9ce756159935fe684347b0 (patch) | |
tree | 66fa7070b1837cd59962127b6c8b7d4fc19f95e9 /views | |
download | elgg-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')
-rw-r--r-- | views/default/forms/event_connector/import.php | 25 | ||||
-rw-r--r-- | views/default/plugin/event_connector/settings.php | 26 |
2 files changed, 51 insertions, 0 deletions
diff --git a/views/default/forms/event_connector/import.php b/views/default/forms/event_connector/import.php new file mode 100644 index 000000000..74fb73608 --- /dev/null +++ b/views/default/forms/event_connector/import.php @@ -0,0 +1,25 @@ +<?php
+/**
+ * iCal import form body
+ *
+ * @package ElggEventConnector
+ */
+
+?>
+<div>
+ <label><?php echo elgg_echo("event_connector:upload:file"); ?></label>
+ <br />
+ <?php echo elgg_view("input/file", array('name' => 'upload')); ?>
+</div>
+<div>
+ <label><?php echo elgg_echo('access'); ?></label>
+ <br />
+ <?php echo elgg_view('input/access', array('name' => 'access_id', 'value' => ACCESS_DEFAULT)); ?>
+</div>
+
+<div class="elgg-foot">
+<?php
+echo elgg_view('input/hidden', array('name' => "container_guid", 'value' => $vars['container_guid']));
+echo elgg_view('input/submit', array('value' => elgg_echo("save")));
+?>
+</div>
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 |