diff options
author | cash <cash.costello@gmail.com> | 2011-09-17 11:27:12 -0400 |
---|---|---|
committer | cash <cash.costello@gmail.com> | 2011-09-17 11:27:12 -0400 |
commit | 65158f8d0796108ef5534a91b6ee34bf55d29223 (patch) | |
tree | 4976ae43eba5fdea7e5fc7ae025deacba179517d /mod/logrotate/views/default/plugins | |
parent | f35af8ff5df99baf4beece44fb92cc3dcdc3cd15 (diff) | |
download | elgg-65158f8d0796108ef5534a91b6ee34bf55d29223.tar.gz elgg-65158f8d0796108ef5534a91b6ee34bf55d29223.tar.bz2 |
Fixes #2990 updated the bundled plugins to use the new plugin/user settings structure
Diffstat (limited to 'mod/logrotate/views/default/plugins')
-rw-r--r-- | mod/logrotate/views/default/plugins/logrotate/settings.php | 48 |
1 files changed, 48 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..64c7bf743 --- /dev/null +++ b/mod/logrotate/views/default/plugins/logrotate/settings.php @@ -0,0 +1,48 @@ +<?php +/** + * Elgg log rotator plugin settings. + * + * @package ElggLogRotate + */ + +$period = $vars['entity']->period; +$time = $vars['entity']->time; +if (!$period) { + $period = 'monthly'; +} + +if (!$time) { + $time = 'monthly'; +} +?> +<div> + <?php echo elgg_echo('logrotate:period'); ?> + + <?php + 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 + )); + ?> + + <?php echo elgg_echo('</div><div>'); ?> + + <?php echo elgg_echo('logrotate:date'); ?> + + <?php + echo elgg_view('input/pulldown', array( + 'name' => 'params[time]', + 'options_values' => array( + 'weekly' => elgg_echo('logrotate:week'), + 'monthly' => elgg_echo('logrotate:month'), + 'yearly' => elgg_echo('logrotate:year'), + ), + 'value' => $time + )); + ?> +</div> |