diff options
author | friendica <info@friendica.com> | 2012-03-25 17:55:43 -0700 |
---|---|---|
committer | friendica <info@friendica.com> | 2012-03-25 17:55:43 -0700 |
commit | 7ef1ed2d7045a381c032d2142413b3a14af0d8e3 (patch) | |
tree | 43978802cfe996d5468857720b684fde63512a3f /mod | |
parent | 873a55e9186cdf3d92b2793cd366debf237c8cda (diff) | |
download | volse-hubzilla-7ef1ed2d7045a381c032d2142413b3a14af0d8e3.tar.gz volse-hubzilla-7ef1ed2d7045a381c032d2142413b3a14af0d8e3.tar.bz2 volse-hubzilla-7ef1ed2d7045a381c032d2142413b3a14af0d8e3.zip |
theme screenshots
Diffstat (limited to 'mod')
-rwxr-xr-x | mod/admin.php | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/mod/admin.php b/mod/admin.php index a64b26903..53b5ee354 100755 --- a/mod/admin.php +++ b/mod/admin.php @@ -583,6 +583,7 @@ function admin_page_plugins(&$a){ '$admin_form' => $admin_form, '$function' => 'plugins', + '$screenshot' => '', '$readme' => $readme )); } @@ -738,7 +739,11 @@ function admin_page_themes(&$a){ } $admin_form=""; - + + $screenshot = array( get_theme_screenshot($theme), t('Screenshot')); + if(! stristr($screenshot[0],$theme)) + $screenshot = null; + $t = get_markup_template("admin_plugins_details.tpl"); return replace_macros($t, array( '$title' => t('Administration'), @@ -755,6 +760,7 @@ function admin_page_themes(&$a){ '$admin_form' => $admin_form, '$str_author' => t('Author: '), '$str_maintainer' => t('Maintainer: '), + '$screenshot' => $screenshot, '$readme' => $readme )); } |