@@ -2,7 +2,7 @@
|
||||
/**
|
||||
* Home Page
|
||||
*
|
||||
* Displays a list of unread feed items for the current user
|
||||
* Displays a list of unread or bookmarked items for the current user
|
||||
*/
|
||||
|
||||
include '../start.php';
|
||||
@@ -46,17 +46,18 @@ $item = $result ? $result->fetchArray(SQLITE3_ASSOC) : false;
|
||||
page_head($title); ?>
|
||||
<h1>
|
||||
<?=$title?><?php
|
||||
if (!$type == 'Unread') { ?>
|
||||
<a class=refresh href=/?refresh hx-get=/?refresh hx-indicator="closest h1">(Refresh All Feeds)</a>
|
||||
if ($type == 'Unread'): ?>
|
||||
<?=hx_get('/?refresh', '(Refresh All Feeds)', 'class=refresh hx-indicator="closest h1"')?>
|
||||
<span class=loading>Refreshing…</span><?php
|
||||
} ?>
|
||||
endif; ?>
|
||||
</h1>
|
||||
<article><?php
|
||||
if ($item) {
|
||||
while ($item) { ?>
|
||||
<p><?=hx_get("/item?id={$item['id']}$returnURL", strip_tags($item['item_title']))?><br>
|
||||
<small><?=date_time($item['as_of'])?> •
|
||||
<?=hx_get("/feed/items?id={$item['feed_id']}&unread", htmlentities($item['feed_title']))?></small><?php
|
||||
<?=hx_get("/feed/items?id={$item['feed_id']}&" . strtolower($type), htmlentities($item['feed_title']))?>
|
||||
</small><?php
|
||||
$item = $result->fetchArray(SQLITE3_ASSOC);
|
||||
}
|
||||
} else { ?>
|
||||
|
||||
Reference in New Issue
Block a user