From dbdf001b867cb686beb6113d329eaa42b02ed4ca Mon Sep 17 00:00:00 2001 From: cash Date: Thu, 27 Jan 2011 13:01:46 +0000 Subject: removed menu code introduced for elgg.com that did not make it into 1.8 git-svn-id: http://code.elgg.org/elgg/trunk@7949 36083f99-b078-4883-b0ff-0f9b5a30f544 --- views/default/navigation/sidebar_menu.php | 13 --------- views/default/navigation/submenu_group.php | 40 -------------------------- views/default/navigation/submenu_item.php | 46 ------------------------------ views/default/navigation/submenu_js.php | 29 ------------------- 4 files changed, 128 deletions(-) delete mode 100644 views/default/navigation/sidebar_menu.php delete mode 100644 views/default/navigation/submenu_group.php delete mode 100644 views/default/navigation/submenu_item.php delete mode 100644 views/default/navigation/submenu_js.php (limited to 'views/default/navigation') diff --git a/views/default/navigation/sidebar_menu.php b/views/default/navigation/sidebar_menu.php deleted file mode 100644 index 75fe7c743..000000000 --- a/views/default/navigation/sidebar_menu.php +++ /dev/null @@ -1,13 +0,0 @@ - for a submenu and passes items one by one - * to navigation/submenu_item - * - * @uses $vars['group_name'] - * @uses $vars['items'] - * @package Elgg - * @subpackage Core - */ - -$group = (isset($vars['group'])) ? $vars['group'] : 'default'; -$items = (isset($vars['items'])) ? $vars['items'] : array(); -$hidden = (isset($vars['hidden']) && $vars['hidden']) ? 'hidden' : ''; -$child = (isset($vars['child']) && $vars['child']) ? 'child' : ''; - -echo "\n"; \ No newline at end of file diff --git a/views/default/navigation/submenu_item.php b/views/default/navigation/submenu_item.php deleted file mode 100644 index 09aa24a8e..000000000 --- a/views/default/navigation/submenu_item.php +++ /dev/null @@ -1,46 +0,0 @@ - part of a submenu. - * - * @uses $vars['group'] - * @uses $vars['item'] - * @uses $vars['children_html'] - * @package Elgg - * @subpackage Core - */ - -$group = (isset($vars['group'])) ? $vars['group'] : 'default'; -$item = (isset($vars['item'])) ? $vars['item'] : FALSE; -$children_html = (isset($vars['children_html'])) ? $vars['children_html'] : ''; - -if ($item) { - $has_children = (isset($item->children) && $item->children) ? TRUE : FALSE; - $selected = (isset($item->selected) && $item->selected == TRUE) ? 'class="selected"' : ''; - $js = (isset($vars['js'])) ? $vars['js'] : ''; - - $child_indicator = ''; - if ($has_children) { - if ($selected) { - $child_indicator = '-'; - $child_indicator .= ''; - } else { - $child_indicator = ''; - $child_indicator .= '+'; - } - - $child_indicator = "$child_indicator "; - } - - $url = htmlentities($item->href); - $text = $child_indicator . htmlentities($item->text); - - $link_vars = array_merge($vars, array( - 'href' => $item->href, - 'text' => $text, - 'encode_text' => FALSE - )); - - $link = elgg_view('output/url', $link_vars); -} - -echo "
  • $link$children_html
  • "; diff --git a/views/default/navigation/submenu_js.php b/views/default/navigation/submenu_js.php deleted file mode 100644 index 1ed710b2b..000000000 --- a/views/default/navigation/submenu_js.php +++ /dev/null @@ -1,29 +0,0 @@ - - - \ No newline at end of file -- cgit v1.2.3