Revision 20
Added by stefan about 19 years ago
compatibility.php | ||
---|---|---|
45 | 45 |
// Old menu call invokes new menu function |
46 | 46 |
function page_menu($parent = 0, $menu_number = 1, $item_template = '<li><span[class]>[a][menu_title][/a]</span>', $menu_header = '<ul>', $menu_footer = '</ul>', $default_class = ' class="menu_default"', $current_class = ' class="menu_current"', $recurse = LEVEL) { |
47 | 47 |
global $wb; |
48 |
$wb->menu($menu_number, 0, -1, true, $item_template, '</li>', $menu_header, $menu_footer, $default_class, $current_class, $parent); |
|
49 |
// $wb->page_menu($parent, $menu_number, $item_template.'</li>', $menu_header, $menu_footer, $default_class, $current_class, $recurse); |
|
48 |
$wb->menu_number=$menu_number; |
|
49 |
$wb->menu_item_template=$item_template; |
|
50 |
$wb->menu_parent = $parent; |
|
51 |
$wb->menu_header = $menu_header; |
|
52 |
$wb->menu_footer = $menu_footer; |
|
53 |
$wb->menu_default_class = $default_class; |
|
54 |
$wb->menu_current_class = $current_class; |
|
55 |
$wb->menu_recurse = $recurse+2; |
|
56 |
$wb->menu(); |
|
50 | 57 |
} |
51 | 58 |
|
52 | 59 |
// Function for page title |
Also available in: Unified diff
Rewrote menu function. Parameters are now given as attributes to frontend class.