added reply button

master
BodgeMaster 2021-09-07 08:39:26 +02:00
parent 36fda61331
commit 0ba0f06b2c
2 changed files with 27 additions and 13 deletions

View File

@ -29,19 +29,24 @@ foreach($statement->fetchAll() as $ROW) {
}
echo "<section id=\"$post_id\" >
<h1 class=\"post\">$post_title</h1>
$reply_reference
<article>
<header>
<div>
<p class='beige'> $post_creator_name <time datetime='$post_time'>$post_time</time></p>
</div>
</header>
<div class='postcontent'>
<p>$post_content</p>
</div>
</article>
</section>";
<div>
<a href=\"%DOMAIN_NAME%%CONTENT_DIR%/board/?id=" . $_GET['id'] . "&action=post&reply_to=$post_id&end\" class=\"post_reply\">
<button class=\"post_reply\">Reply</button>
</a>
<h1 class=\"post\">$post_title</h1>
$reply_reference
</div>
<article>
<header>
<div>
<p class='beige'> $post_creator_name <time datetime='$post_time'>$post_time</time></p>
</div>
</header>
<div class='postcontent'>
<p>$post_content</p>
</div>
</article>
</section>";
}
?>

View File

@ -392,6 +392,15 @@ header {
h1.post{
margin: 0;
}
p.post_reply {
margin: 0.1em;
}
a.post_reply {
float: right;
}
button.post_reply {
width: auto;
margin: 0.1em;
}