aboutsummaryrefslogtreecommitdiffstats
path: root/mod/admin.php
diff options
context:
space:
mode:
authorSimon L'nu <simon.lnu@gmail.com>2012-03-25 22:40:24 -0400
committerSimon L'nu <simon.lnu@gmail.com>2012-03-25 22:40:24 -0400
commit758e1b7424c8210a60df16a12f3ba3d32b433192 (patch)
tree1f811fa66480bb16cbd726257dc935185b58b15b /mod/admin.php
parent3d62cb97822e0bd9e5be0c404664667cb7cb8d98 (diff)
parent7ab117fd31c31cba4880cfcc63fc940531850455 (diff)
downloadvolse-hubzilla-758e1b7424c8210a60df16a12f3ba3d32b433192.tar.gz
volse-hubzilla-758e1b7424c8210a60df16a12f3ba3d32b433192.tar.bz2
volse-hubzilla-758e1b7424c8210a60df16a12f3ba3d32b433192.zip
Merge branch 'master', remote-tracking branch 'remotes/upstream/master'
* remotes/upstream/master: theme screenshots * master:
Diffstat (limited to 'mod/admin.php')
-rwxr-xr-xmod/admin.php8
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
));
}