Index: openacs-4/packages/xowiki/tcl/menu-procs.tcl =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/xowiki/tcl/menu-procs.tcl,v diff -u -N -r1.7.2.2 -r1.7.2.3 --- openacs-4/packages/xowiki/tcl/menu-procs.tcl 14 Apr 2014 21:33:10 -0000 1.7.2.2 +++ openacs-4/packages/xowiki/tcl/menu-procs.tcl 15 Apr 2014 06:47:00 -0000 1.7.2.3 @@ -334,7 +334,7 @@ # $mb add_menu_item -name Package.Startpage \ # -item [list text #xowiki.index# url $index_link] # - # 4) After all updates are performed, use "render-yui" to obtain + # 4) After all updates are performed, use "render-preferred" to obtain # the HTML rendering of the menu. # # Follow the following nameing conventions: @@ -510,6 +510,14 @@ return $result } + ::xowiki::MenuBar instproc render-preferred {} { + switch [$context_package_id get_parameter "PreferredCSSToolkit" yui] { + bootstrap {set menuBarRenderer render-bootstrap} + default {set menuBarRenderer render-yui} + } + my $menuBarRenderer + } + ::xowiki::MenuBar instproc render-yui {} { set M [my content] set mb [::xowiki::YUIMenuBar -id [my get_prop $M id] -configuration {