3 namespace Friendica\Module;
5 use Friendica\BaseModule;
6 use Friendica\Core\Theme;
9 * Prints theme specific details as a JSON string
11 class ThemeDetails extends BaseModule
13 public static function rawContent()
15 if (!empty($_REQUEST['theme'])) {
16 $theme = $_REQUEST['theme'];
17 $info = Theme::getInfo($theme);
19 // Unfortunately there will be no translation for this string
20 $description = defaults($info, 'description', '');
21 $version = defaults($info, 'version' , '');
22 $credits = defaults($info, 'credits' , '');
25 'img' => Theme::getScreenshot($theme),
26 'desc' => $description,
27 'version' => $version,
28 'credits' => $credits,