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 /include | |
parent | 873a55e9186cdf3d92b2793cd366debf237c8cda (diff) | |
download | volse-hubzilla-7ef1ed2d7045a381c032d2142413b3a14af0d8e3.tar.gz volse-hubzilla-7ef1ed2d7045a381c032d2142413b3a14af0d8e3.tar.bz2 volse-hubzilla-7ef1ed2d7045a381c032d2142413b3a14af0d8e3.zip |
theme screenshots
Diffstat (limited to 'include')
-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'); +} |