diff options
author | Koen Kooi <koen@openembedded.org> | 2008-09-26 16:03:59 +0000 |
---|---|---|
committer | Koen Kooi <koen@openembedded.org> | 2008-09-26 16:03:59 +0000 |
commit | 169805496d611cc67e5cdc5d8391da3ea493689a (patch) | |
tree | 47226dcf89426721dd8ce28cd09428b7746f45e3 /contrib/feed-browser/includes/functions.inc | |
parent | 7067f81185ee5eddfaa885a722d369bf7a6a0ff7 (diff) |
feed browser: add screenshot support, update angstrom sample config
Diffstat (limited to 'contrib/feed-browser/includes/functions.inc')
-rw-r--r-- | contrib/feed-browser/includes/functions.inc | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/contrib/feed-browser/includes/functions.inc b/contrib/feed-browser/includes/functions.inc index 8b64ca345b..d4454ca708 100644 --- a/contrib/feed-browser/includes/functions.inc +++ b/contrib/feed-browser/includes/functions.inc @@ -1,6 +1,6 @@ <?php /* - * (c) Koen Kooi 2006, 2007 + * (c) Koen Kooi 2006, 2007, 2008 * (c) Marcin Juszkiewicz 2006, 2007 * * This program is free software; you can redistribute it and/or modify it under @@ -195,7 +195,13 @@ function pkgdetails ($package) $details .= "<dl>"; $details .= sprintf ("\n<dt>Maintainer:</dt><dd>%s</dd>", str_replace(array('@',', '), array(' at ', '<br />'), htmlentities($package['packages.p_maintainer']))); - + + $scapfile = "img/packages/".$package['packages.p_name'][0]."/".$package['packages.p_name'].".png"; + if(file_exists(FB_BASE_DIR.$scapfile)) + { + $details .= sprintf ("\n<dt>Screenshot:</dt><dd><a href='%s'><img src='%s' width='320px' noborder></a></dd>", $scapfile, $scapfile); + } + if($package['packages.p_homepage']) { $details .= sprintf ("\n<dt>Homepage:</dt><dd>%s</dd>", $package['packages.p_homepage']); |