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
page_content(2)
<?phpob_start();page_content(2);$out1 = ob_get_contents();ob_end_clean();if(empty($out1)) {echo '<img src="http://www.awebsite.nl/media/headers/standardheader.png" alt="A website title" />';} else { echo $out1; }?>
<?phpob_start();page_content(2);$out1 = ob_get_contents();ob_end_clean();if(empty($out1)) {echo '<div style="background:url(http://www.awebsite.nl/media/headers/standardheader.png) 0 0 no-repeat;width:123px;height:123px;"></div>';} else { echo '<div style="background:url('.$out1.') 0 0 no-repeat;width:123px;height:123px;"></div>'; }?>
<?phpif (file_exists('http://www.awebsite.nl/media/headers/header-alt.jpg') ) {echo '<div style="background:url(http://www.awebsite.nl/media/headers/header-alt.jpg) 0 0 no-repeat;width:123px;height:123px;"></div>';} else { echo '<div style="background:url(http://www.awebsite.nl/media/headers/standardheader.png) 0 0 no-repeat;width:123px;height:123px;"></div>'; }?>
There is no check if there is or isn't a image.
<?php ob_start();page_content(2);$out1 = ob_get_contents();ob_end_clean(); if((strlen($out1) < 60) && (substr($out1,0,2) == '<a') && (substr($out1,-4) == '</a>')) {echo 'YOUR DEFAULT CONTENT'; } else { echo $out1; }?>