1
I posted this in Q&A, but have not got an answer yet, please help.
Hey All
I have the following script that I put in a folder called "multi" under "themes" as the theme.html file, so it can choose the theme for me according to my modules.
<{php}>
$mod = $GLOBALS['xoopsModule'];
$dirname = (isset($mod) ? $mod->getVar('dirname') :'system');
if ($dirname == 'jar') {
$theme='jartheme';
} else {
$theme='geometric_red';
}
$this->assign('themename', $theme.'/theme.html');
$this->assign('xoops_theme', $theme);
$this->assign('xoops_themecss', XOOPS_URL.'/themes/'.$theme.'/style.css');
$this->assign('xoops_imageurl', XOOPS_URL.'/themes/'.$theme.'/');
<{/php}>
<{include file="$themename"}>
The script is great and works very well ( I think I got it from here,from a very kind person, thank you)...
What I need is to use a similar script, but instead of modules, i want it to be languages, something as such:
if langcode=en then use "ThemeEN"
if langcode=fr then use "ThemeFR"
else use "ThemeGeneric"
I think all I need is the exact same code, but a change in the IF-Clause ,, I use xLanguage for Multilangs.
Thank you for your help in advance
Regards
BCdudes