changed reply button to only be there when user is logged in
parent
952ad0bcc2
commit
205fcdea42
|
@ -28,11 +28,16 @@ foreach($statement->fetchAll() as $ROW) {
|
|||
$reply_reference = "";
|
||||
}
|
||||
|
||||
// determine whether to put a reply button
|
||||
if ($login) {
|
||||
$reply_button = "<a href=\"./?id=" . $_GET['id'] . "&action=post&reply_to=$post_id&end\" class=\"post_reply\"><button class=\"post_reply\">Reply</button></a>";
|
||||
} else {
|
||||
$reply_button = ""
|
||||
}
|
||||
|
||||
echo "<section id=\"$post_id\" >
|
||||
<div>
|
||||
<a href=\"./?id=" . $_GET['id'] . "&action=post&reply_to=$post_id&end\" class=\"post_reply\">
|
||||
<button class=\"post_reply\">Reply</button>
|
||||
</a>
|
||||
$reply_button
|
||||
<h1 class=\"post\">$post_title</h1>
|
||||
$reply_reference
|
||||
</div>
|
||||
|
|
Loading…
Reference in New Issue