WebsiteBaker 2.13.8 is now available!
R.I.P Dietmar (luisehahne) and thank you for all your valuable work for WBhttps://forum.websitebaker.org/index.php/topic,32355.0.html
<?php show_menu2(1, SM2_ROOT+1, SM2_ALL, SM2_ALL|SM2_CURRTREE, '<li><a href="[url]">[menu_title]</a>','</li>','<ul>','</ul>'); ?>
<ul> <?php show_menu2(1, SM2_ROOT, SM2_ALL,SM2_ALL,'<li>[a][menu_title] [if(class==menu-expand){<!--[if IE 7]><!--></a><!--<![endif]--><!--[if lte IE 6]><table><tr><td><![endif]--><ul>}] [if(class!=menu-expand){</a>}] [if(class!=menu-last){</li>}] [if(class==menu-last){</li></ul><!--[if lte IE 6]></td></tr></table></a><![endif]-->}]','','',''); ?> </ul>
'<li><a href="[url]">[menu_title]</a>','</li>','<ul>','</ul>'
'<li>[a][menu_title] [if(class==menu-expand){<!--[if IE 7]><!--></a><!--<![endif]--><!--[if lte IE 6]><table><tr><td><![endif]--><ul>}] [if(class!=menu-expand){</a>}] [if(class!=menu-last){</li>}] [if(class==menu-last){</li></ul><!--[if lte IE 6]></td></tr></table></a><![endif]-->}]','','',''
<?php$indicator ="_||_!"; //This is the Indicator to replace the last Line of the menu, which give a validation errorob_start(); // start output buffer show_menu2(1,SM2_ROOT, SM2_ALL,SM2_ALL,' [if(class==menu-expand){<li>[ac][menu_title]<!--[if IE 7]><!--></a><!--<![endif]--><!--[if lte IE 6]><table><tr><td><![endif]--><ul>}] [if(class!=menu-expand){<li>[ac][menu_title]<span></span></a></li>}] [if(class!=menu-last){}] [if(class==menu-last){</ul><!--[if lte IE 6]></td></tr></table></a><![endif]--></li>}]','','',''); echo $indicator; $menu=ob_get_contents(); // put outputbuffer in $menu ob_end_clean(); // clear outputbuffer $menu = str_replace("</li>".$indicator, "", $menu); //Replace the li which is not valid echo $menu; ?>