From e68bf62084b0a90097b3b65d3ef12c2605e09289 Mon Sep 17 00:00:00 2001 From: brettp Date: Fri, 11 Mar 2011 23:14:09 +0000 Subject: Refs #2991. First round at rearranging and grouping admin menu based upon tasks. git-svn-id: http://code.elgg.org/elgg/trunk@8654 36083f99-b078-4883-b0ff-0f9b5a30f544 --- views/default/admin/settings/advanced.php | 9 +++ views/default/admin/settings/basic.php | 9 +++ views/default/admin/settings/default_widgets.php | 65 ++++++++++++++++++++++ views/default/admin/settings/menu_items.php | 10 ++++ views/default/admin/settings/profile_fields.php | 18 ++++++ .../default/admin/settings/profile_fields/list.php | 56 +++++++++++++++++++ 6 files changed, 167 insertions(+) create mode 100644 views/default/admin/settings/advanced.php create mode 100644 views/default/admin/settings/basic.php create mode 100644 views/default/admin/settings/default_widgets.php create mode 100644 views/default/admin/settings/menu_items.php create mode 100644 views/default/admin/settings/profile_fields.php create mode 100644 views/default/admin/settings/profile_fields/list.php (limited to 'views/default/admin/settings') diff --git a/views/default/admin/settings/advanced.php b/views/default/admin/settings/advanced.php new file mode 100644 index 000000000..12e4303e7 --- /dev/null +++ b/views/default/admin/settings/advanced.php @@ -0,0 +1,9 @@ + $info['name'], + 'url' => $url, + 'selected' => $selected + ); +} + +$tabs_vars = array( + 'tabs' => $tabs +); + +echo elgg_view('navigation/tabs', $tabs_vars); + +echo elgg_view('output/longtext', array('value' => elgg_echo('admin:default_widgets:instructions'))); + +if (!$current_info) { + $content = elgg_echo('admin:default_widgets:unknown_type'); +} else { + // default widgets are owned and saved to the site. + elgg_set_page_owner_guid(elgg_get_config('site_guid')); + elgg_push_context($current_info['widget_context']); + + $default_widgets_input = elgg_view('input/hidden', array( + 'name' => 'default_widgets', + 'value' => 1 + )); + + $params = array( + 'content' => $default_widgets_input, + 'num_columns' => $current_info['widget_columns'], + ); + + $content = elgg_view_layout('widgets', $params); + elgg_pop_context(); +} +elgg_pop_context(); + +echo $content; diff --git a/views/default/admin/settings/menu_items.php b/views/default/admin/settings/menu_items.php new file mode 100644 index 000000000..4e35e032f --- /dev/null +++ b/views/default/admin/settings/menu_items.php @@ -0,0 +1,10 @@ + + $reset + +__HTML; + +echo $body; diff --git a/views/default/admin/settings/profile_fields/list.php b/views/default/admin/settings/profile_fields/list.php new file mode 100644 index 000000000..493129583 --- /dev/null +++ b/views/default/admin/settings/profile_fields/list.php @@ -0,0 +1,56 @@ +translation = $translation; + $item->shortname = $listitem; + $item->name = "admin_defined_profile_{$listitem}"; + $item->type = elgg_get_config("admin_defined_profile_type_{$listitem}"); + $items[] = $item; + } + } +} +?> +
+ +
+
+ + \ No newline at end of file -- cgit v1.2.3