From 890dad24d6c095c41e6358b2a6cb61f1b6c2f6ad Mon Sep 17 00:00:00 2001 From: winter Date: Sun, 26 Jan 2025 15:25:17 +0000 Subject: add user settings / preferences --- templates/preferences_form.php | 37 +++++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 templates/preferences_form.php (limited to 'templates/preferences_form.php') diff --git a/templates/preferences_form.php b/templates/preferences_form.php new file mode 100644 index 0000000..8c8f203 --- /dev/null +++ b/templates/preferences_form.php @@ -0,0 +1,37 @@ + +
+ + 'pref-requestToFollow', + 'fieldName' => 'requestToFollow', + 'name' => __('preferences.requestToFollow.name'), + 'description' => __('preferences.requestToFollow.description'), + 'value' => $user->actor->requestToFollow, + 'type' => 'boolean' + ]); + call_template('settings_field', [ + 'id' => 'pref-smallIndicators', + 'fieldName' => 'smallIndicators', + 'name' => __('preferences.smallIndicators.name'), + 'description' => __('preferences.smallIndicators.description'), + 'value' => $settings->getBool('interface.smallUnreadIndicators'), + 'type' => 'boolean' + ]); + ?> + +
+
+ + + +
+ +
+ +
\ No newline at end of file -- cgit v1.3