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 // ignore this line, please!ob_start(); show_menu2(); $menu_str = ob_get_contents();ob_end_clean();$suchmuster = array('Wohnen', 'Offene Stadtarbeit', 'Consors Betriebe');$ersetzung = array ('Wohnen<sup>Plus</sup>', 'Offene Stadtarbeit<sup>PSZ</sup>', 'Consors Betriebe<sup>WfBN</sup>');echo str_replace($suchmuster, $ersetzung, $menu_str);?>
Hi Stefek, that's clever, thanks. But I wonder what the advantage is of doing it this way. Why create a dynamic menu that still needs static, hardcoded html? Wouldn't it be easier to just create the static, hardcoded menu on its own? Now it's a hybrid between static hardcoded and dynamic backend stuff, which doesn't seem to have an advantage above a complete hardcoded version. Or do I miss something?