aboutsummaryrefslogtreecommitdiff
path: root/mod/landing/views/default/usersettings
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2014-03-15 14:49:36 -0300
committerSilvio Rhatto <rhatto@riseup.net>2014-03-15 14:49:36 -0300
commit8e863c9c0c6050b3905db80b25b9769d91f59eb6 (patch)
tree642af8fc19cde39bcef1e31d5843e8e75380ecf3 /mod/landing/views/default/usersettings
parentecf3fa9e33033f2921e266c781e0ba32eecfa977 (diff)
parent279e74d06be7e2fc98c3df3cd867d1ecfd3e6de4 (diff)
downloadelgg-8e863c9c0c6050b3905db80b25b9769d91f59eb6.tar.gz
elgg-8e863c9c0c6050b3905db80b25b9769d91f59eb6.tar.bz2
Merge commit '279e74d06be7e2fc98c3df3cd867d1ecfd3e6de4' as 'mod/landing'
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