WIP on add/edit feed page (#4)
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user