Note

Description

Just going crazy with conditionals

Source code

show_menu2(0, SM2_ROOT, SM2_ALL, SM2_ALL|SM2_PRETTY,
'[li][a][menu_title][/a] level="[level]" sib="[sib]" '.
'[if(level < 1){ small }]'.
'[if(level == 1 || level == 2){ middle }]'.
'[if(level > 2){ large }]'.
'[if(sib == 1){ <b>!first!</b> }]'.
'[if(sib != 1 && sib != sibCount){ !neither! }]'.
'[if ( sib == sibCount ) { <b>!last!</b> } ]'
);

Example results

Powered by Website Baker