Note

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]');

Example results

Powered by Website Baker