aboutsummaryrefslogtreecommitdiff
path: root/views/default/plugins
diff options
context:
space:
mode:
Diffstat (limited to 'views/default/plugins')
-rw-r--r--views/default/plugins/infinite_scroll/usersettings.php25
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>';