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
index.phpcss/template.csscss/color.css
index.phpcss/template.csscss/blue.csscss/green.csscss/red.css
<?php $css = "red.css"; //defaultif (PAGE_ID==1} $css = "blue.css";if (PAGE_ID==2} $css = "yellow.css";if (PAGE_ID==382} $css = "brown.css";echo TEMPLATE_DIR.$css;?>
<?php// generates stylesheet names like home.css / about_us.css$css = MENU_TITLE.".css";echo TEMPLATE_DIR.$css;?>
<body><div class="page-<?php echo PAGE_ID; ?>">......</div></body>
<?php $css = "red.css"; //defaultif (PAGE_ID==1} $css = "blue.css";if (PARENT==1} $css = "blue.css";if (PAGE_ID==2} $css = "yellow.css";if (PARENT==2} $css = "yellow.css";if (PAGE_ID==382} $css = "brown.css";if (PARENT==382} $css = "brown.css";echo TEMPLATE_DIR.$css;?>
<?php // automatically include optional WB module files (frontend.css, frontend.js) if (function_exists('register_frontend_modfiles')) { register_frontend_modfiles('css'); register_frontend_modfiles('js'); } ?><link rel="stylesheet" type="text/css" href="<?php echo TEMPLATE_DIR; ?>/style.css" media="screen,projection" /><link rel="stylesheet" type="text/css" href="<?php echo TEMPLATE_DIR; ?>/print.css" media="print" />
<head><?php simplepagehead('/', 1, 1, 1, 0); ?><meta http-equiv="Content-Type" content="text/html; charset=<?php if(defined('DEFAULT_CHARSET')) { echo DEFAULT_CHARSET; } else { echo 'utf-8'; }?>" /> <?php // automatically include optional WB module files (frontend.css, frontend.js) if (function_exists('register_frontend_modfiles')) { register_frontend_modfiles('css'); register_frontend_modfiles('js'); } ?><link rel="stylesheet" type="text/css" href="<?php echo TEMPLATE_DIR; ?>/style.css" media="screen,projection" /><link rel="stylesheet" type="text/css" href="<?php echo TEMPLATE_DIR; ?>/print.css" media="print" /><link rel="Shortcut Icon" type="image/x-icon" href="<?php echo WB_URL; ?>/favicon.ico" /><?php $css = "style.css"; //defaultif (PAGE_ID==21} $css = "dark.css";echo TEMPLATE_DIR.$css;?></head>
<?php $css = "/style.css"; //defaultif (PAGE_ID==21) $css = "/dark.css";echo TEMPLATE_DIR.$css;?>
http://www.website.com/templates/background/dark.css
<?phpif (PAGE_ID==21) { ?><link rel="stylesheet" type="text/css" href="<?php echo TEMPLATE_DIR; ?>/dark.css" media="screen,projection" /><?php } ?><?phpif (PAGE_ID==22) { ?><link rel="stylesheet" type="text/css" href="<?php echo TEMPLATE_DIR; ?>/light.css" media="screen,projection" /><?php } ?>
<?php $css = "/style.css"; //defaultif (PAGE_ID==21) $css = "/dark.css";if (PAGE_ID==22) $css = "/light.css";?><link rel="stylesheet" type="text/css" href="<?php echo TEMPLATE_DIR.$css; ?>" media="screen,projection" />
Thank you for pushing me in the right direction. Finally got it.
I am really happy you shared your final working solution(s) with the community. An example for all of us.
Tez is a little bit right.