1
1
Fork 0
friendica_2019-12_sharedHos.../mod/pretheme.php

23 lines
521 B
PHP
Raw Normal View History

2012-03-26 04:05:14 +02:00
<?php
function pretheme_init(App $a) {
if($_REQUEST['theme']) {
$theme = $_REQUEST['theme'];
$info = get_theme_info($theme);
if($info) {
// unfortunately there will be no translation for this string
2012-07-24 04:37:00 +02:00
$desc = $info['description'];
$version = $info['version'];
$credits = $info['credits'];
}
else {
2012-07-24 04:37:00 +02:00
$desc = '';
$version = '';
$credits = '';
}
echo json_encode(array('img' => get_theme_screenshot($theme), 'desc' => $desc, 'version' => $version, 'credits' => $credits));
}
2012-03-26 04:05:14 +02:00
killme();
}