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
<link rel="stylesheet" type="text/css" href="default.css" id="siteCSS"/> <script type="text/javascript"> // Get current month var currDate=new Date(); var currMonth = currDate.getDate(); // Month returned by getDate() is 0 to 11 so add 1 currMonth = parseInt(currMonth) + 1; // Based on month assign style sheet name var newCSS = "default.css"; if (currMonth >= 1) newCSS = "winter.css"; // Month is January or greater if (currMonth >= 3) newCSS = 'spring.css'; // Month is March or greater if (currMonth >= 6) newCSS = 'summer.css'; // Month is June or greater if (currMonth >= 9) newCSS = 'fall.css'; // Month is September or greater if (currMonth = 12) newCSS = 'winter.css'; // Month is December // Assign new style sheet name as the new href for "siteCSS" LINK tag document.getElementById('siteCSS').href = newCSS; </script>
<?php //colour your lifeif ((date('m') == 12) || ((date('m') == 1) && (date('d') < 7))) {echo '<link rel="stylesheet" type="text/css" href="winter.css" id="siteCSS"/>';}else{eche ' <link rel="stylesheet" type="text/css" href="default.css" id="siteCSS"/>';}
<?phpif ((date('m') == 12) && (date('d') > 4) || ((date('m') == 12) && (date('d') < 6))) {echo 'sinterklaas';}else if ((date('m') == 12) && (date('d') > 25 || ((date('m') == 1) && (date('d') < 28))) {echo 'kerst';}else{echo 'geen sinterklaas, geen kerst';}?>