'; } // Render the menu item switch ($item->type) : case 'separator': case 'url': case 'component': if (!$item->deeper || $item->level > 1) { $sidebar_file = dirname(__FILE__) . '/sidebar_' . $item->type . '.php'; require $sidebar_file; } break; default: if (!$item->deeper || $item->level > 1) { $sidebar_url = dirname(__FILE__) . '/sidebar_url.php'; require $sidebar_url; } break; endswitch; // The next item is deeper. if ($item->deeper) { echo '
'; } // The next item is shallower. elseif ($item->shallower) { echo '
'; echo str_repeat('', $item->level_diff); } // The next item is on the same level. else { echo ''; } if (@$list[$i+1]->level==1 || !@$list[$i+1]->level) { echo '