diff options
author | brettp <brettp@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2011-03-11 23:14:09 +0000 |
---|---|---|
committer | brettp <brettp@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2011-03-11 23:14:09 +0000 |
commit | e68bf62084b0a90097b3b65d3ef12c2605e09289 (patch) | |
tree | a08e06ca7e3ec0301e318342caeb79155d56a80b /views/default/admin/appearance | |
parent | adae1958a95d7e801de91d673e927cac348236d9 (diff) | |
download | elgg-e68bf62084b0a90097b3b65d3ef12c2605e09289.tar.gz elgg-e68bf62084b0a90097b3b65d3ef12c2605e09289.tar.bz2 |
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
Diffstat (limited to 'views/default/admin/appearance')
-rw-r--r-- | views/default/admin/appearance/default_widgets.php | 65 | ||||
-rw-r--r-- | views/default/admin/appearance/menu_items.php | 10 | ||||
-rw-r--r-- | views/default/admin/appearance/profile_fields.php | 18 | ||||
-rw-r--r-- | views/default/admin/appearance/profile_fields/list.php | 56 |
4 files changed, 0 insertions, 149 deletions
diff --git a/views/default/admin/appearance/default_widgets.php b/views/default/admin/appearance/default_widgets.php deleted file mode 100644 index 7462dfa7c..000000000 --- a/views/default/admin/appearance/default_widgets.php +++ /dev/null @@ -1,65 +0,0 @@ -<?php -/** - * Default widgets landing page. - * - * @package Elgg.Core - * @subpackage Administration.DefaultWidgets - */ - -elgg_push_context('default_widgets'); -$widget_context = get_input('widget_context'); -$list = elgg_trigger_plugin_hook('get_list', 'default_widgets', null, array()); - -// default to something if we can -if (!$widget_context && $list) { - $widget_context = $list[0]['widget_context']; -} - -$current_info = null; -$tabs = array(); -foreach ($list as $info) { - $url = "admin/appearance/default_widgets?widget_context={$info['widget_context']}"; - $selected = false; - if ($widget_context == $info['widget_context']) { - $selected = true; - $current_info = $info; - } - - $tabs[] = array( - 'title' => $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:appearance:default_widgets:instructions'))); - -if (!$current_info) { - $content = elgg_echo('admin:appearance: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;
\ No newline at end of file diff --git a/views/default/admin/appearance/menu_items.php b/views/default/admin/appearance/menu_items.php deleted file mode 100644 index 4e35e032f..000000000 --- a/views/default/admin/appearance/menu_items.php +++ /dev/null @@ -1,10 +0,0 @@ -<?php -/** - * Elgg administration menu items - * - * @package Elgg - * @subpackage Core - */ - - -echo elgg_view_form('admin/menu/save'); diff --git a/views/default/admin/appearance/profile_fields.php b/views/default/admin/appearance/profile_fields.php deleted file mode 100644 index 7077687cc..000000000 --- a/views/default/admin/appearance/profile_fields.php +++ /dev/null @@ -1,18 +0,0 @@ -<?php -/** - * Admin area: edit default profile fields - */ - -$add = elgg_view_form('profile/fields/add', array(), array()); -$list = elgg_view('admin/appearance/profile_fields/list'); -$reset = elgg_view_form('profile/fields/reset', array(), array()); - -$body = <<<__HTML -$add -$list -<div class="default_profile_reset"> - $reset -</div> -__HTML; - -echo $body; diff --git a/views/default/admin/appearance/profile_fields/list.php b/views/default/admin/appearance/profile_fields/list.php deleted file mode 100644 index 493129583..000000000 --- a/views/default/admin/appearance/profile_fields/list.php +++ /dev/null @@ -1,56 +0,0 @@ -<?php -/** - * Profile fields. - * - * @todo Needs some review - */ - -// List form elements -$n = 0; -$loaded_defaults = array(); -$items = array(); -if ($fieldlist = elgg_get_config('profile_custom_fields')) { - $fieldlistarray = explode(',', $fieldlist); - foreach ($fieldlistarray as $listitem) { - if ($translation = elgg_get_config("admin_defined_profile_{$listitem}")) { - $item = new stdClass; - $item->translation = $translation; - $item->shortname = $listitem; - $item->name = "admin_defined_profile_{$listitem}"; - $item->type = elgg_get_config("admin_defined_profile_type_{$listitem}"); - $items[] = $item; - } - } -} -?> -<div id="list"> - <ul id="sortable_profile_fields"> -<?php - -$save = elgg_echo('save'); -$cancel = elgg_echo('cancel'); - -foreach ($items as $item) { - echo elgg_view("profile/", array('value' => $item->translation)); - - //$even_odd = ( 'odd' != $even_odd ) ? 'odd' : 'even'; - $url = elgg_view('output/url', array( - 'href' => "action/profile/fields/delete?id={$item->shortname}", - 'is_action' => TRUE, - 'text' => elgg_view_icon('delete'), - )); - $type = elgg_echo($item->type); - echo <<<HTML -<li id="$item->shortname" class="clearfix"> - <span class="elgg-icon elgg-icon-dragger elgg-state-draggable"></span> - <b><span id="elgg-profile-field-{$item->shortname}" class="elgg-state-editable">$item->translation</span></b> [$type] $url -</li> -HTML; -} - -?> - </ul> -</div> -<div id="tempList"></div> - -<input name="sortableListOrder" type="hidden" id="sortableListOrder" value="<?php echo $fieldlist; ?>" />
\ No newline at end of file |