I want to change theme dynamically - in plug-in.
For example if I have in url: ?skin=new_skin
The theme will be changed in "new_skin" without changes in global configuration file.
I tried this:
class sa_mobile extends rcube_plugin
{
public $task = '';
function init() {
$rcmail = rcmail::get_instance();
if (isset($_GET['skin'])) {
$rcmail->config->set('skin', $_GET['skin']);
}
}
}
But theme is not changed. Config variable is changed but skin is the same.
Can you help please?