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 // Submenu region, only shown when submenu's are availableob_start();show_menu2(1, SM2_ROOT+1, SM2_START, false,'[li][a][menu_title]</a>','</li>', '<ul>');$childmenu=ob_get_contents();ob_end_clean();if ($childmenu!="") {?><div id="submenu"><?php echo $childmenu; ?></div><?php } ?>
<?php // start buffer -> write contentblock/menu or other stuff -> put it in a variableob_start();page_content(2);$rechts=ob_get_contents();ob_end_clean();if ($rechts =="") {//ceck if this contentblock (2) has content ->that your autor create in the backend and set this content to the reffered blockecho '<div id="content-breit">' page_content(1); echo '</div>' //normal page content block 1} else {// here goes the HTML output if second content block has content!echo '<div id="content-schmal">'; page_content(1);echo '</div><div id="rechts">' . $rechts . '</div>';}?>