diff options
author | Simon L'nu <simon.lnu@gmail.com> | 2012-03-25 22:40:24 -0400 |
---|---|---|
committer | Simon L'nu <simon.lnu@gmail.com> | 2012-03-25 22:40:24 -0400 |
commit | 758e1b7424c8210a60df16a12f3ba3d32b433192 (patch) | |
tree | 1f811fa66480bb16cbd726257dc935185b58b15b /include/plugin.php | |
parent | 3d62cb97822e0bd9e5be0c404664667cb7cb8d98 (diff) | |
parent | 7ab117fd31c31cba4880cfcc63fc940531850455 (diff) | |
download | volse-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 'include/plugin.php')
-rwxr-xr-x | include/plugin.php | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/include/plugin.php b/include/plugin.php index 8280b1022..df33fd3f2 100755 --- a/include/plugin.php +++ b/include/plugin.php @@ -276,3 +276,13 @@ function get_theme_info($theme){ return $info; }} + +function get_theme_screenshot($theme) { + $a = get_app(); + $exts = array('.png','.jpg'); + foreach($exts as $ext) { + if(file_exists('view/theme/' . $theme . '/screenshot' . $ext)) + return($a->get_baseurl() . '/view/theme/' . $theme . '/screenshot' . $ext); + } + return($a->get_baseurl() . '/images/blank.png'); +} |