Add item bookmark buttons (#14)

Implemented as a toggle button

- Move init_cap func where web can see it
- Bump version to alpha7
This commit is contained in:
2024-05-23 22:06:16 -04:00
parent 4fa4dcb831
commit f4273935cb
8 changed files with 95 additions and 19 deletions

View File

@@ -75,6 +75,8 @@ $updated = isset($item['updated_on']) ? date_time($item['updated_on']) : null;
page_head(htmlentities("{$item['item_title']} | {$item['feed_title']}")); ?>
<h1 class=item_heading>
<span class=bookmark hx-get="/bookmark?id=<?=$_GET['id']?>" hx-trigger=load hx-target=this hx-swap=outerHTML
hx-push-url=false></span>
<a href="<?=$item['item_link']?>" target=_blank rel=noopener><?=strip_tags($item['item_title'])?></a><br>
</h1>
<div class=item_published>