aboutsummaryrefslogtreecommitdiff
path: root/views
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
commit279e74d06be7e2fc98c3df3cd867d1ecfd3e6de4 (patch)
tree5d057841a692d31494faedae6d5220786f39bd90 /views
downloadelgg-279e74d06be7e2fc98c3df3cd867d1ecfd3e6de4.tar.gz
elgg-279e74d06be7e2fc98c3df3cd867d1ecfd3e6de4.tar.bz2
Squashed 'mod/landing/' content from commit d1ea0d2
git-subtree-dir: mod/landing git-subtree-split: d1ea0d2593cbf55a3804224fd587dbde00672a8c
Diffstat (limited to 'views')
-rw-r--r--views/default/landing/css.php1
-rw-r--r--views/default/usersettings/landing/edit.php27
2 files changed, 28 insertions, 0 deletions
diff --git a/views/default/landing/css.php b/views/default/landing/css.php
new file mode 100644
index 000000000..711794fc2
--- /dev/null
+++ b/views/default/landing/css.php
@@ -0,0 +1 @@
+input[type=text].landing-page-url { width: auto; }
diff --git a/views/default/usersettings/landing/edit.php b/views/default/usersettings/landing/edit.php
new file mode 100644
index 000000000..f302ce846
--- /dev/null
+++ b/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