aboutsummaryrefslogtreecommitdiff
path: root/mod/landing/views/default/usersettings
diff options
context:
space:
mode:
Diffstat (limited to 'mod/landing/views/default/usersettings')
-rw-r--r--mod/landing/views/default/usersettings/landing/edit.php27
1 files changed, 27 insertions, 0 deletions
diff --git a/mod/landing/views/default/usersettings/landing/edit.php b/mod/landing/views/default/usersettings/landing/edit.php
new file mode 100644
index 000000000..f302ce846
--- /dev/null
+++ b/mod/landing/views/default/usersettings/landing/edit.php
@@ -0,0 +1,27 @@
+<?php
+/**
+ * Page Landing User Settings
+ */
+
+// Get existing usersettings
+$custom_url = get_plugin_usersetting('landing_url', 0, 'landing');
+$mode = get_plugin_usersetting('landing_mode', 0, 'landing');
+
+// Prepare dropdown options
+$mode_options = array();
+$mode_options['default'] = elgg_echo('landing:mode:opt:default');
+$mode_options['profile'] = elgg_echo('landing:mode:opt:profile');
+if (elgg_is_active_plugin('dashboard')) {
+ $mode_options['dashboard'] = elgg_echo('landing:mode:opt:dashboard');
+}
+$mode_options['custom'] = elgg_echo('landing:mode:opt:custom');
+
+echo '<p>', elgg_echo('landing:settings:select_url');
+// Add the dropdown menu
+echo '<br/>', elgg_echo('landing:settings:choose_option');
+echo elgg_view('input/dropdown', array('name' => 'params[landing_mode]', 'value' => $mode, 'options_values' => $mode_options));
+echo '</p>';
+// Add a text field for custom value or to show existing value
+echo '<p><span class="tip">', elgg_echo('landing:settings:custom_url_tip'), '</span>';
+echo '<br/><strong>', chop(elgg_get_site_url(), '/'), '</strong>', elgg_view('input/text', array( 'name' => 'params[landing_url]', 'value' => $custom_url, 'class' => 'landing-page-url'));
+echo '</p>'; \ No newline at end of file