3 if(! function_exists('pretheme_init')) {
4 function pretheme_init(&$a) {
6 if($_REQUEST['theme']) {
7 $theme = $_REQUEST['theme'];
8 $info = get_theme_info($theme);
10 // unfortunately there will be no translation for this string
11 $desc = $info['description'];
12 $version = $info['version'];
13 $credits = $info['credits'];
20 echo json_encode(array('img' => get_theme_screenshot($theme), 'desc' => $desc, 'version' => $version, 'credits' => $credits));