aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--mod/updateclient/languages/en.php5
-rw-r--r--mod/updateclient/views/default/settings/updateclient/edit.php25
2 files changed, 26 insertions, 4 deletions
diff --git a/mod/updateclient/languages/en.php b/mod/updateclient/languages/en.php
index 262a474ab..bde861d8f 100644
--- a/mod/updateclient/languages/en.php
+++ b/mod/updateclient/languages/en.php
@@ -14,6 +14,11 @@
'updateclient:label:core' => 'Core',
'updateclient:label:plugins' => 'Plugins',
+
+ 'updateclient:settings:days' => 'Check for updates every',
+ 'updateclient:days' => 'days',
+
+ 'updateclient:settings:server' => 'Update server'
);
add_translation("en", $english);
diff --git a/mod/updateclient/views/default/settings/updateclient/edit.php b/mod/updateclient/views/default/settings/updateclient/edit.php
index e01c14487..3cd64b448 100644
--- a/mod/updateclient/views/default/settings/updateclient/edit.php
+++ b/mod/updateclient/views/default/settings/updateclient/edit.php
@@ -10,7 +10,24 @@
*/
- // update server
-
- // notifcation period
-?> \ No newline at end of file
+?>
+
+<p>
+ <h3><?php echo elgg_echo('updateclient:settings:server'); ?>: </h3>
+ <?php
+ $server = ($vars['entity']->updateserver ? $vars['entity']->updateserver : 'http://updates.elgg.org/services/api/rest.php');
+ echo elgg_view('input/text', array('internalname' => 'params[updateserver]', 'value' => $server));
+ ?>
+</p>
+<p>
+ <?php echo elgg_echo('updateclient:settings:days'); ?>
+
+ <select name="params[days]">
+ <option value="7" <?php if ($vars['entity']->days == 7) echo " selected=\"yes\" "; ?>>7</option>
+ <option value="14" <?php if ((!$vars['entity']->days) || ($vars['entity']->days == 14)) echo " selected=\"yes\" "; ?>>14</option>
+ <option value="21" <?php if ($vars['entity']->days == 21) echo " selected=\"yes\" "; ?>>21</option>
+ <option value="28" <?php if ($vars['entity']->days == 28) echo " selected=\"yes\" "; ?>>28</option>
+ </select>
+
+ <?php echo elgg_echo('updateclient:days'); ?>.
+</p> \ No newline at end of file