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
Add the next code in your root index.php before$wb->get_page_details();Code: [Select]// Sticky Template switcherif ($_GET['template']!="") { // get the template to display from URL if(file_exists(WB_PATH.'/templates/'.$_GET['template'].'/index.php')) { define('TEMPLATE',$_GET['template']); $_SESSION['TEMPLATE']=TEMPLATE; }} else { // else get the template to display from Session Variable if(isset($_SESSION['TEMPLATE']) AND $_SESSION['TEMPLATE'] != '') define('TEMPLATE',$_SESSION['TEMPLATE']);}
// Sticky Template switcherif ($_GET['template']!="") { // get the template to display from URL if(file_exists(WB_PATH.'/templates/'.$_GET['template'].'/index.php')) { define('TEMPLATE',$_GET['template']); $_SESSION['TEMPLATE']=TEMPLATE; }} else { // else get the template to display from Session Variable if(isset($_SESSION['TEMPLATE']) AND $_SESSION['TEMPLATE'] != '') define('TEMPLATE',$_SESSION['TEMPLATE']);}
// Sticky Template switcherif (isset($_GET['template'])) { // get the template to display from URL if(file_exists(WB_PATH.'/templates/'.$_GET['template'].'/index.php')) { define('TEMPLATE',$_GET['template']); $_SESSION['TEMPLATE']=TEMPLATE; }} else { // else get the template to display from Session Variable if(isset($_SESSION['TEMPLATE']) AND $_SESSION['TEMPLATE'] != '') define('TEMPLATE',$_SESSION['TEMPLATE']);}