Alpha 6: Feed-level Pages #21
|
@ -20,7 +20,7 @@ if (array_key_exists('refresh', $_GET)) {
|
||||||
}
|
}
|
||||||
|
|
||||||
$query = $db->prepare(<<<'SQL'
|
$query = $db->prepare(<<<'SQL'
|
||||||
SELECT item.id, item.title AS item_title, coalesce(item.updated_on, item.published_on) AS as_of,
|
SELECT item.id, item.feed_id, item.title AS item_title, coalesce(item.updated_on, item.published_on) AS as_of,
|
||||||
feed.title AS feed_title
|
feed.title AS feed_title
|
||||||
FROM item
|
FROM item
|
||||||
INNER JOIN feed ON feed.id = item.feed_id
|
INNER JOIN feed ON feed.id = item.feed_id
|
||||||
|
@ -42,7 +42,8 @@ page_head('Your Unread Items'); ?>
|
||||||
if ($item) {
|
if ($item) {
|
||||||
while ($item) { ?>
|
while ($item) { ?>
|
||||||
<p><?=hx_get("/item?id={$item['id']}", strip_tags($item['item_title']))?><br>
|
<p><?=hx_get("/item?id={$item['id']}", strip_tags($item['item_title']))?><br>
|
||||||
<?=htmlentities($item['feed_title'])?><br><small><em><?=date_time($item['as_of'])?></em></small><?php
|
<small><?=date_time($item['as_of'])?> •
|
||||||
|
<?=hx_get("/feed/items?id={$item['feed_id']}&unread", htmlentities($item['feed_title']))?></small><?php
|
||||||
$item = $result->fetchArray(SQLITE3_ASSOC);
|
$item = $result->fetchArray(SQLITE3_ASSOC);
|
||||||
}
|
}
|
||||||
} else { ?>
|
} else { ?>
|
||||||
|
|
Loading…
Reference in New Issue
Block a user