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
$block[1] = 'main content full with'; $block[2] = 'main content half with';
<?php ob_start(); page_content(1); $content1=ob_get_contents(); ob_end_clean(); ?> <?php ob_start(); page_content(2); $content2=ob_get_contents(); ob_end_clean(); ?>
<?php if(($content2) == true){ ?> <div class="main half"><!--<div class="main full">--><?php } ?> <?php page_content(1); ?></div><?php if(($content2) == true){ ?> <div class="main half last"> <?php page_content(2); ?></div><?php } ?>
.main{background: #FF00FF;height: 500px;}.full {width: 680px;}.half{width: 335px;float: left;}.last{margin-left: 10px;}