show experimental and unsupported theme status on theme admin page
This commit is contained in:
parent
fb8675f349
commit
5f7858a688
11 changed files with 14 additions and 3 deletions
|
|
@ -225,9 +225,16 @@ function get_theme_info($theme){
|
|||
'description' => "",
|
||||
'author' => array(),
|
||||
'maintainer' => array(),
|
||||
'version' => ""
|
||||
'version' => "",
|
||||
'experimental' => false,
|
||||
'unsupported' => false
|
||||
);
|
||||
|
||||
if(file_exists("view/theme/$theme/experimental"))
|
||||
$info['experimental'] = true;
|
||||
if(file_exists("view/theme/$theme/unsupported"))
|
||||
$info['unsupported'] = true;
|
||||
|
||||
if (!is_file("view/theme/$theme/theme.php")) return $info;
|
||||
|
||||
$f = file_get_contents("view/theme/$theme/theme.php");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue