4 use Friendica\Core\Theme;
6 function pretheme_init(App $a) {
8 if ($_REQUEST['theme']) {
9 $theme = $_REQUEST['theme'];
10 $info = Theme::getInfo($theme);
12 // unfortunately there will be no translation for this string
13 $desc = $info['description'];
14 $version = $info['version'];
15 $credits = $info['credits'];
21 echo json_encode(['img' => Theme::getScreenshot($theme), 'desc' => $desc, 'version' => $version, 'credits' => $credits]);