aboutsummaryrefslogtreecommitdiff
path: root/mod/logrotate/views/default
diff options
context:
space:
mode:
Diffstat (limited to 'mod/logrotate/views/default')
-rw-r--r--mod/logrotate/views/default/plugins/logrotate/settings.php47
1 files changed, 47 insertions, 0 deletions
diff --git a/mod/logrotate/views/default/plugins/logrotate/settings.php b/mod/logrotate/views/default/plugins/logrotate/settings.php
new file mode 100644
index 000000000..bef8b308d
--- /dev/null
+++ b/mod/logrotate/views/default/plugins/logrotate/settings.php
@@ -0,0 +1,47 @@
+<?php
+/**
+ * Elgg log rotator plugin settings.
+ *
+ * @package ElggLogRotate
+ */
+
+$period = $vars['entity']->period;
+$delete = $vars['entity']->delete;
+if (!$period) {
+ $period = 'monthly';
+}
+
+if (!$delete) {
+ $delete = 'monthly';
+}
+?>
+<div>
+ <?php
+
+ echo elgg_echo('logrotate:period') . ' ';
+ echo elgg_view('input/dropdown', array(
+ 'name' => 'params[period]',
+ 'options_values' => array(
+ 'weekly' => elgg_echo('logrotate:weekly'),
+ 'monthly' => elgg_echo('logrotate:monthly'),
+ 'yearly' => elgg_echo('logrotate:yearly'),
+ ),
+ 'value' => $period,
+ ));
+ ?>
+</div>
+<div>
+ <?php
+
+ echo elgg_echo('logrotate:delete') . ' ';
+ echo elgg_view('input/dropdown', array(
+ 'name' => 'params[delete]',
+ 'options_values' => array(
+ 'weekly' => elgg_echo('logrotate:week'),
+ 'monthly' => elgg_echo('logrotate:month'),
+ 'yearly' => elgg_echo('logrotate:year'),
+ ),
+ 'value' => $delete,
+ ));
+ ?>
+</div>