diff options
author | cash <cash.costello@gmail.com> | 2011-10-03 21:30:30 -0400 |
---|---|---|
committer | cash <cash.costello@gmail.com> | 2011-10-03 21:30:30 -0400 |
commit | fa04d6615760a014f7557f2d28ff864eebce8551 (patch) | |
tree | d99d94d1829480388ca3ece75d5b986e6277aef4 /mod/embed/views/default/navigation/menu | |
parent | d7549a210074a29f004642d713ede6ce04703bcc (diff) | |
download | elgg-fa04d6615760a014f7557f2d28ff864eebce8551.tar.gz elgg-fa04d6615760a014f7557f2d28ff864eebce8551.tar.bz2 |
removed the sections from the menu to provide more flexibility in tab ordering
Diffstat (limited to 'mod/embed/views/default/navigation/menu')
-rw-r--r-- | mod/embed/views/default/navigation/menu/embed.php | 19 |
1 files changed, 8 insertions, 11 deletions
diff --git a/mod/embed/views/default/navigation/menu/embed.php b/mod/embed/views/default/navigation/menu/embed.php index 36cedc47e..1a6a18f05 100644 --- a/mod/embed/views/default/navigation/menu/embed.php +++ b/mod/embed/views/default/navigation/menu/embed.php @@ -2,20 +2,17 @@ /** * Embed tabs * - * @uses $vars['menu']['select'] - * @uses $vars['menu']['upload'] + * @uses $vars['menu']['default'] */ $tabs = array(); -foreach (array('select', 'upload') as $type) { - foreach ($vars['menu'][$type] as $menu_item) { - $tabs[] = array( - 'title' => $menu_item->getText(), - 'url' => 'embed/tab/' . $menu_item->getName(), - 'url_class' => 'embed-section', - 'selected' => $menu_item->getSelected(), - ); - } +foreach ($vars['menu']['default'] as $menu_item) { + $tabs[] = array( + 'title' => $menu_item->getText(), + 'url' => 'embed/tab/' . $menu_item->getName(), + 'url_class' => 'embed-section', + 'selected' => $menu_item->getSelected(), + ); } echo elgg_view('navigation/tabs', array('tabs' => $tabs)); |