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 = $info['description'] ?? '';
21 $version = $info['version'] ?? '';
22 $credits = $info['credits'] ?? '';
25 'img' => Theme::getScreenshot($theme),
26 'desc' => $description,
27 'version' => $version,
28 'credits' => $credits,