Demo Theme section On Oxwall The files need to edit 1. index.php 2.ow_core/theme_manager.php 3.ow_themes/themename/master_pages/dndindex.html 4.ow_themes/themename/master_pages/general.html ---------------------------------------- 1st. go to index.php and find $application = OW::getApplication(); and put these codes under it // Coded by Roxwall on 03-08-2013 //echo BOL_ThemeService::DEFAULT_THEME . "
-----
"; if( isset($_GET['layout']) && !empty($_GET['layout']) ) { if( is_dir('ow_themes/'.$_GET['layout']) ) OW_ThemeManager::setTheme($_GET['layout']); OW::getSession()->set('curtheme', $_GET['layout']); } $curtheme = OW::getSession()->get('curtheme'); if( !$curtheme ) OW_ThemeManager::setTheme(BOL_ThemeService::DEFAULT_THEME); else OW_ThemeManager::setTheme($curtheme); // Coded by Roxwall on 03-08-2013 end ------------------------- Save and closte the file. ---------------------------------------- 2nd. go to ow_core/theme_manager.php and find /** * @return BOL_ThemeService */ public function getThemeService() { return $this->themeService; } and put these codes under it /** * Set the given theme. * * @param string $themename */ public function setTheme($themename) { OW::getConfig()->saveConfig( 'base', 'selectedTheme', $themename ); } -------------------------- Save and closte the file. --------------------------------------------- 3.go to ow_themes/themename/master_pages/dndindex.html and find
{$siteName}
< and put these code under it
Change Theme
and change value name acording to you ------------------------------------------ do the same(step 3) on step 4 on 4.ow_themes/themename/master_pages/general.html ------------------------------------------- Note - remember the selected word (ex. ) the "selected" word should be change on each theme like if you go to 4.ow_themes/Roxbook/master_pages/general.html then the selected word should be with roxbook (ex. ) Note - you need to add step 3. and 4 codes on each dndindex.html and general.html on each theme that you want to display in demo section.