aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2012-03-25 17:55:43 -0700
committerfriendica <info@friendica.com>2012-03-25 17:55:43 -0700
commit7ef1ed2d7045a381c032d2142413b3a14af0d8e3 (patch)
tree43978802cfe996d5468857720b684fde63512a3f /include
parent873a55e9186cdf3d92b2793cd366debf237c8cda (diff)
downloadvolse-hubzilla-7ef1ed2d7045a381c032d2142413b3a14af0d8e3.tar.gz
volse-hubzilla-7ef1ed2d7045a381c032d2142413b3a14af0d8e3.tar.bz2
volse-hubzilla-7ef1ed2d7045a381c032d2142413b3a14af0d8e3.zip
theme screenshots
Diffstat (limited to 'include')
-rwxr-xr-xinclude/plugin.php10
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');
+}