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 = "";
|
$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\" >
|
echo "<section id=\"$post_id\" >
|
||||||
<div>
|
<div>
|
||||||
<a href=\"./?id=" . $_GET['id'] . "&action=post&reply_to=$post_id&end\" class=\"post_reply\">
|
$reply_button
|
||||||
<button class=\"post_reply\">Reply</button>
|
|
||||||
</a>
|
|
||||||
<h1 class=\"post\">$post_title</h1>
|
<h1 class=\"post\">$post_title</h1>
|
||||||
$reply_reference
|
$reply_reference
|
||||||
</div>
|
</div>
|
||||||
|
|
Loading…
Reference in New Issue