Note
- most things you want to do is possible using CSS and the existing classes
- investigate using CSS before using conditionals because CSS is faster
Description
Set the title attribute of each menu link depending on if it has sub-items (it's Expandable!) or not (it's a Leaf!).
Source code
show_menu2(0, SM2_ROOT, SM2_ALL, SM2_TRIM|SM2_PRETTY,
'<li class="[class]" title="[if(class==menu-expand){ Expandable! }else{ Leaf }]">
[if(class==menu-expand){+ }else{- }][a][menu_title][/a]');
'<li class="[class]" title="[if(class==menu-expand){ Expandable! }else{ Leaf }]">
[if(class==menu-expand){+ }else{- }][a][menu_title][/a]');