diff options
Diffstat (limited to 'mod/event_connect/views')
-rw-r--r-- | mod/event_connect/views/default/forms/event_connector/import.php | 25 | ||||
-rw-r--r-- | mod/event_connect/views/default/plugin/event_connector/settings.php | 26 |
2 files changed, 51 insertions, 0 deletions
diff --git a/mod/event_connect/views/default/forms/event_connector/import.php b/mod/event_connect/views/default/forms/event_connector/import.php new file mode 100644 index 000000000..74fb73608 --- /dev/null +++ b/mod/event_connect/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/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 |