public static function get_active($nopreview = false)
{
$theme = array();
$theme['theme_dir'] = Themes::get_active_theme_dir($nopreview);
$data = simplexml_load_file(Utils::end_in_slash($theme['theme_dir']) . 'theme.xml');
foreach ($data as $name => $value) {
$theme[$name] = (string) $value;
}
$theme['xml'] = $data;
return $theme;
}