X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=mod%2Fpretheme.php;h=4584cb29e2564cd31963438d08b295d09c140ecb;hb=16123f5ad5ec08257ba97e1def23db90ce9062f7;hp=5a71bbe53e45168b8c99498254fe05f6e631da50;hpb=629a66793c245d39ca47523a6fbc790fae0cbe3b;p=friendica.git diff --git a/mod/pretheme.php b/mod/pretheme.php index 5a71bbe53e..4584cb29e2 100644 --- a/mod/pretheme.php +++ b/mod/pretheme.php @@ -1,6 +1,22 @@ 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']; + $version = $info['version']; + $credits = $info['credits']; + } + else { + $desc = ''; + $version = ''; + $credits = ''; + } + echo json_encode(array('img' => get_theme_screenshot($theme), 'desc' => $desc, 'version' => $version, 'credits' => $credits)); + } killme(); }