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
<?phpif (PAGE_ID == 1){ ?><img src="http://www.bramus.nl/media/wereld-internet.png" alt="Hosting" /><?php} if (PAGE_ID == 2) { ?><img src="http://www.bramus.nl/media/image2.png" alt="Image2" /><?php }?>
<img id="frontphoto" src="<?php echo TEMPLATE_DIR; ?>/img/<?php echo PAGE_TITLE; ?>.jpg" width="760" height="175" alt="logo" />
<img id="frontphoto" src="<?php echo TEMPLATE_DIR; ?>/img/front.jpg" width="760" height="175" alt="logo" />
Pseudo codeIF PAGE_TITLE.jpg exist then PAGE_TITLE.jpg else default_banner.jpg
<?php/*** @version 0.1.0* @date 2008-08-02* @package WebsiteBaker - Code Examples**/ switch (PAGE_TITLE) { case "Home": $image_name = "heaven.jpg"; $alt_str = "this is the heaven"; break; case "Photos": $image_name = "clouds.jpg"; $alt_str = "A rainy day in Georgia."; break; case "Math c1": case "Math c2": case "Math c3": $image_name = "math/fractals.jpg"; $alt_str = "Math: fractals. A Reethmann/Loopfield area in details."; break; default: $image_name = "asterix.gif"; $alt_str = "we don't need every time the magic-drink."; } $img_html_str = "img src=\"http://www.no_idea.biz/media/\"".$image_name."\" alt=\"".$alt_str."\" />\n";?><!-- some html in your template here --><? echo $img_html; ?>