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
In the link the 5.th screenshot shows at the end 2 lines.One for overrule the classes and one for own classes. Thought this helps.
@jacobi22Your solution looks like the example @ruud has posted some years ago.
The trouble with this kind of appraoche is the if then else. Normaly if you have for example a main and a right of main, it is not possible to have a full size and then again a left from main and a main. That is I don't see how
>?phpif (!defined('WB_PATH')) die(header('Location: ../../index.php'));ob_start(); page_content(1); $content=ob_get_contents(); ob_end_clean(); // Mainob_start(); page_content(2); $right=ob_get_contents(); ob_end_clean(); // Right from mainob_start(); page_content(3); $left=ob_get_contents(); ob_end_clean(); // Left from mainob_start(); page_content(4); $fulltop=ob_get_contents(); ob_end_clean(); // Full top of the pageob_start(); page_content(5); $fullbottom=ob_get_contents(); ob_end_clean(); // Full bottom of the page?>
<div class="container content"> <?php if ($fulltop) { echo '<br />'.$fulltop; } ?> <div class="row"> <?php if ($content && $right && $left) { ?> <div class="col-1"><div class="box"><?php echo $left ?></div></div> <div class="col-1"><div class="box"><?php echo $content ?></div></div> <div class="col-1"><div class="box"><?php echo $right ?></div></div> <?php } elseif ($right) { ?> <div class="col-2"><div class="box"><?php echo $content ?></div></div> <div class="col-1"><div class="box"><?php echo $right ?></div></div> <?php } elseif ($left) { ?> <div class="col-1"><div class="box"><?php echo $left ?></div></div> <div class="col-2"><div class="box"><?php echo $content ?></div></div> <?php } else { ?> <div class="col-3"><div class="box"><?php echo $content ?></div></div> </div> <?php } ?> <?php if ($fullbottom) { ?> <div class="col-4"> <?php echo $fullbottom ?> </div> <?php } ?> <div class="row"> <div class="col-4 footer"> <?php page_footer(); ?> </div> </div>
$block[1] = 'Main';$block[2] = 'Right from main';$block[3] = 'Left from main';$block[4] = 'Full Top';$block[5] = 'Full Bottom';$block[99] = 'nothing to display';
That are a lot of blocks
The solution from @ruud is something like this
How does that effect the speed of the site, because it's a lot of coding then.
<?php if ($content && $right && $left) { ?>
<?php if ($fullbottom) { ?>
Do i have to insert a new row in every if then else if i should use your defenition?
ob_start(); page_content(1); $content=ob_get_contents(); ob_end_clean(); // Main
ob_start();page_content(1);$content = ob_get_clean();
<?php if(trim($page_Teaser)!=''){ ?>