3 function pretheme_init(&$a) {
5 if($_REQUEST['theme']) {
6 $theme = $_REQUEST['theme'];
7 $info = get_theme_info($theme);
9 // unfortunately there will be no translation for this string
10 $desc = $info['description'] . ' ' . $info['version'];
13 echo json_encode(array('img' => get_theme_screenshot($theme), 'desc' => $desc));