summaryrefslogtreecommitdiff
path: root/lib/bbcnext.php
diff options
context:
space:
mode:
authorjade (winter)2026-07-20 15:02:06 +0100
committerjade (winter)2026-07-20 15:02:06 +0100
commitc34ce636639654be1862e3c39bda9be50e0fcd6e (patch)
tree952ab37a5b064272c31d9408242f6ad7b6e90762 /lib/bbcnext.php
parentd5ea0f332bf8e5f0745e2c0e592ee895423a70ad (diff)
add image support (lots of janky css)HEADmain
Diffstat (limited to 'lib/bbcnext.php')
-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);
}