=hx_get("/item?id={$item['id']}$returnURL", strip_tags($item['item_title']))?>
=date_time($item['as_of'])?> •
- =hx_get("/feed/items?id={$item['feed_id']}&unread", htmlentities($item['feed_title']))?>
+ fetchArray(SQLITE3_ASSOC);
}
} else { ?>
diff --git a/src/start.php b/src/start.php
index 9010241..f0fa0f0 100644
--- a/src/start.php
+++ b/src/start.php
@@ -64,20 +64,19 @@ function title_bar(): void {
WHERE feed.user_id = :id AND item.is_bookmarked = 1)
SQL);
$bookQuery->bindValue(':id', $_SESSION[Key::USER_ID]);
- $bookResult = $bookQuery->execute();
- $hasBookmarks = $bookResult ? $bookResult->fetchArray(SQLITE3_NUM)[0] : false; ?>
- =hx_get('/feeds', 'Feeds')?> |
- =$hasBookmarks ? hx_get('/?bookmarked', 'Bookmarked') . ' | ' : ''?>
- =hx_get('/docs/', 'Docs')?> |
- Log Off
- | =$_SESSION[Key::USER_EMAIL]?>execute();
+ $hasBookmarks = $bookResult && $bookResult->fetchArray(SQLITE3_NUM)[0];
+ echo hx_get('/feeds', 'Feeds') . ' | ';
+ if ($hasBookmarks) echo hx_get('/?bookmarked', 'Bookmarked') . ' | ';
+ echo hx_get('/docs/', 'Docs') . ' | Log Off';
+ if ($_SESSION[Key::USER_EMAIL] != Security::SINGLE_USER_EMAIL) {
+ echo " | {$_SESSION[Key::USER_EMAIL]}";
}
} finally {
$db->close();
}
- } else { ?>
- =hx_get('/user/log-on', 'Log On')?> | =hx_get('/docs/', 'Docs')?>
@@ -122,9 +121,7 @@ function page_head(string $title): void {
function page_foot(): void {
global $is_htmx; ?>
-
+ if (!$is_htmx) echo ''; ?>