summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/bbcnext.php11
1 files changed, 11 insertions, 0 deletions
diff --git a/lib/bbcnext.php b/lib/bbcnext.php
index f4ad4ec..9b10c08 100644
--- a/lib/bbcnext.php
+++ b/lib/bbcnext.php
@@ -39,6 +39,11 @@ function next_renderModule(stdClass $module) {
. htmlspecialchars($module->description)
. '</module-description>';
}
+ if (isset($module->image_url)) {
+ echo '<img src="'
+ . htmlspecialchars(str_replace('{recipe}', '200x200', $module->image_url))
+ . '">';
+ }
echo '<module-items>';
if (!is_array($module->data)) {
next_renderItem($module->data);
@@ -96,6 +101,12 @@ function next_renderItem(stdClass $item) {
. '</synopsis>';
}
+ if (isset($item->image_url)) {
+ echo '<img src="'
+ . htmlspecialchars(str_replace('{recipe}', '256x256', $item->image_url))
+ . '">';
+ }
+
if (isset($item->item)) {
next_renderItem($item->item);
}