diff options
author | Silvio Rhatto <rhatto@riseup.net> | 2014-03-15 15:07:03 -0300 |
---|---|---|
committer | Silvio Rhatto <rhatto@riseup.net> | 2014-03-15 15:07:03 -0300 |
commit | fe7bc5b2fa63f4b8562a961cf3910db1f3b8f7a1 (patch) | |
tree | f3cd74d36b8cee66c63db2829380ae2ae665b64e /views/default/plugins/infinite_scroll/usersettings.php | |
download | elgg-fe7bc5b2fa63f4b8562a961cf3910db1f3b8f7a1.tar.gz elgg-fe7bc5b2fa63f4b8562a961cf3910db1f3b8f7a1.tar.bz2 |
Squashed 'mod/infinite_scroll/' content from commit 68db72a
git-subtree-dir: mod/infinite_scroll
git-subtree-split: 68db72a726e9ccd3603acbf59914c2017276b0ed
Diffstat (limited to 'views/default/plugins/infinite_scroll/usersettings.php')
-rw-r--r-- | views/default/plugins/infinite_scroll/usersettings.php | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/views/default/plugins/infinite_scroll/usersettings.php b/views/default/plugins/infinite_scroll/usersettings.php new file mode 100644 index 000000000..7e673f382 --- /dev/null +++ b/views/default/plugins/infinite_scroll/usersettings.php @@ -0,0 +1,25 @@ +<?php +/** + * Infinite scroll plugin settings + */ + +$logged_in_user = elgg_get_logged_in_user_guid(); + +// set default value +if (!($pagination_type = elgg_get_plugin_user_setting('pagination_type', $logged_in_user, 'infinite_scroll'))) { + $pagination_type = 'button'; +} + +echo '<div>'; +echo elgg_echo('infinite_scroll:settings:pagination_type'); +echo ' '; +echo elgg_view('input/dropdown', array( + 'name' => 'params[pagination_type]', + 'options_values' => array( + 'classic' => elgg_echo('infinite_scroll:settings:pagination:classic'), + 'button' => elgg_echo('infinite_scroll:settings:pagination:button'), + 'automatic' => elgg_echo('infinite_scroll:settings:pagination:automatic') + ), + 'value' => $pagination_type, +)); +echo '</div>'; |