diff options
author | friendica <info@friendica.com> | 2012-02-26 04:17:02 -0800 |
---|---|---|
committer | friendica <info@friendica.com> | 2012-02-26 04:17:02 -0800 |
commit | 5f7858a688a1b6877246933a6c4c72318c885109 (patch) | |
tree | 09cb308d1c556f2537d018d9a616e64fad808c8d /include | |
parent | fb8675f3494b0f5e0b98d422f0cb3f6e8f410c4a (diff) | |
download | volse-hubzilla-5f7858a688a1b6877246933a6c4c72318c885109.tar.gz volse-hubzilla-5f7858a688a1b6877246933a6c4c72318c885109.tar.bz2 volse-hubzilla-5f7858a688a1b6877246933a6c4c72318c885109.zip |
show experimental and unsupported theme status on theme admin page
Diffstat (limited to 'include')
-rwxr-xr-x | include/plugin.php | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/include/plugin.php b/include/plugin.php index 57f77cb57..8280b1022 100755 --- a/include/plugin.php +++ b/include/plugin.php @@ -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"); |