WIP on add/edit feed page (#4)

This commit is contained in:
2024-04-06 11:02:48 -04:00
parent 74bc83f266
commit 7d30454d90
6 changed files with 94 additions and 7 deletions

View File

@@ -21,13 +21,27 @@ function page_head(string $title): void {
<html lang="en">
<head>
<title><?=$title?> | Feed Reader Central</title>
<link href=/assets/style.css rel=stylesheet>
</head>
<body><?php
<body>
<header>
<div class=title>Feed Reader Central</div>
<div><?php
if (array_key_exists('FRC_USER_ID', $_REQUEST)) {
echo '<a href=/feed?id=new>Add Feed</a>';
if ($_REQUEST['FRC_USER_EMAIL'] != 'solouser@example.com') {
echo " | {$_REQUEST['FRC_USER_EMAIL']}";
}
} ?>
</div>
</header>
<main hx-target=this>
<?php
}
/**
* Render the end of the page
*/
function page_foot(): void {
?></body></html><?php
?></main></body></html><?php
}