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