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
I can easily set up a 'navigation bar '. Bootstrap uses the class "active" for the menu item of the current active page. Showmenu_2 uses the class "current-menu". Renaming those classes won't do it... So creating a responsive menu with dropdown menus is certainly not going to be easy!
<?phpshow_menu2( 0, SM2_ROOT, SM2_CURR+2, SM2_ALL, // here '<li class="[if(class=menu-current){ active}]">'. // and here '<a[if(class=menu-current){ class="active"}] href="[url]">'. '<span>[menu_title]</span>'. '</a>', "</li>", '<ul[if(level=0){ class="topmenu" }][if(level=1){ class="submenu" }]>', '</ul>' );
When you're in Belgium a buy you a beer!
<?php$sItemOpen = '<li class="level[level]'. '[if(class=menu-expand){ expandable_[level]}]'. '[if(level=0){ top_[page_id]}]'. '[if(class=menu-current || class=menu-parent){ selected}]"'. '>'. '<a if(class=menu-current){ class="selected"}] href="[url]">'. '<span>[menu_title]</span>'. '</a>';$main_menu = show_menu2( 0, SM2_ROOT, SM2_CURR+2, SM2_ALL | SM2_BUFFER, $sItemOpen, "</li>", '[if(level=1){<span class="haschilds"></span>}]<ul[if(level=0){ class="topmenu" }][if(level=1){ class="submenu" }]>', "</ul>". '' );echo $main_menu;