X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=mod%2Fpretheme.php;h=0efa587d8ce3b8f01b54205d205a8f412a289bc3;hb=e894775a39920edc0e438364c818357ab809bace;hp=5a71bbe53e45168b8c99498254fe05f6e631da50;hpb=be52ec6f5ad57493286068df8b854a13a815dbf9;p=friendica.git diff --git a/mod/pretheme.php b/mod/pretheme.php index 5a71bbe53e..0efa587d8c 100644 --- a/mod/pretheme.php +++ b/mod/pretheme.php @@ -1,6 +1,16 @@ get_theme_screenshot($_REQUEST['theme']))); + + if($_REQUEST['theme']) { + $theme = $_REQUEST['theme']; + $info = get_theme_info($theme); + if($info) { + // unfortunately there will be no translation for this string + $desc = $info['description'] . ' ' . $info['version']; + } + else $desc = ''; + echo json_encode(array('img' => get_theme_screenshot($theme), 'desc' => $desc)); + } killme(); }